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

Contents of /messaging/manakai/t/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Nov 16 10:07:15 2005 UTC (19 years ago) by wakaba
Branch: MAIN
Changes since 1.4: +17 -2 lines
++ manakai/t/ChangeLog	16 Nov 2005 10:07:00 -0000
2005-11-16  Wakaba  <wakaba@suika.fam.cx>

	* Makefile: Rules to make |dom-mdomls2003.t| and |util-perlcode.t|
	added.

++ manakai/bin/ChangeLog	16 Nov 2005 09:50:31 -0000
2005-11-16  Wakaba  <wakaba@suika.fam.cx>

	* dac2text.pl: Dies if test code is not defined.

++ manakai/lib/Message/Markup/XML/ChangeLog	16 Nov 2005 09:59:26 -0000
2005-11-16  Wakaba  <wakaba@suika.fam.cx>

	* Parser.pm: A typo fix and |undef|-checking added.

++ manakai/lib/Message/Util/ChangeLog	16 Nov 2005 10:02:10 -0000
2005-11-16  Wakaba  <wakaba@suika.fam.cx>

	* PerlCode.dis: A test code added.  Typos in |ISA|
	properties fixed.
	(PerlSub.stringify): Generates prototype specification
	even if |prototype| attribute value's length is zero
	in case the |pc:prototype| attribute /is/ found.

++ manakai/lib/Message/Util/DIS/ChangeLog	16 Nov 2005 10:03:34 -0000
2005-11-16  Wakaba  <wakaba@suika.fam.cx>

	* Test.dis (assertTrue, assertFalse, assertNever): New methods.
	(assertNull, assertNotNull): The |actualValue| parameters
	fixed to parameters rather than named parameters.

++ manakai/lib/Message/DOM/ChangeLog	16 Nov 2005 09:58:21 -0000
2005-11-16  Wakaba  <wakaba@suika.fam.cx>

	* ManakaiDOMLS2003.dis: Tests added.
	(domConfig): Method name in the code fixed to |flag|.

	* DOMMain.dis (findOffset32): Missing |^| in regular expressions
	added.

	* DOMCore.dis (hasChildNodes): Returns |false| if the node type
	is defined not to have any children.
	(CharacterData): Typos in element type names and function names fixed.

++ manakai/lib/manakai/ChangeLog	16 Nov 2005 10:06:30 -0000
2005-11-16  Wakaba  <wakaba@suika.fam.cx>

	* domtest.pl (skip_rest): Exits test after generating comments.
	(assertEqualsCollection): Array reference dereferencing
	syntax fixed (it was mistakenly coded in JavaScript like style).

	* DISPerl.dis (StringRef): Don't |weaken| reference if
	there is already a weak reference.

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
10 CD = cd
11 MAKE = make
12 MKDIR = mkdir -p
13
14 RM = rm
15 RMALL = $(RM) -fv
16
17 TEST_VERBOSE = 0
18 INST_ARCHLIB = $(MANAKAI_ROOT_DIR)blib/arch
19 INST_LIB = $(MANAKAI_ROOT_DIR)blib/lib
20
21 PERL_OPTIONS =
22 PERL = perl
23 PERL_ = $(PERL) $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR)
24 PERLC = $(PERL) -c
25 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 '$(INST_ARCHLIB)')"
31
32 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 DOMTEST_TESTS_DIR = $(MANAKAI_ROOT_DIR)../domts/tests/
39 DOMTEST_PERL_DIR = $(MANAKAI_TEST_DIR)dom/
40 DOMTEST_FILE = *.xml
41
42 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
46 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 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
57 NS_MDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#ManakaiDOM.
58 NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#
59 NS_UTIL = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/
60
61 GENERATED_FILES = util-perlcode.t dom-feature.t dom-genericls.t \
62 dom-mdomls2003
63
64 all: $(GENERATED_FILES)
65
66 dom1core-perl: $(DOMTS2PERL_PL)
67 $(MKDIR) $(DOMTEST_PERL_DIR)level1/core/
68 $(DOMTS2PERL) --test-directory="$(DOMTEST_TESTS_DIR)level1/core/" \
69 --output-directory="$(DOMTEST_PERL_DIR)level1/core/" \
70 --domtest2perl-path="$(DOMTEST2PERL_PL)"
71
72 dom1core:
73 MANAKAI_DOMTEST_FILE_DIR=$(DOMTEST_TESTS_DIR)level1/core/files/ \
74 $(PERL_TEST_) $(DOMTEST_PERL_DIR)level1/core/$(DOMTEST_FILE).pl
75
76 dom-feature.t: $(DOM_FEATURE_DAC) $(DAC2TEST_PL)
77 $(DAC2TEST) $< --source-module="$(NS_MDOM)DOMFeature" > $@
78
79 dom-genericls.t: $(DOM_CORE_DAC) $(DAC2TEST_PL)
80 $(DAC2TEST) $< --source-module="$(NS_MDOM)GenericLS" > $@
81
82 dom-mdomls2003.t: $(DOM_LS_DAC) $(DAC2TEST_PL)
83 $(DAC2TEST) $< --source-module="$(NS_MDOM)ManakaiDOMLS2003" > $@
84
85 util-perlcode.t: $(UTIL_PC_DAC) $(DAC2TEST_PL)
86 $(DAC2TEST) $< --source-module="$(NS_UTIL)PerlCode" > $@
87
88 $(DOM_DAC_FILES): $(MANAKAI_LIB_DIR)Message/DOM/%: always
89 $(CD) $(MANAKAI_LIB_DIR)Message/DOM/ && $(MAKE) $*
90
91 $(UTIL_PC_DAC): $(MANAKAI_LIB_DIR)Message/Util/%: always
92 $(CD) $(MANAKAI_LIB_DIR)Message/Util/ && $(MAKE) $*
93
94 clean: clean-dom1core-perl
95 $(RMALL) $(GENERATED_FILES)
96
97 clean-dom1core-perl:
98 $(RMALL) $(DOMTEST_PERL_DIR)level1/core/*
99 $(RMALL) *~ .*~ *.BAK .*.BAK
100
101 always:

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24