[runtime] Set pending exception in icalls instead of raising.
[mono.git] / mcs / class / System.Web / Test / tools / Makefile
1 thisdir = class/System.Web/Test/tools
2
3 include ../../../../build/rules.make
4
5 CLASSLIB_DIR = $(topdir)/class/lib/$(PROFILE)
6 STANDALONE_RUNNER_SUPPORT_ASSEMBLY = $(CLASSLIB_DIR)/standalone-runner-support.dll
7
8 STANDALONE_RUNNER_SOURCES = \
9         standalone-runner.cs \
10         ../../../Mono.Options/Mono.Options/Options.cs \
11
12 STANDALONE_RUNNER_REFERENCES = \
13         -lib:$(CLASSLIB_DIR) \
14         -r:$(STANDALONE_RUNNER_SUPPORT_ASSEMBLY) \
15         -r:System.Web.dll
16
17 CACHE_PQ_TEST_GENERATOR_SOURCES = \
18         CachePQTestGenerator/CacheItemComparer.cs \
19         CachePQTestGenerator/PriorityQueue.cs \
20         CachePQTestGenerator/PriorityQueueState.cs \
21         CachePQTestGenerator/Sequences.cs \
22         CachePQTestGenerator/Utils.cs \
23         CachePQTestGenerator/cache-pq-test-generator.cs \
24         ../../System.Web.Caching/CacheItem.cs \
25         ../../System.Web.Caching/CacheItemPriorityQueue.cs \
26         ../../System.Web.Caching/CacheItemPriorityQueueDebug.cs \
27         ../System.Web.Caching/CacheItemPriorityQueueTestSupport.cs
28
29 CACHE_PQ_TEST_GENERATOR_REFERENCES = \
30         -lib:$(CLASSLIB_DIR) \
31         -pkg:dotnet
32
33 CACHE_PQ_TEST_SEQUENCES = $(wildcard ./CachePQTestGenerator/Sequences/*.seq)
34 CACHE_PQ_TEST_PACKED_SEQUENCES = $(wildcard ./CachePQTestGenerator/Sequences/*.seq.gz)
35
36 all-local: HtmlWriter.dll standalone-runner.exe cache-pq-test-generator.exe
37
38 HtmlWriter.dll: HtmlWriter.cs
39         $(MCS) -t:library -r:System.Web.dll $<
40
41 standalone-runner.exe: deps $(STANDALONE_RUNNER_SOURCES)
42         $(MCS) -debug:full $(STANDALONE_RUNNER_REFERENCES) -out:$@ $(STANDALONE_RUNNER_SOURCES)
43
44 cache-pq-test-generator.exe: $(CACHE_PQ_TEST_GENERATOR_SOURCES)
45         $(MCS) -debug:full -d:DEBUG $(CACHE_PQ_TEST_GENERATOR_REFERENCES) -out:$@ $(CACHE_PQ_TEST_GENERATOR_SOURCES)
46
47 generate-cache-pq-tests: cache-pq-test-generator.exe 
48         for f in $(patsubst %.seq.gz,%.seq,$(CACHE_PQ_TEST_PACKED_SEQUENCES)); do \
49                 gunzip -c $$f.gz > $$f ; \
50         done ;
51         $(RUNTIME) --debug cache-pq-test-generator.exe ./CachePQTestGenerator/Sequences/ ../System.Web.Caching/CacheItemPriorityQueueTestData/ > ../System.Web.Caching/CacheItemPriorityQueueTest_generated.cs
52
53 deps:
54 ifndef STANDALONE_SUPPORT_BUILT
55         $(MAKE) -C ../../ standalone-runner-support
56 endif
57
58 clean:
59         rm -f HtmlWriter.dll HtmlWriter.*db
60         rm -f standalone-runner.exe standalone-runner.*db
61         for f in $(patsubst %.seq.gz,%.seq,$(CACHE_PQ_TEST_PACKED_SEQUENCES)); do \
62                 rm -f $$f ; \
63         done ;