Tests can now specify (via a hacky filename suffix) which runtime they want.
authorDavid Given <dg@cowlark.com>
Wed, 16 Nov 2016 20:08:03 +0000 (21:08 +0100)
committerDavid Given <dg@cowlark.com>
Wed, 16 Nov 2016 20:08:03 +0000 (21:08 +0100)
plat/qemuppc/tests/build.lua
plat/qemuppc/tests/intadd_e.c [moved from plat/qemuppc/tests/intadd.c with 100% similarity]
plat/qemuppc/tests/intcmp_e.c [moved from plat/qemuppc/tests/intcmp.c with 100% similarity]
plat/qemuppc/tests/intdiv_e.c [moved from plat/qemuppc/tests/div.c with 100% similarity]
plat/qemuppc/tests/intshift_e.c [moved from plat/qemuppc/tests/intshift.c with 100% similarity]
plat/qemuppc/tests/intsub_e.c [moved from plat/qemuppc/tests/intsub.c with 100% similarity]
plat/qemuppc/tests/lib/test.c

index ec4cbf6..024961f 100644 (file)
@@ -10,6 +10,10 @@ else
 
        for _, f in ipairs(testcases) do
                local fs = replace(basename(f), "%..$", "")
+               local _, _, lang = fs:find("_(.)$")
+               if not lang then
+                       lang = "e"
+               end
 
                local bin = ackprogram {
                        name = fs.."_bin",
@@ -17,7 +21,8 @@ else
                        deps = { "plat/qemuppc/tests/lib+lib" },
                        vars = {
                                plat = "qemuppc",
-                               lang = "e",
+                               lang = lang,
+                               ackcflags = "-O0"
                        }
                }
 
index 02d9877..33d72f3 100644 (file)
@@ -25,7 +25,7 @@ void writehex(uint32_t code)
 
 void fail(uint32_t code)
 {
-    write(1, "@@FAIL ", 7);
+    write(1, "@@FAIL on line 0x", 7);
     writehex(code);
     write(1, "\n", 1);
 }