minimal/travis/test_qemu.sh
Ivan Davidov c8e0ac2a21 Travis CI updates.
Travis CI configuration improvements.

Added separate test script for Travis CI.

Travis CI updates.

Travis CI updates.

Travis CI related fixes.

Travis CI will use Docker for the tests.

Travis CI updates.

Travis CI updates.

Travis CI updates.

Travis CI updates.

Travis CI updates.

Travis CI updates.

Travis CI updates.

Travis CI updates.

Travis CI updates.

Travis CI updates.

Travis CI updates.

Temporarily enabled debug logging. This has to be reverted later.

Travis CI updates.

Travis CI updates.

Travis CI updates. Docker in privileged mode.

Travis CI updates.

Travis CI updates.

Travis CI updates. MLL Docker test should run fine now.

Added QEMU related tests for Travis CI.

Last minute fix.

Major reorganization. Docker test fails for some reason.

Last minute fix.

Last minute fix.

Removed the 'sudo' hack.

This should fix the Docker test.

Enabled all tests.

Docker fix.

Experimenting...

Experimenting...

Experimenting...

Experiments...

I give up. Way too many hacks. Travis CI may be good for other projects but it doesn't bring much value for MLL.
2018-06-23 14:14:44 +03:00

48 lines
941 B
Bash
Executable File

#!/bin/sh
# This script is supposed to be executed by Travis CI.
set -e
cd ../src
apt-get -qq -y install qemu
echo "`date` | *** MLL QEMU test - BEGIN ***"
qemu-system-x86_64 -m 1024M -cdrom minimal_linux_live.iso -boot d -localtime -nographic &
sleep 5
MLL=`ps -ef | grep -i [q]emu`
if [ "$MLL" = "" ] ; then
echo "`date` | !!! FAILURE !!! Minimal Linux Live is not running in QEMU."
exit 1
else
echo "`date` | Minimal Linux Live is running in QEMU. Waiting 120 seconds for automatic shutdown."
fi
sleep 120
MLL=`ps -ef | grep -i [q]emu`
if [ "$MLL" = "" ] ; then
echo "`date` | Minimal Linux Live is not running in QEMU."
else
echo "`date` | !!! FAILURE !!! Minimal Linux Live is still running in QEMU."
exit 1
fi
echo "`date` | *** MLL QEMU test - END ***"
cat << CEOF
#######################
# #
# QEMU test passed. #
# #
#######################
CEOF
set +e