cosmopolitan: add checkPhase
This commit is contained in:
parent
961472b74a
commit
6443507c12
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue