File:  [parser3project] / parser3 / tests / Makefile
Revision 1.1.2.3: download - view: text, annotated - select for diffs - revision graph
Mon Mar 3 15:30:06 2003 UTC (23 years, 3 months ago) by paf
tests:
43,44,45 date rolls
46 autoevaluating junction
47 table.select
48 name with subvar
49 hash-creating switch
50 process
51 started parent/child, works as it were but it were NOT GOOD, created separate task  to fix that

ifdef COMSPEC
	PARSER_EXECUTABLE=../src/targets/cgi/debug/parser3.exe
else
	PARSER_EXECUTABLE=../src/targets/cgi/parser3
endif

RUN_PARSER=./run_parser.sh
DIFF=diff
ECHO=echo
RM=rm

#

OUTPUTS=$(patsubst %.html,outputs/%.processed,$(wildcard *.html))
RESULTS=$(patsubst %.html,results/%.processed,$(wildcard *.html))

outputs/%.processed: %.html Makefile $(RUN_PARSER) $(PARSER_EXECUTABLE)
	$(RUN_PARSER) $(PARSER_EXECUTABLE) $< > $@

.PHONY: FORCE all clean

results/%.processed: outputs/%.processed FORCE
	@$(DIFF) $< $@

all: tests

tests: outputs compares

outputs: $(OUTPUTS)

compares: $(RESULTS)
	@$(ECHO) All tests passed OK

clean:
	$(RM) -f outputs/*.processed

E-mail: