summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-10-17 18:12:55 +0000
committerEric Andersen <andersen@codepoet.org>2000-10-17 18:12:55 +0000
commit3c5b48ca8375629db5638e9275d7de17ed778169 (patch)
treee065718ff7a3be4b8201eb32a31a592d9629423b /test
parente3c7892252f5a20589d82c7387c61337b3542e13 (diff)
More updates
Diffstat (limited to 'test')
-rw-r--r--test/assert/Makefile4
-rw-r--r--test/ctype/Makefile2
-rw-r--r--test/string/.cvsignore2
-rw-r--r--test/string/Makefile13
4 files changed, 17 insertions, 4 deletions
diff --git a/test/assert/Makefile b/test/assert/Makefile
index 57b87aa78..7b30a69f7 100644
--- a/test/assert/Makefile
+++ b/test/assert/Makefile
@@ -1,5 +1,5 @@
TOPDIR=../../
-include $(TOPDIR)Rules.make
+include $(TOPDIR)Rules.mak
# Check if 'ls -sh' works or not
LSFLAGS = $(shell if ls -sh >/dev/null 2>&1; \
@@ -30,6 +30,7 @@ assert: assert.c Makefile $(TOPDIR)libc.a
-@ echo " "
$(CC) $(XCFLAGS) -c $< -o $@.o
$(CC) $(XLDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
+ -@ echo "This is supposed to core dump on test #3"
-./$@
-@ echo " "
@@ -40,6 +41,7 @@ assert_glibc: assert.c Makefile $(TOPDIR)libc.a
-@ echo " "
$(CC) $(YCFLAGS) -c $< -o $@.o
$(CC) $(YLDFLAGS) --static $@.o -o $@
+ -@ echo "This is supposed to core dump on test #3"
-./$@
-@ echo " "
diff --git a/test/ctype/Makefile b/test/ctype/Makefile
index fdb64ce03..08d367d69 100644
--- a/test/ctype/Makefile
+++ b/test/ctype/Makefile
@@ -1,5 +1,5 @@
TOPDIR=../../
-include $(TOPDIR)Rules.make
+include $(TOPDIR)Rules.mak
# Check if 'ls -sh' works or not
LSFLAGS = $(shell if ls -sh >/dev/null 2>&1; \
diff --git a/test/string/.cvsignore b/test/string/.cvsignore
index 3f73ed9a9..06d4a21bb 100644
--- a/test/string/.cvsignore
+++ b/test/string/.cvsignore
@@ -2,3 +2,5 @@ string
string.o
string_glibc
string_glibc.o
+testcopy.out
+testcopy.gnu.out
diff --git a/test/string/Makefile b/test/string/Makefile
index e8725db3f..4d9fdd25f 100644
--- a/test/string/Makefile
+++ b/test/string/Makefile
@@ -51,7 +51,7 @@ testcopy: testcopy.c Makefile $(TOPDIR)libc.a
-@ echo " "
$(CC) $(XCFLAGS) -c $< -o $@.o
$(CC) $(XLDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
- -./$@
+ -./$@ > testcopy.out
-@ echo " "
testcopy_glibc: testcopy.c Makefile $(TOPDIR)libc.a
@@ -61,8 +61,17 @@ testcopy_glibc: testcopy.c Makefile $(TOPDIR)libc.a
-@ echo " "
$(CC) $(YCFLAGS) -c $< -o $@.o
$(CC) $(YLDFLAGS) --static $@.o -o $@
- -./$@
+ -./$@ > testcopy.gnu.out
+ -@ echo " "
+
+testcopy_diff: testcopy testcopy_glibc
+ -@ echo "-------"
+ -@ echo " "
+ -@ echo "Diffing output: "
-@ echo " "
+ -diff -u testcopy.gnu.out testcopy.out
+ -@ echo " "
+
clean:
rm -f *.[oa] *~ core $(TARGETS)