Merge pull request #278 from davidgiven/dtrg-qemu

Remove the qemu tests.
This commit is contained in:
David Given 2023-02-14 00:09:59 +01:00 committed by GitHub
commit 6aa3fef91f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 46 deletions

5
README
View file

@ -63,11 +63,6 @@ Requirements:
- (optionally) ninja; if you've got this, this will be autodetected and give - (optionally) ninja; if you've got this, this will be autodetected and give
you faster builds. you faster builds.
- (optionally) the qemu suite: if you have this installed, the build system
will detect it automatically and run the test suites for the supported
architectures. Get both the qemu-system-* platform emulators and the qemu-*
userland emulators (only works on Linux).
- about 115MB free in /tmp (or some other temporary directory). - about 115MB free in /tmp (or some other temporary directory).
- about 15MB in the target directory. - about 15MB in the target directory.

View file

@ -23,9 +23,9 @@ vars.plats = {
vars.plats_with_tests = { vars.plats_with_tests = {
"cpm", "cpm",
"linux68k", "linux68k",
"linux386", --"linux386",
"linuxppc", "linuxppc",
"linuxmips", --"linuxmips",
"pc86", "pc86",
} }

View file

@ -1,7 +0,0 @@
include("tests/plat/build.lua")
plat_testsuite {
name = "tests",
plat = "linux386",
method = "qemu-i386"
}

View file

@ -1,10 +0,0 @@
include("tests/plat/build.lua")
plat_testsuite {
name = "tests",
plat = "linuxmips",
method = "qemu-mipsel",
skipsets = {
"long-long",
},
}

View file

@ -12,29 +12,9 @@ errcho() {
get_test_output() { get_test_output() {
case $method in case $method in
qemu-system-*)
if ! command -v $method >/dev/null 2>&1 ; then
errcho "Warning: $method not installed, skipping test"
echo "@@SKIPPED"
exit 0
fi
case $method in
qemu-system-i386) img="-drive file=$img,if=floppy,format=raw" ;;
qemu-system-ppc) img="-kernel $img" ;;
esac
$timeoutprog -t $timeout -- $method -nographic $img 2>&1
;;
qemu-*) qemu-*)
if ! command -v $method >/dev/null 2>&1 ; then errcho "qemu tests no longer supported (method $method)"
errcho "Warning: $method not installed, skipping test" exit 1
echo "@@SKIPPED"
exit 0
fi
$method $img 2>&1
;; ;;
*) *)