Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Makefile « standalone_tests « System.Xml.Schema « Test « System.XML « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c1df7c706c23eba7c16c1a5582dd617875f05dd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
PROFILE = net_1_1
RUNTIME = MONO_PATH=../../../../lib/$(PROFILE) mono --debug
ifeq ($(PROFILE), net_2_0)
	MCS = gmcs
else
	MCS = mcs
endif
TESTS = xsd-test-suite/suntest/SunTestsAll/xsiType1.xsd
MASTERS = xsd-test-suite/suntest/tests-all.xml
TEST_ARCHIVE = XSTC-20020116.tar.gz
MASTER_ARCHIVE = test-masters.tar.gz
ifeq ($(PROFILE), net_2_0)
	MCS_OPTS += -d:NET_2_0
endif
TEST_RUNNER = xsdtest_$(PROFILE).exe

$(TEST_RUNNER) : xsdtest.cs $(TESTS)
	$(MCS) xsdtest.cs $(MCS_OPTS) -out:$(TEST_RUNNER)

xs-psci-compare.exe : xs-psci-compare.cs
	$(MCS) xs-psci-compare.cs

$(MASTERS) : $(MASTER_ARCHIVE)
	mkdir xsd-test-suite 2>/dev/null; true
	cd xsd-test-suite && tar zxvf ../$(MASTER_ARCHIVE)
	touch $(MASTERS)

$(TESTS) : $(TEST_ARCHIVE) $(MASTERS) 
	mkdir xsd-test-suite 2>/dev/null; true
	cd xsd-test-suite && tar zxvf ../$(TEST_ARCHIVE)
	touch $(TESTS)

$(TEST_ARCHIVE) :
	wget http://www.w3.org/2001/05/xmlschema-test-collection/XSTC-20020116.tar.gz

run-test : $(TEST_RUNNER)
	$(RUNTIME) $(TEST_RUNNER) --v2 --xml --reportsuccess --testall --details --report:TestResult.xml $(XSD_TEST_FLAGS)
	@echo "SUCCESS: `grep -c \"OK\" TestResult.xml` NORMAL FAILURE: `grep -c should TestResult.xml` UNEXPECTED `grep -c unexpected TestResult.xml`"

test-psci : xs-psci-compare.exe
	$(RUNTIME) xs-psci-compare.exe xsd-test-suite/msxsdtest/tests-all.xml > psci-mono-msxsd.txt

clean:
	rm $(TEST_RUNNER)
	
# be careful to use it. This removes ALL files in xsd-test-suite!
clean-complete:
	rm $(TEST_RUNNER)
	rm -rf xsd-test-suite