* Show BUG messages when failing in 'make test'
authorpancake@localhost.localdomain
Thu Apr 09 00:30:24 2009 +0000 (2009-04-09)
changeset 35ff9b62c1a8d7
parent 34 00ac8c3d8823
child 36 0f15f1d14598
* Show BUG messages when failing in 'make test'
* Verboser onerliner BUG message
Makefile
t/oneliner.spp
     1.1 --- a/Makefile	Thu Apr 09 00:22:14 2009 +0000
     1.2 +++ b/Makefile	Thu Apr 09 00:30:24 2009 +0000
     1.3 @@ -23,8 +23,9 @@
     1.4  test:
     1.5  	@for a in t/*spp* ; do \
     1.6  	  printf "Testing $$a... " ; \
     1.7 -	 ./spp -tspp $$a > out.txt ; \
     1.8 -	  if [ -z "`cat out.txt|grep BUG`" ]; then echo ok ; else echo oops ; fi ; \
     1.9 +	  ./spp -tspp $$a > out.txt ; \
    1.10 +	  if [ -z "`cat out.txt | grep BUG`" ]; then echo ok ; else echo oops ; fi ; \
    1.11 +	  cat out.txt | grep BUG ; \
    1.12  	  rm -f out.txt ; \
    1.13  	  true ; \
    1.14  	done
     2.1 --- a/t/oneliner.spp	Thu Apr 09 00:22:14 2009 +0000
     2.2 +++ b/t/oneliner.spp	Thu Apr 09 00:30:24 2009 +0000
     2.3 @@ -1,1 +1,1 @@
     2.4 -<{set var 1}><{ifeq var 1}>its true<{else}>BUG<{endif}>
     2.5 +<{set var 1}><{ifeq var 1}>its true<{else}>BUG: false conditional check in oneliner ifeq<{endif}>