summaryrefslogtreecommitdiffstats
path: root/bin/ed/test/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ed/test/Makefile')
-rw-r--r--bin/ed/test/Makefile24
1 files changed, 15 insertions, 9 deletions
diff --git a/bin/ed/test/Makefile b/bin/ed/test/Makefile
index ca45a51..84166c1 100644
--- a/bin/ed/test/Makefile
+++ b/bin/ed/test/Makefile
@@ -1,17 +1,23 @@
+SHELL= /bin/sh
ED= ../obj/ed
-all: build test
- @echo done
+all: check
+ @:
+
+check: build test
+ @if grep -h '\*\*\*' errs.o scripts.o; then :; else \
+ echo "tests completed successfully."; \
+ fi
build: mkscripts.sh
- @echo building test scripts...
- @chmod +x mkscripts.sh
- @./mkscripts.sh ${ED}
+ @if [ -f errs.o ]; then :; else \
+ echo "building test scripts for $(ED) ..."; \
+ $(SHELL) mkscripts.sh $(ED); \
+ fi
test: build ckscripts.sh
- @echo running test scripts...
- @chmod +x ckscripts.sh
- @./ckscripts.sh ${ED}
+ @echo testing $(ED) ...
+ @$(SHELL) ckscripts.sh $(ED)
clean:
- rm -f *.ed *.[oz] *~
+ rm -f *.ed *.red *.[oz] *~
OpenPOWER on IntegriCloud