diff --git a/tests/default.nix b/tests/default.nix index ceb5e6500..a9593e384 100644 --- a/tests/default.nix +++ b/tests/default.nix @@ -90,11 +90,12 @@ let rvv_bench = casesSelf.callPackage ./rvv_bench { }; pytorch = casesSelf.callPackage ./pytorch { }; disp = casesSelf.callPackage ./disp { }; + emurt = casesSelf.callPackage ./emurt/tests { }; })); # remove non-case attributes in scope scopeStripped = { - inherit (scope) mlir intrinsic asm perf codegen rvv_bench pytorch disp; + inherit (scope) mlir intrinsic asm perf codegen rvv_bench pytorch disp emurt; }; # This derivation is for internal CI use only. diff --git a/tests/emurt/tests/default.nix b/tests/emurt/tests/default.nix new file mode 100644 index 000000000..1f170e9f7 --- /dev/null +++ b/tests/emurt/tests/default.nix @@ -0,0 +1,31 @@ +{ linkerScript, t1main, makeBuilder, writeText }: +let + builder = makeBuilder { casePrefix = "emurt"; }; +in +{ + simple = builder { + caseName = "simple"; + + dontUnpack = true; + csrc = writeText "simple-emurt-test.c" '' + #include + + void test() { + place_counter(1); + print_s("helloworld"); + place_counter(2); + } + ''; + + buildPhase = '' + runHook preBuild + + $CC -T${linkerScript} \ + $csrc \ + ${t1main} \ + -o $pname.elf + + runHook postBuild + ''; + }; +}