Convert the inn test to work with the test library and not import InOut; it now
runs on qemuppc again. Reenable qemuppc tests.
This commit is contained in:
parent
65fdb03231
commit
62edb90641
|
@ -18,7 +18,7 @@ vars.plats = {
|
||||||
vars.plats_with_tests = {
|
vars.plats_with_tests = {
|
||||||
"linux386",
|
"linux386",
|
||||||
"linuxppc",
|
"linuxppc",
|
||||||
-- "qemuppc", FIXME: disable until we figure out why qemu won't run binaries bigger than 4kB
|
"qemuppc",
|
||||||
"pc86",
|
"pc86",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
MODULE test;
|
MODULE test;
|
||||||
FROM InOut IMPORT WriteLn, WriteString;
|
FROM Test IMPORT fail, finished;
|
||||||
|
|
||||||
TYPE charset = SET OF CHAR;
|
TYPE charset = SET OF CHAR;
|
||||||
|
|
||||||
|
@ -10,17 +10,13 @@ END Space;
|
||||||
|
|
||||||
BEGIN
|
BEGIN
|
||||||
IF Space('a') THEN
|
IF Space('a') THEN
|
||||||
WriteString("@@FAIL 1");
|
fail(1);
|
||||||
WriteLn;
|
|
||||||
END;
|
END;
|
||||||
IF NOT Space(' ') THEN
|
IF NOT Space(' ') THEN
|
||||||
WriteString("@@FAIL 2");
|
fail(2);
|
||||||
WriteLn;
|
|
||||||
END;
|
END;
|
||||||
IF NOT Space(12C) THEN
|
IF NOT Space(12C) THEN
|
||||||
WriteString("@@FAIL 3");
|
fail(3);
|
||||||
WriteLn;
|
|
||||||
END;
|
END;
|
||||||
WriteString("@@FINISHED");
|
finished;
|
||||||
WriteLn;
|
|
||||||
END test.
|
END test.
|
|
@ -18,7 +18,10 @@ definerule("plat_testsuite",
|
||||||
acklibrary {
|
acklibrary {
|
||||||
name = "lib",
|
name = "lib",
|
||||||
srcs = { "tests/plat/lib/test.c" },
|
srcs = { "tests/plat/lib/test.c" },
|
||||||
hdrs = { "tests/plat/lib/test.h" },
|
hdrs = {
|
||||||
|
"tests/plat/lib/test.h",
|
||||||
|
"tests/plat/lib/Test.def"
|
||||||
|
},
|
||||||
vars = { plat = e.plat },
|
vars = { plat = e.plat },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
6
tests/plat/lib/Test.def
Normal file
6
tests/plat/lib/Test.def
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
(*$Foreign*)
|
||||||
|
DEFINITION MODULE Test;
|
||||||
|
PROCEDURE finished();
|
||||||
|
PROCEDURE writehex(code: LONGINT);
|
||||||
|
PROCEDURE fail(code: LONGINT);
|
||||||
|
END Test.
|
|
@ -1,7 +0,0 @@
|
||||||
include("plat/build.lua")
|
|
||||||
|
|
||||||
acklibrary {
|
|
||||||
name = "lib",
|
|
||||||
srcs = { "./test.c" },
|
|
||||||
hdrs = { "./test.h" },
|
|
||||||
}
|
|
Loading…
Reference in a new issue