Merge pull request #93 from davidgiven/dtrg-pc86-2

Rearrange the tests; don't run unsupported tests on emulators which don't support them.
This commit is contained in:
David Given 2018-06-08 21:40:25 +09:00 committed by GitHub
commit ae3074cd9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 17 additions and 10 deletions

View file

@ -4,4 +4,5 @@ plat_testsuite {
name = "tests", name = "tests",
plat = "linux68k", plat = "linux68k",
method = "plat/linux68k/emu+emu68k", method = "plat/linux68k/emu+emu68k",
skipsets = {"floats"}, -- FPU instructions not supported by emulator
} }

View file

@ -4,4 +4,5 @@ plat_testsuite {
name = "tests", name = "tests",
plat = "pc86", plat = "pc86",
method = "plat/pc86/emu+pc86emu", method = "plat/pc86/emu+pc86emu",
skipsets = {"floats"}, -- FPU instructions not supported by emulator
} }

View file

@ -4,20 +4,25 @@ definerule("plat_testsuite",
{ {
plat = { type="string" }, plat = { type="string" },
method = { type="string" }, method = { type="string" },
sets = { type="table", default={"core", "b", "bugs", "m2", "floats"}},
skipsets = { type="table", default={}},
}, },
function(e) function(e)
-- Remember this is executed from the caller's directory; local -- Remember this is executed from the caller's directory; local
-- target names will resolve there. -- target names will resolve there.
local testfiles = filenamesof( local testfiles = {}
-- added structcopy_e.c local skipsets = {}
"tests/plat/*.c", for _, set in ipairs(e.skipsets) do
"tests/plat/*.e", skipsets[set] = true
"tests/plat/*.p", end
"tests/plat/b/*.b", for _, set in ipairs(e.sets) do
"tests/plat/bugs/*.c", if not skipsets[set] then
"tests/plat/bugs/*.mod", local fs = filenamesof("tests/plat/"..set.."/*")
"tests/plat/m2/*.mod" for _, f in ipairs(fs) do
) testfiles[#testfiles+1] = f
end
end
end
acklibrary { acklibrary {
name = "lib", name = "lib",