[MLton-commit] r4074

Stephen Weeks MLton@mlton.org
Tue, 6 Sep 2005 15:00:53 -0700


Added support for platform-specific regression outputs, and used them
to quell some of the noise in Cygwin regressions.

----------------------------------------------------------------------

U   mlton/trunk/bin/regression
A   mlton/trunk/regression/filesys.x86-cygwin.ok
A   mlton/trunk/regression/unixpath.x86-cygwin.ok

----------------------------------------------------------------------

Modified: mlton/trunk/bin/regression
===================================================================
--- mlton/trunk/bin/regression	2005-09-06 21:14:53 UTC (rev 4073)
+++ mlton/trunk/bin/regression	2005-09-06 22:00:52 UTC (rev 4074)
@@ -54,6 +54,7 @@
 dir=`dirname $0`
 src=`cd $dir/.. && pwd`
 bin="$src/build/bin"
+lib="$src/build/lib"
 mlton="$bin/mlton"
 flags="-type-check true $flags"
 if [ $cross = 'yes' ]; then
@@ -68,6 +69,8 @@
 tmp=/tmp/z.regression.$$
 PATH=$bin:$src/bin/.:$PATH
 
+eval `$lib/platform`
+
 compFail () {
         echo "compilation of $f failed with $flags"
 }
@@ -178,14 +181,15 @@
                         esac
                         ( ./$f || echo -e "$nonZeroMsg" ) >$tmp 2>&1 
                         if [ -r $f.ok ]; then
+				compare="$f.$HOST_ARCH-$HOST_OS.ok"
+				if [ ! -r $compare ]; then
+					compare="$f.ok"
+				fi
                                 case $crossTarget in
                                 *mingw)
                                         compare="$f.sed.ok"
                                         sed 's/$/\r/' <"$f.ok" >"$compare"
                                 ;;
-                                *)
-                                        compare="$f.ok"
-                                ;;
                                 esac
                                 if ! diff $compare $tmp; then
                                         echo "difference with $flags"

Added: mlton/trunk/regression/filesys.x86-cygwin.ok
===================================================================
--- mlton/trunk/regression/filesys.x86-cygwin.ok	2005-09-06 21:14:53 UTC (rev 4073)
+++ mlton/trunk/regression/filesys.x86-cygwin.ok	2005-09-06 22:00:52 UTC (rev 4074)
@@ -0,0 +1,63 @@
+
+File filesys.sml: Testing structure FileSys...
+test1a    	OK
+test1b    	OK
+test2    	OK
+test3a    	OK
+test4a    	OK
+test4b    	OK
+test4c    	OK
+test4d    	OK
+test5    	OK
+test6a    	OK
+test6b    	OK
+test6c    	OK
+test6d    	OK
+test6e    	OK
+test6f    	OK
+test6g    	OK
+test6h    	OK
+test6i    	OK
+test6j    	OK
+test6k    	OK
+test6l    	OK
+test7a    	OK
+test7b    	OK
+test7c    	OK
+test7d    	OK
+test7e    	OK
+test8a    	EXN
+test8b    	EXN
+test8c    	OK
+test8d    	OK
+test8e    	EXN
+test8f    	EXN
+test8g    	OK
+test8h    	OK
+test9a    	OK
+test9b    	OK
+test10a    	OK
+test10b    	OK
+test10c    	OK
+test11a    	OK
+test11b    	OK
+test11c    	OK
+test12a    	OK
+test12b    	OK
+test12c    	OK
+test13a    	OK
+test13b    	OK
+test13c    	OK
+test13d    	OK
+test13e    	OK
+test14    	OK
+test15a    	OK
+test15b    	OK
+test15b1    	OK
+test15b2    	OK
+test15b3    	OK
+test15c    	OK
+test15d    	OK
+test15e    	OK
+test15f    	OK
+test15g    	OK

Added: mlton/trunk/regression/unixpath.x86-cygwin.ok
===================================================================
--- mlton/trunk/regression/unixpath.x86-cygwin.ok	2005-09-06 21:14:53 UTC (rev 4073)
+++ mlton/trunk/regression/unixpath.x86-cygwin.ok	2005-09-06 22:00:52 UTC (rev 4074)
@@ -0,0 +1,61 @@
+
+File unixpath.sml: Testing structure Path...
+test1a    	OK
+test1b    	WRONG
+test1c    	WRONG
+test1d    	OK
+test1e    	WRONG
+test1f    	WRONG
+test1g    	OK
+test1h    	OK
+test1i    	OK
+test1j    	OK
+test1k    	OK
+test1l    	OK
+test1m    	OK
+test1n    	OK
+test2a    	OK
+test2b    	EXN
+test2c    	EXN
+test2d    	OK
+test2e    	EXN
+test2f    	EXN
+test2g    	WRONG
+test2h    	WRONG
+test2i    	WRONG
+test2j    	WRONG
+test2k    	WRONG
+test2l    	WRONG
+test2m    	WRONG
+test2n    	EXN
+test2o    	OK
+test2p    	WRONG
+test3b    	WRONG
+test3c    	WRONG
+test3d    	OK
+test3e    	OK
+test3f    	OK
+test3g    	OK
+test3h    	WRONG
+test4a    	OK
+test4b    	OK
+test5a    	WRONG
+test6a    	WRONG
+test6b    	OK
+test7a    	WRONG
+test7b    	OK
+test7c    	OK
+test8a    	WRONG
+test8b    	OK
+test8c    	OK
+test9a    	WRONG
+test10a    	OK
+test11a    	WRONG
+test12    	WRONG
+test13    	WRONG
+test14    	OK
+test15    	WRONG
+test16    	OK
+test17    	OK
+test18    	WRONG
+test19    	WRONG