trivial diff: tests/valid/{Mmakefile,runtests} and --use-subdirs

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Mar 30 23:24:42 AEST 1998


tests/valid/runtests:
tests/valid/Mmakefile:
	Change a hard-coded test for `$file.o' so that it will
	work with --use-subdirs.

Index: Mmakefile
===================================================================
RCS file: /home/mercury1/repository/tests/valid/Mmakefile,v
retrieving revision 1.13
diff -u -u -r1.13 Mmakefile
--- Mmakefile	1998/03/20 02:58:30	1.13
+++ Mmakefile	1998/03/30 13:13:21
@@ -161,6 +161,9 @@
 printtests:
 	@echo $(PROGS)
 
+printobjs:
+	@echo $(OBJS)
+
 clean:
 	rm -f *.c *.o *.err *.d *.h
 
Index: runtests
===================================================================
RCS file: /home/mercury1/repository/tests/valid/runtests,v
retrieving revision 1.4
diff -u -u -r1.4 runtests
--- runtests	1998/01/06 04:16:17	1.4
+++ runtests	1998/03/30 13:13:55
@@ -9,13 +9,13 @@
 eval mmake -k $jfactor $gradeopt $flagsopt $cflagsopt check
 checkstatus=$?
 
-files=`mmake $gradeopt printtests`
+objs=`mmake $gradeopt printobjs`
 failed=""
-for file in $files
+for obj in $objs
 do
-	if test ! -f "$file.o"
+	if test ! -f "$obj"
 	then
-		failed="$failed $file"
+		failed="$failed $obj"
 	fi
 done
 

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.



More information about the developers mailing list