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

Contents of /messaging/manakai/t/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (hide annotations) (download)
Sat Jan 7 12:30:57 2006 UTC (18 years, 10 months ago) by wakaba
Branch: MAIN
Changes since 1.7: +21 -0 lines
++ manakai/t/ChangeLog	7 Jan 2006 11:46:40 -0000
2006-01-07  Wakaba  <wakaba@suika.fam.cx>

	* dom-mdom.t: Removed (obsolete).

	* util-formatter-base.t: Test result synced with
	current implementation.

	* Makefile: |dom-core.t| and |dom-xdoctype.t| added.

++ manakai/lib/Message/Util/ChangeLog	7 Jan 2006 11:15:29 -0000
2006-01-07  Wakaba  <wakaba@suika.fam.cx>

	* Makefile: |../DOM/XDoctype.dis| added.

++ manakai/lib/Message/Util/DIS/ChangeLog	7 Jan 2006 11:25:49 -0000
2006-01-07  Wakaba  <wakaba@suika.fam.cx>

	* Test.dis (id): New attribute.
	(assertNumEquals, assertNumNotEquals): New methods.
	(assertISA): New method.

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

	* Perl.dis (plCodeFragment): New roles |ElementTypeDefinitionRole|
	and |AttributeDefinitionRole| implemented.

++ manakai/lib/Message/DOM/ChangeLog	7 Jan 2006 11:55:36 -0000
2006-01-07  Wakaba  <wakaba@suika.fam.cx>

	* DOMMain.dis (checkXMLNamesQName): Checks whether
	namespace URI is defined for not being warned.

	* XDoctype.dis: New module.

	* DOMCore.dis (DOMStringList): Test added.

	* Makefile: |XDoctype.pm| added.

	* Tree.dis (Require): Requires |XDoctype.dis|.
	(ManakaiDOMNodeObjectNode.eq): Added.
	(Test): |DOMError.location| must return a |DOMLocator|
	object (it was incorrectly tested to return |null|).
	(EmptyNodeList.DESTROY): Removed.

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

	* Tree.dis (NodeType): |ELEMENT_TYPE_DEFINITION_NODE| and
	|ATTRIBUTE_DEFINITION_NODE| node types added.
	(appendChild, insertBefore, replaceChild): New
	two node types added and processing instruction nodes
	as document type definition node child is allowed
	in |ManakaiDOM:ManakaiDOMLatest| mode.
	(getNodeReference): New |interface| parameter
	to filter classes by interface is added.
	(ElementTypeDefinitionRole): New role.
	(AttributeDefinitionRole): New role.

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

	* DOMCore.dis (DOMStringList): Reimplemented as tied array.

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24