aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2019-06-24 01:10:24 -0600
committerArnold D. Robbins <arnold@skeeve.com>2019-06-24 01:10:24 -0600
commitab911ab204ef1dc8f80cf673ad6362f999fc24bb (patch)
tree5ede349452b76bbab726529fc0b43b8a6bf7c660
parent4a99bd14d0093b53215c1ec1cc9ee5209028973b (diff)
downloadone-true-awk-ab911ab204ef1dc8f80cf673ad6362f999fc24bb.tar.gz
Update makefile, mainly to clean up testdir.
-rw-r--r--ChangeLog6
-rw-r--r--makefile16
2 files changed, 19 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 316e87e..7010084 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2019-06-24 Arnold D. Robbins <arnold@skeeve.com>
+
+ * makefile: Revise to take into account there is no more awktest.tar,
+ add targets 'check' and 'test', and also 'testclean' to clean up
+ after test run. Have 'clean' and 'cleaner' depend upon 'testclean'.
+
2019-06-23 Arnold D. Robbins <arnold@skeeve.com>
* testdir: Extracted from awktest.tar and added to Git.
diff --git a/makefile b/makefile
index 3c0b62e..0ab46cb 100644
--- a/makefile
+++ b/makefile
@@ -92,7 +92,7 @@ gitadd:
git add README LICENSE FIXES \
awk.h proto.h awkgram.y lex.c b.c main.c maketab.c parse.c \
lib.c run.c tran.c \
- makefile awk.1 awktest.tar
+ makefile awk.1 testdir
gitpush:
# only do this once:
@@ -102,8 +102,18 @@ gitpush:
names:
@echo $(LISTING)
-clean:
+test check:
+ ./REGRESS
+
+clean: testclean
rm -f a.out *.o *.obj maketab maketab.exe *.bb *.bbg *.da *.gcov *.gcno *.gcda # proctab.c
-cleaner:
+cleaner: testclean
rm -f a.out *.o *.obj maketab maketab.exe *.bb *.bbg *.da *.gcov *.gcno *.gcda proctab.c ytab*
+
+# This is a bit of a band-aid until we can invest some more time
+# in the test suite.
+testclean:
+ cd testdir; rm -fr arnold-fixes beebe echo foo foo.td foo1 \
+ foo1t foo2 foo2t footot glop glop1 glop2 lilly.diff \
+ tempbig tempsmall time