Browse Source

More updates

Eric Andersen 23 years ago
parent
commit
3c5b48ca83
4 changed files with 17 additions and 4 deletions
  1. 3 1
      test/assert/Makefile
  2. 1 1
      test/ctype/Makefile
  3. 2 0
      test/string/.cvsignore
  4. 11 2
      test/string/Makefile

+ 3 - 1
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 " "
 

+ 1 - 1
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; \

+ 2 - 0
test/string/.cvsignore

@@ -2,3 +2,5 @@ string
 string.o
 string_glibc
 string_glibc.o
+testcopy.out
+testcopy.gnu.out 

+ 11 - 2
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)