check: Also test with i686-unknown-linux-gnu-gcc.
authorJan Nieuwenhuizen <janneke@gnu.org>
Fri, 4 May 2018 19:24:39 +0000 (21:24 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Fri, 4 May 2018 19:24:39 +0000 (21:24 +0200)
* check.sh (CC32): New variable.
* build-aux/test.sh: Also test with CC32.o

build-aux/test.sh
check.sh

index af01c6c40bde1dc40d45206afcfc8756d205f5d0..5dc8da42138b845df91cee5ea095651ea75f90d3 100755 (executable)
@@ -30,18 +30,36 @@ shift
 
 set -e
 
+rm -f "$t".mlibc-out
+if [ -n "$CC32" ]; then
+    sh build-aux/cc-mlibc.sh "$t"
+
+    r=0
+    [ -f "$t".exit ] && r=$(cat "$t".exit)
+    set +e
+    "$t".mlibc-out > "$t".mlibc-stdout
+    m=$?
+    cat "$t".mlibc-stdout
+    set -e
+
+    [ $m = $r ]
+    if [ -f "$t".expect ]; then
+        $DIFF -u "$t".expect "$t".mlibc-stdout;
+    fi
+fi
+
 rm -f "$t".mes-out
 sh build-aux/cc-mes.sh "$t"
 
 r=0
 [ -f "$t".exit ] && r=$(cat "$t".exit)
 set +e
-"$t".mes-out "$@" > "$t".stdout
+"$t".mes-out > "$t".mes-stdout
 m=$?
-cat "$t".stdout
+cat "$t".mes-stdout
 set -e
 
 [ $m = $r ]
 if [ -f "$t".expect ]; then
-    $DIFF -u "$t".expect "$t".stdout;
+    $DIFF -u "$t".expect "$t".mes-stdout;
 fi
index 1eecadf918457e07bb587cd43b8e866b5c95ce0e..7c4eb0b3a5b075b5c656ecae57d0b7837aa7a069 100755 (executable)
--- a/check.sh
+++ b/check.sh
@@ -18,7 +18,9 @@
 # You should have received a copy of the GNU General Public License
 # along with Mes.  If not, see <http://www.gnu.org/licenses/>.
 
+export CC32
 export GUILE MES MES_ARENA
+CC32=${CC32-$(command -v i686-unknown-linux-gnu-gcc)}
 GUILE=${GUILE-guile}
 MES=${MES-src/mes}
 MES_ARENA=${MES_ARENA-100000000}