Annotation of parser3/tests/Makefile, revision 1.1.2.5
1.1.2.1 paf 1: ifdef COMSPEC
1.1.2.3 paf 2: PARSER_EXECUTABLE=../src/targets/cgi/debug/parser3.exe
1.1.2.1 paf 3: else
1.1.2.3 paf 4: PARSER_EXECUTABLE=../src/targets/cgi/parser3
1.1.2.1 paf 5: endif
6:
1.1.2.3 paf 7: RUN_PARSER=./run_parser.sh
1.1.2.1 paf 8: DIFF=diff
9: ECHO=echo
10: RM=rm
11:
12: #
13:
14: OUTPUTS=$(patsubst %.html,outputs/%.processed,$(wildcard *.html))
15: RESULTS=$(patsubst %.html,results/%.processed,$(wildcard *.html))
16:
1.1.2.3 paf 17: outputs/%.processed: %.html Makefile $(RUN_PARSER) $(PARSER_EXECUTABLE)
18: $(RUN_PARSER) $(PARSER_EXECUTABLE) $< > $@
1.1.2.1 paf 19:
1.1.2.4 paf 20: .PHONY: FORCE all tests clean
1.1.2.1 paf 21:
22: results/%.processed: outputs/%.processed FORCE
23: @$(DIFF) $< $@
24:
1.1.2.4 paf 25: all:
1.1.2.5 ! paf 26: @$(ECHO) this folder contains Parser3 tests, you can run them by command:
! 27: @$(ECHO) make tests
1.1.2.1 paf 28:
29: tests: outputs compares
30:
31: outputs: $(OUTPUTS)
32:
33: compares: $(RESULTS)
34: @$(ECHO) All tests passed OK
35:
36: clean:
37: $(RM) -f outputs/*.processed
E-mail: