cosmopolitan: add checkPhase

This commit is contained in:
Louis Bettens 2022-03-29 10:49:11 +02:00
parent 961472b74a
commit 6443507c12

View file

@ -49,6 +49,9 @@ stdenv.mkDerivation rec {
runHook postInstall runHook postInstall
''; '';
checkTarget = "o//test";
doCheck = true;
passthru.tests = lib.optionalAttrs (stdenv.buildPlatform == stdenv.hostPlatform) { passthru.tests = lib.optionalAttrs (stdenv.buildPlatform == stdenv.hostPlatform) {
hello = runCommand "hello-world" { } '' hello = runCommand "hello-world" { } ''
printf 'main() { printf("hello world\\n"); }\n' >hello.c printf 'main() { printf("hello world\\n"); }\n' >hello.c