runs on qemuppc again. Reenable qemuppc tests.
vars.plats_with_tests = {
"linux386",
"linuxppc",
- -- "qemuppc", FIXME: disable until we figure out why qemu won't run binaries bigger than 4kB
+ "qemuppc",
"pc86",
}
MODULE test;
-FROM InOut IMPORT WriteLn, WriteString;
+FROM Test IMPORT fail, finished;
TYPE charset = SET OF CHAR;
BEGIN
IF Space('a') THEN
- WriteString("@@FAIL 1");
- WriteLn;
+ fail(1);
END;
IF NOT Space(' ') THEN
- WriteString("@@FAIL 2");
- WriteLn;
+ fail(2);
END;
IF NOT Space(12C) THEN
- WriteString("@@FAIL 3");
- WriteLn;
+ fail(3);
END;
- WriteString("@@FINISHED");
- WriteLn;
+ finished;
END test.
\ No newline at end of file
acklibrary {
name = "lib",
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 },
}
--- /dev/null
+(*$Foreign*)
+DEFINITION MODULE Test;
+ PROCEDURE finished();
+ PROCEDURE writehex(code: LONGINT);
+ PROCEDURE fail(code: LONGINT);
+END Test.
+++ /dev/null
-include("plat/build.lua")
-
-acklibrary {
- name = "lib",
- srcs = { "./test.c" },
- hdrs = { "./test.h" },
-}