OSDN Git Service

More updates
authorEric Andersen <andersen@codepoet.org>
Tue, 17 Oct 2000 18:12:55 +0000 (18:12 -0000)
committerEric Andersen <andersen@codepoet.org>
Tue, 17 Oct 2000 18:12:55 +0000 (18:12 -0000)
test/assert/Makefile
test/ctype/Makefile
test/string/.cvsignore
test/string/Makefile

index 57b87aa..7b30a69 100644 (file)
@@ -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 " "
 
index fdb64ce..08d367d 100644 (file)
@@ -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; \
index 3f73ed9..06d4a21 100644 (file)
@@ -2,3 +2,5 @@ string
 string.o
 string_glibc
 string_glibc.o
+testcopy.out
+testcopy.gnu.out 
index e8725db..4d9fdd2 100644 (file)
@@ -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)