X-Git-Url: https://git.distorted.org.uk/~mdw/fringe/blobdiff_plain/2bd37ef118cb1e41cb0e9e2332a9eb69ac2f2df4..a72b6978928e45212ef174643d4408f3f7cbfe51:/Makefile diff --git a/Makefile b/Makefile index aac2437..86e5616 100644 --- a/Makefile +++ b/Makefile @@ -24,23 +24,25 @@ clean::; rm -f $(CLEANFILES) CLEANFILES += test.* test:: all - @win=0 lose=0; \ - for lang in $(LANGS); do \ - echo >&3 "*** $$lang"; \ - printf "Test $$lang..."; \ - if ./test ./$${lang}-fringe 2>&3; then \ - win=$$(expr $$win + 1); \ - printf " ok\n"; \ - else \ - lose=$$(expr $$lose + 1); \ - printf " FAILED\n"; \ - fi; \ - done 3>test.log; \ - if [ $$lose -eq 0 ]; then \ - echo "All $$win test(s) OK"; \ - else \ - echo "FAILED $$lose test(s)!"; \ - exit 1; \ + @win=0 lose=0; \ + for lang in $(LANGS); do \ + echo >&3 "*** $$lang"; \ + printf "Test $$lang..."; \ + time=`command time -o/dev/stdout -f "%U user; %S system; %E" \ + ./test ./$${lang}-fringe 2>&3`; \ + if [ $$? -eq 0 ]; then \ + win=$$(expr $$win + 1); \ + printf " ok ($$time)\n"; \ + else \ + lose=$$(expr $$lose + 1); \ + printf " FAILED\n"; \ + fi; \ + done 3>test.log; \ + if [ $$lose -eq 0 ]; then \ + echo "All $$win test(s) OK"; \ + else \ + echo "FAILED $$lose test(s)!"; \ + exit 1; \ fi ###-------------------------------------------------------------------------- @@ -82,9 +84,12 @@ icon-fringe: icon-fringe.icn ###-------------------------------------------------------------------------- ### Common Lisp. +CLEANFILES += *.core + LANGS += cl cl-fringe: cl-fringe.lisp - cl-launch -R -o $@ -f `pwd`/$^ +## cl-launch -R -o $@ -f `pwd`/$^ -- slow to start + cl-launch -o $@ -f `pwd`/$^ +I -r launch -d $@.core ###-------------------------------------------------------------------------- ### F#.