check: Also test with i686-unknown-linux-gnu-gcc.

* check.sh (CC32): New variable.
* build-aux/test.sh: Also test with CC32.o
This commit is contained in:
Jan Nieuwenhuizen 2018-05-04 21:24:39 +02:00
parent aa7cca0032
commit cac2ba7b06
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273
2 changed files with 23 additions and 3 deletions

View file

@ -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

View file

@ -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}