Changeset 648
- Timestamp:
- 08/29/10 07:20:23 (14 years ago)
- Files:
-
- trunk/test/Makefile (modified) (1 diff)
- trunk/test/runnable/extra-files/test2.d (added)
- trunk/test/runnable/extra-files/test35.d (added)
- trunk/test/runnable/extra-files/test39.d (added)
- trunk/test/runnable/extra-files/test44.d (added)
- trunk/test/runnable/imports/test35a.d (added)
- trunk/test/runnable/imports/test39a.d (added)
- trunk/test/runnable/imports/test44a.d (added)
- trunk/test/runnable/test2.sh (added)
- trunk/test/runnable/test35.sh (added)
- trunk/test/runnable/test39.sh (added)
- trunk/test/runnable/test44.sh (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/test/Makefile
r641 r648 25 25 # default: (none) 26 26 # 27 27 # EXTRA_SOURCES: list of extra files to build and link along with the test 28 28 # default: (none) 29 29 # 30 30 # PERMUTE_ARGS: the set of arguments to permute in multiple $(DMD) invocations 31 31 # default: the make variable ARGS (see below) 32 32 # 33 33 # POST_SCRIPT: name of script to execute after test run 34 34 # default: (none) 35 35 # 36 36 # REQUIRED_ARGS: arguments to add to the $(DMD) command line 37 37 # default: (none) 38 38 39 39 SHELL=/bin/bash 40 40 QUIET=@ 41 41 export DMD=../src/dmd 42 42 export RESULTS_DIR=test_results 43 43 export ARGS=-inline -release -gc -O -unittest -fPIC 44 44 45 runnable_tests=$(wildcard runnable/*.d) $(wildcard runnable/*.html) 45 runnable_tests=$(wildcard runnable/*.d) $(wildcard runnable/*.html) $(wildcard runnable/*.sh) 46 46 runnable_test_results=$(addsuffix .out,$(addprefix $(RESULTS_DIR)/,$(runnable_tests))) 47 47 48 48 compilable_tests=$(wildcard compilable/*.d) 49 49 compilable_test_results=$(addsuffix .out,$(addprefix $(RESULTS_DIR)/,$(compilable_tests))) 50 50 51 51 fail_compilation_tests=$(wildcard fail_compilation/*.d) 52 52 fail_compilation_test_results=$(addsuffix .out,$(addprefix $(RESULTS_DIR)/,$(fail_compilation_tests))) 53 53 54 54 $(RESULTS_DIR)/runnable/%.d.out: runnable/%.d $(RESULTS_DIR)/.created $(RESULTS_DIR)/combinations $(DMD) 55 55 $(QUIET) ./do_test.sh $(<D) $* d 56 56 57 57 $(RESULTS_DIR)/runnable/%.html.out: runnable/%.html $(RESULTS_DIR)/.created $(RESULTS_DIR)/combinations $(DMD) 58 58 $(QUIET) ./do_test.sh $(<D) $* html 59 60 $(RESULTS_DIR)/runnable/%.sh.out: runnable/%.sh $(RESULTS_DIR)/.created $(RESULTS_DIR)/combinations $(DMD) 61 $(QUIET) echo " ... $(<D)/$*.sh" 62 $(QUIET) ./$(<D)/$*.sh 59 63 60 64 $(RESULTS_DIR)/compilable/%.d.out: compilable/%.d $(RESULTS_DIR)/.created $(RESULTS_DIR)/combinations $(DMD) 61 65 $(QUIET) ./do_test.sh $(<D) $* d 62 66 63 67 $(RESULTS_DIR)/fail_compilation/%.d.out: fail_compilation/%.d $(RESULTS_DIR)/.created $(RESULTS_DIR)/combinations $(DMD) 64 68 $(QUIET) ./do_test.sh $(<D) $* d 65 69 66 70 all: run_tests 67 71 68 72 quick: 69 73 $(MAKE) ARGS="" run_tests 70 74 71 75 clean: 72 76 @echo "Removing output directory: $(RESULTS_DIR)" 73 77 $(QUIET)if [ -e $(RESULTS_DIR) ]; then rm -rf $(RESULTS_DIR); fi 74 78 75 79 $(RESULTS_DIR)/.created: 76 80 @echo Creating output directory: $(RESULTS_DIR) 77 81 $(QUIET)if [ ! -d $(RESULTS_DIR) ]; then mkdir $(RESULTS_DIR); fi 78 82 $(QUIET)if [ ! -d $(RESULTS_DIR)/runnable ]; then mkdir $(RESULTS_DIR)/runnable; fi
