Test rlgl

This commit is contained in:
Anthony Green
2019-11-11 21:11:59 -05:00
parent 2cc11720be
commit 3c2b810e99
3 changed files with 56 additions and 41 deletions
+5 -2
View File
@@ -14,7 +14,7 @@ export QEMU_LD_PREFIX=/usr/${HOST}
make make
make dist make dist
make check RUNTESTFLAGS="-a $RUNTESTFLAGS" make check RUNTESTFLAGS="-a $RUNTESTFLAGS"
EXITCODE=$?
gzip -c -9 */testsuite/libffi.log > libffi.log.gz gzip -c -9 */testsuite/libffi.log > libffi.log.gz
echo ================================================================ echo ================================================================
echo The logs are too long for travis to handle, so we compress and echo The logs are too long for travis to handle, so we compress and
@@ -24,5 +24,8 @@ echo ================================================================
uuencode libffi.log.gz - uuencode libffi.log.gz -
echo ================================================================ echo ================================================================
echo ================================================================ echo ================================================================
exit $EXITCODE
ID=$(./rlgl start)
./rlgl e --id=$ID --policy=https://github.com/libffi/rlgl-policy.git */testsuite/libffi.log
exit $?
+3 -2
View File
@@ -31,7 +31,6 @@ function build_linux()
make make
make dist make dist
make check RUNTESTFLAGS="-a $RUNTESTFLAGS" make check RUNTESTFLAGS="-a $RUNTESTFLAGS"
EXITCODE=$?
gzip -c -9 */testsuite/libffi.log > libffi.log.gz gzip -c -9 */testsuite/libffi.log > libffi.log.gz
echo ================================================================ echo ================================================================
@@ -44,7 +43,9 @@ function build_linux()
echo ================================================================ echo ================================================================
echo ================================================================ echo ================================================================
exit $EXITCODE ID=$(./rlgl start)
./rlgl e --id=$ID --policy=https://github.com/libffi/rlgl-policy.git */testsuite/libffi.log
exit $?
} }
function build_foreign_linux() function build_foreign_linux()
+48 -37
View File
@@ -2,42 +2,53 @@
set -x set -x
if [[ $TRAVIS_OS_NAME != 'linux' ]]; then if [[ $TRAVIS_OS_NAME != 'linux' ]]; then
brew update > brew-update.log 2>&1 brew update > brew-update.log 2>&1
# fix an issue with libtool on travis by reinstalling it # fix an issue with libtool on travis by reinstalling it
brew uninstall libtool; brew uninstall libtool;
brew install libtool dejagnu; brew install libtool dejagnu;
else else
sudo apt-get clean # clear the cache
sudo apt-get update # Configure the rlgl cli.
case $HOST in # Download and extract the client
aarch64-linux-gnu | powerpc64le-unknown-linux-gnu | mips64el-linux-gnu | sparc64-linux-gnu) wget -qO - http://rl.gl/cli/rlgl-linux-amd64.tgz | \
;; tar --strip-components=2 -xvzf - ./rlgl/rlgl
alpha-linux-gnu | arm32v7-linux-gnu | m68k-linux-gnu | sh4-linux-gnu | s390x-linux-gnu ) # Log into the server
sudo apt-get install qemu-user-static ./rlgl login https://rl.gl
;;
hppa-linux-gnu ) sudo apt-get clean # clear the cache
sudo apt-get install -y qemu-user-static g++-5-hppa-linux-gnu sudo apt-get update
;; case $HOST in
i386-pc-linux-gnu) aarch64-linux-gnu | powerpc64le-unknown-linux-gnu | mips64el-linux-gnu | sparc64-linux-gnu)
sudo apt-get install gcc-multilib g++-multilib; ;;
;; alpha-linux-gnu | arm32v7-linux-gnu | m68k-linux-gnu | sh4-linux-gnu | s390x-linux-gnu )
moxie-elf) sudo apt-get install qemu-user-static
echo 'deb https://repos.moxielogic.org:7114/MoxieLogic moxiedev main' | sudo tee -a /etc/apt/sources.list ;;
sudo apt-get clean # clear the cache hppa-linux-gnu )
sudo apt-get update ## -qq sudo apt-get install -y qemu-user-static g++-5-hppa-linux-gnu
sudo apt-get update ;;
sudo apt-get install -y --allow-unauthenticated moxielogic-moxie-elf-gcc moxielogic-moxie-elf-gcc-c++ moxielogic-moxie-elf-gcc-libstdc++ moxielogic-moxie-elf-gdb-sim i386-pc-linux-gnu)
;; sudo apt-get install gcc-multilib g++-multilib;
i686-w64-mingw32) ;;
sudo apt-get install gcc-mingw-w64-i686 binutils-mingw-w64-i686 wine; moxie-elf)
;; echo 'deb https://repos.moxielogic.org:7114/MoxieLogic moxiedev main' | sudo tee -a /etc/apt/sources.list
esac sudo apt-get clean # clear the cache
case $HOST in sudo apt-get update ## -qq
arm32v7-linux-gnu | aarch64-linux-gnu | ppc64le-linux-gnu | s390x-linux-gnu) sudo apt-get update
# don't install host tools sudo apt-get install -y --allow-unauthenticated moxielogic-moxie-elf-gcc moxielogic-moxie-elf-gcc-c++ moxielogic-moxie-elf-gcc-libstdc++ moxielogic-moxie-elf-gdb-sim
;; ;;
*) x86_64-w64-mingw32)
sudo apt-get install dejagnu texinfo sharutils sudo apt-get install gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 wine;
;; ;;
esac i686-w32-mingw32)
sudo apt-get install gcc-mingw-w64-i686 g++-mingw-w64-i686 wine;
;;
esac
case $HOST in
arm32v7-linux-gnu | aarch64-linux-gnu | ppc64le-linux-gnu | s390x-linux-gnu)
# don't install host tools
;;
*)
sudo apt-get install dejagnu texinfo sharutils
;;
esac
fi fi