1 thisdir = class/System.Web/Test/tools
3 include ../../../../build/rules.make
5 CLASSLIB_DIR = $(topdir)/class/lib/$(PROFILE)
6 STANDALONE_RUNNER_SUPPORT_ASSEMBLY = $(CLASSLIB_DIR)/standalone-runner-support.dll
8 STANDALONE_RUNNER_SOURCES = \
10 ../../../Mono.Options/Mono.Options/Options.cs \
12 STANDALONE_RUNNER_REFERENCES = \
13 -lib:$(CLASSLIB_DIR) \
14 -r:$(STANDALONE_RUNNER_SUPPORT_ASSEMBLY) \
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
29 CACHE_PQ_TEST_GENERATOR_REFERENCES = \
30 -lib:$(CLASSLIB_DIR) \
33 CACHE_PQ_TEST_SEQUENCES = $(wildcard ./CachePQTestGenerator/Sequences/*.seq)
34 CACHE_PQ_TEST_PACKED_SEQUENCES = $(wildcard ./CachePQTestGenerator/Sequences/*.seq.gz)
36 all-local: HtmlWriter.dll standalone-runner.exe cache-pq-test-generator.exe
38 HtmlWriter.dll: HtmlWriter.cs
39 $(MCS) -t:library -r:System.Web.dll $<
41 standalone-runner.exe: deps $(STANDALONE_RUNNER_SOURCES)
42 $(MCS) -debug:full $(STANDALONE_RUNNER_REFERENCES) -out:$@ $(STANDALONE_RUNNER_SOURCES)
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)
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 ; \
51 $(RUNTIME) --debug cache-pq-test-generator.exe ./CachePQTestGenerator/Sequences/ ../System.Web.Caching/CacheItemPriorityQueueTestData/ > ../System.Web.Caching/CacheItemPriorityQueueTest_generated.cs
54 ifndef STANDALONE_SUPPORT_BUILT
55 $(MAKE) -C ../../ standalone-runner-support
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 \