phrep

Check-in [0370a185c4]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Only redirect STDOUT for failing tests.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:0370a185c4203844803ab5ed0f065385be931769
User & Date: mario 2015-04-28 23:07:40
Context
2015-04-28
23:08
Use array_merge() instad of += adjoing operator on updating ->pragma stack. check-in: e2ad430ee0 user: mario tags: trunk
23:07
Only redirect STDOUT for failing tests. check-in: 0370a185c4 user: mario tags: trunk
23:06
Remove redundant //<?php prefix check-in: 223fc62a1b user: mario tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to test/Makefile.

15
16
17
18
19
20
21
22
23
24
25
26
27
# Test run the preprecossor
samples: $(SAMPLES:.ph=.t) $(INVALID:.wr=.t)
%.t: %.ph
	../phrep -v -W -i=$*.ph -o=- | cmp $*.cmp
%.rx: %.ph
	../phrep -v -W -i=$*.ph -o=- -mregex | cmp $*.cmp
%.t: %.wr
	@../phrep -v -W -i=$*.wr -o=- 2>/dev/null || echo $*: $(FAIL_OK) as expected

mkcmp: $(SAMPLES:.ph=.cmp)
%.cmp: %.ph # Create comparison for preproccessed files
	../phrep -v -W -i=$*.ph -o=$*.cmp








|





15
16
17
18
19
20
21
22
23
24
25
26
27
# Test run the preprecossor
samples: $(SAMPLES:.ph=.t) $(INVALID:.wr=.t)
%.t: %.ph
	../phrep -v -W -i=$*.ph -o=- | cmp $*.cmp
%.rx: %.ph
	../phrep -v -W -i=$*.ph -o=- -mregex | cmp $*.cmp
%.t: %.wr
	@../phrep -v -W -i=$*.wr -o=- >/dev/null || echo $*: $(FAIL_OK) as expected

mkcmp: $(SAMPLES:.ph=.cmp)
%.cmp: %.ph # Create comparison for preproccessed files
	../phrep -v -W -i=$*.ph -o=$*.cmp