/[suikacvs]/messaging/manakai/t/Makefile
Suika

Contents of /messaging/manakai/t/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Wed Jan 25 12:21:51 2006 UTC (18 years, 10 months ago) by wakaba
Branch: MAIN
Changes since 1.10: +19 -6 lines
++ manakai/t/ChangeLog	24 Jan 2006 13:25:30 -0000
2006-01-24  Wakaba  <wakaba@suika.fam.cx>

	* Makefile (util-mntest.t): Calls |mndebug.pl| subroutines.

++ manakai/lib/Message/Util/ChangeLog	25 Jan 2006 12:19:43 -0000
2006-01-25  Wakaba  <wakaba@suika.fam.cx>

	* ManakaiNodeTest.dis: Tests for |mn:subnode2| hash-hash added.

2006-01-24  Wakaba  <wakaba@suika.fam.cx>

	* ManakaiNodeTest.dis: Tests added.

++ manakai/lib/Message/Util/DIS/ChangeLog	25 Jan 2006 12:21:17 -0000
2006-01-25  Wakaba  <wakaba@suika.fam.cx>

	* Perl.dis: Typos in URIs fixed.
	(plCodeFragment): |lang:dis| |dis:SetProp| |CheckReadOnly|
	check code was inserted to incorrect place.

2006-01-24  Wakaba  <wakaba@suika.fam.cx>

	* Perl.dis (plCodeFragment): Gives URI as argument
	to ensure |isReferred| switch turned on.

++ manakai/lib/Message/DOM/ChangeLog	25 Jan 2006 12:18:34 -0000
2006-01-25  Wakaba  <wakaba@suika.fam.cx>

	* XDoctype.dis (setElementTypeDefinitionNode,
	setAttributeDefinitionNode): Throws |c:INUSE_DEFINITION_ERR|
	if the new node is already used for another definition.
	(DocumentTypeDefinition, ElementTypeDefinition): Node
	property name was incorrect.
	(elementTypes, attributeDefinitions): Checks to
	ensure the collection is empty added.

	* Tree.dis: Property name typos fixed.
	(setNamedItem, setAttributeNode): Don't return any node
	if it replace itself.
	(c:userDeterminedId): Missing definition added.

	* DOMXML.dis (Notation): Missing property specification
	of|c:ownerDocument| as |mn:xrefnode0| is added.

++ manakai/lib/manakai/ChangeLog	24 Jan 2006 13:23:58 -0000
2006-01-24  Wakaba  <wakaba@suika.fam.cx>

	* mndebug.pl (define_nodestem_destroy, define_nodestem_destroy_all,
	define_noderef_destroy_all): New subroutines.

1 MANAKAI_ROOT_DIR = ../
2 MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/
3 MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/
4 MANAKAI_TEST_DIR = $(MANAKAI_ROOT_DIR)t/
5
6 DIS_SUFFIX = .dis
7 DAC_SUFFIX = .dae
8 DAEM_SUFFIX = .daem
9 PM_SUFFIX = .pm
10
11 CD = cd
12 MAKE = make
13 MKDIR = mkdir -p
14 ECHO = echo
15
16 RM = rm
17 RMALL = $(RM) -fv
18
19 TEST_VERBOSE = 0
20 INST_ARCHLIB = $(MANAKAI_ROOT_DIR)blib/arch
21 INST_LIB = $(MANAKAI_ROOT_DIR)blib/lib
22
23 PERL_OPTIONS =
24 PERL = perl
25 PERL_ = $(PERL) $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR)
26 PERLC = $(PERL) -c
27 PERLC_ = $(PERLC) $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR)
28 PERL_TEST_ = $(PERL) \
29 $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR) \
30 -MExtUtils::Command::MM \
31 -e "test_harness ($(TEST_VERBOSE), '$(INST_LIB)', \
32 '$(INST_ARCHLIB)')"
33
34 DIS_OPTIONS =
35 DIS_OPTIONS_ALL = $(DIS_OPTIONS) \
36 --search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \
37 --dis-file-suffix="$(DIS_SUFFIX)" \
38 --daem-file-suffix="$(DAEM_SUFFIX)"
39
40 DOMTEST_TESTS_DIR = $(MANAKAI_ROOT_DIR)../domts/tests/
41 DOMTEST_PERL_DIR = $(MANAKAI_TEST_DIR)dom/
42 DOMTEST_FILE = *.xml
43
44 DOMTS2PERL_PL = $(MANAKAI_BIN_DIR)domts2perl.pl
45 DOMTS2PERL = $(PERL_) -I$(MANAKAI_BIN_DIR) $(DOMTS2PERL_PL)
46 DOMTEST2PERL_PL = $(MANAKAI_BIN_DIR)domtest2perl.pl
47
48 DAC2TEST_OPTIONS =
49 DAC2TEST_PL = $(MANAKAI_BIN_DIR)dac2test.pl
50 DAC2TEST = $(PERL_) $(DAC2TEST_PL) $(DAC2TEST_OPTIONS) $(DIS_OPTIONS_ALL)
51
52 DOM_FEATURE_DAC = $(MANAKAI_LIB_DIR)Message/DOM/feature$(DAC_SUFFIX)
53 DOM_CORE_DAC = $(MANAKAI_LIB_DIR)Message/DOM/core$(DAC_SUFFIX)
54 DOM_LS_DAC = $(MANAKAI_LIB_DIR)Message/DOM/ls$(DAC_SUFFIX)
55 DOM_XP_DAC = $(MANAKAI_LIB_DIR)Message/DOM/xp$(DAC_SUFFIX)
56 DOM_DAC_FILES = $(DOM_FEATURE_DAC) $(DOM_CORE_DAC) $(DOM_LS_DAC) $(DOM_XP_DAC)
57
58 UTIL_TEST_DAC = $(MANAKAI_LIB_DIR)Message/Util/coretest$(DAC_SUFFIX)
59 UTIL_MNTEST_PM = $(MANAKAI_LIB_DIR)Message/Util/ManakaiNodeTest$(PM_SUFFIX)
60 UTIL_PC_DAC = $(MANAKAI_LIB_DIR)Message/Util/pc$(DAC_SUFFIX)
61 DIS_CORE_DAC = $(MANAKAI_LIB_DIR)Message/Util/discore$(DAC_SUFFIX)
62
63 NS_MDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#ManakaiDOM.
64 NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#
65 NS_UTIL = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/
66 NS_DIS = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\#
67
68 GENERATED_FILES = \
69 util-mntest.t \
70 util-perlcode.t dom-feature.t dom-tree.t dom-genericls.t \
71 dom-core.t dom-xdoctype.t dom-xmlparser.t \
72 dom-mdomls2003.t util-dis-dnlite.t
73
74 all: $(GENERATED_FILES)
75
76 dom1core-perl: $(DOMTS2PERL_PL)
77 $(MKDIR) $(DOMTEST_PERL_DIR)level1/core/
78 $(DOMTS2PERL) --test-directory="$(DOMTEST_TESTS_DIR)level1/core/" \
79 --output-directory="$(DOMTEST_PERL_DIR)level1/core/" \
80 --domtest2perl-path="$(DOMTEST2PERL_PL)"
81
82 dom1core:
83 MANAKAI_DOMTEST_FILE_DIR=$(DOMTEST_TESTS_DIR)level1/core/files/ \
84 $(PERL_TEST_) $(DOMTEST_PERL_DIR)level1/core/$(DOMTEST_FILE).pl
85
86 test-module-all: test-module-dom test-module-util
87
88 test-module-dom: \
89 dom-feature.t \
90 dom-core.t dom-tree.t dom-xdoctype.t \
91 dom-genericls.t \
92 dom-mdomls2003.t dom-xmlparser.t
93 $(PERL_TEST_) dom-*.t
94
95 dom-feature.t: $(DOM_FEATURE_DAC) $(DAC2TEST_PL)
96 $(DAC2TEST) $< --source-module="$(NS_MDOM)DOMFeature" > $@
97
98 dom-genericls.t: $(DOM_CORE_DAC) $(DAC2TEST_PL)
99 $(DAC2TEST) $< --source-module="$(NS_MDOM)GenericLS" > $@
100
101 dom-tree.t: $(DOM_CORE_DAC) $(DAC2TEST_PL) Makefile
102 $(ECHO) "require 'manakai/mndebug.pl';" > $@
103 $(ECHO) "manakai::mndebug::define_nodestem_destroy ();" >> $@
104 #$(ECHO) "manakai::mndebug::define_nodestem_destroy_all ();" >> $@
105 #$(ECHO) "manakai::mndebug::define_noderef_destroy_all ();" >> $@
106 $(DAC2TEST) $< --source-module="$(NS_MDOM)Tree" >> $@
107
108 dom-core.t: $(DOM_CORE_DAC) $(DAC2TEST_PL)
109 $(DAC2TEST) $< --source-module="$(NS_MDOM)DOMCore" > $@
110
111 dom-xdoctype.t: $(DOM_CORE_DAC) $(DAC2TEST_PL) Makefile
112 $(ECHO) "require 'manakai/mndebug.pl';" > $@
113 $(ECHO) "manakai::mndebug::define_nodestem_destroy ();" >> $@
114 #$(ECHO) "manakai::mndebug::define_nodestem_destroy_all ();" >> $@
115 #$(ECHO) "manakai::mndebug::define_noderef_destroy_all ();" >> $@
116 $(DAC2TEST) $< --source-module="$(NS_MDOM)XDoctype" >> $@
117
118 dom-mdomls2003.t: $(DOM_LS_DAC) $(DAC2TEST_PL)
119 $(DAC2TEST) $< --source-module="$(NS_MDOM)ManakaiDOMLS2003" > $@
120
121 dom-xmlparser.t: $(DOM_XP_DAC) $(DAC2TEST_PL)
122 $(DAC2TEST) $< --source-module="$(NS_MDOM)XMLParser" > $@
123
124 test-module-util: \
125 util-mntest.t \
126 util-perlcode.t \
127 util-dis-dnlite.t
128 $(PERL_TEST_) util-*.t
129
130 util-mntest.t: $(UTIL_TEST_DAC) $(UTIL_MNTEST_PM) $(DAC2TEST_PL) Makefile
131 $(ECHO) "require 'manakai/mndebug.pl';" > $@
132 $(ECHO) "manakai::mndebug::define_nodestem_destroy ();" >> $@
133 #$(ECHO) "manakai::mndebug::define_nodestem_destroy_all ();" >> $@
134 #$(ECHO) "manakai::mndebug::define_noderef_destroy_all ();" >> $@
135 $(DAC2TEST) $< --source-module="$(NS_UTIL)ManakaiNodeTest" >> $@
136
137 util-perlcode.t: $(UTIL_PC_DAC) $(DAC2TEST_PL)
138 $(DAC2TEST) $< --source-module="$(NS_UTIL)PerlCode" > $@
139
140 util-dis-dnlite.t: $(DIS_CORE_DAC) $(DAC2TEST_PL)
141 $(DAC2TEST) $< --source-module="$(NS_DIS)DNLite" > $@
142
143 $(DOM_DAC_FILES): $(MANAKAI_LIB_DIR)Message/DOM/%: always
144 $(CD) $(MANAKAI_LIB_DIR)Message/DOM/ && $(MAKE) $*
145
146 $(UTIL_TEST_DAC) $(UTIL_MNTEST_PM) $(UTIL_PC_DAC) $(DIS_CORE_DAC): \
147 $(MANAKAI_LIB_DIR)Message/Util/%: always
148 $(CD) $(MANAKAI_LIB_DIR)Message/Util/ && $(MAKE) $*
149
150 clean: clean-dom1core-perl
151 $(RMALL) $(GENERATED_FILES)
152
153 clean-dom1core-perl:
154 $(RMALL) $(DOMTEST_PERL_DIR)level1/core/*
155 $(RMALL) *~ .*~ *.BAK .*.BAK
156
157 always:

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24