Add preliminary tests for generated code changes in the confidence tests.

This commit is contained in:
David Brown 2016-07-19 17:59:04 +01:00
parent ece90b85c5
commit 359aa1c43f
8 changed files with 1298 additions and 2 deletions

View file

@ -1,6 +1,9 @@
#!/bin/sh
## '.' this file from individual test.sh files.
#set -e
echo --- Confidence test $(basename $PWD) ---
if which cygpath >/dev/null
then export PATH="$(cygpath "$1")/bin":$PATH
else export PATH="$1/bin":$PATH
@ -9,3 +12,13 @@ fi
export DYLD_LIBRARY_PATH=$1/lib:$DYLD_LIBRARY_PATH
export LD_LIBRARY_PATH=$1/lib:$LD_LIBRARY_PATH
rm -f *.o *.obj *.exe *.sym *.c *.h result
# Under gcc generate assembly source for source change test.
# NOTE: The following CFLAGS causes the assembler to write source
# to a single file. When there are multiple Mod files, each
# corresponding assembly file will overwrite the previous. I
# cannot see any way to overcome this short of using -S
# on the voc command and calling 'as' explicitly.
if [ $COMPILER=gcc ]
then export CFLAGS="-gstabs -g1 -Wa,-acdhln=new.asm"
fi