cosmopolitan: remove redundant test
It seems like both the checkPhase and cosmoc's installCheckPhase run plenty of executables, I don't see what this test could catch.
This commit is contained in:
parent
0d5810ede0
commit
f92cfbce3a
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchFromGitHub, runCommand, unzip, cosmopolitan,bintools-unwrapped }:
|
||||
{ lib, stdenv, fetchFromGitHub, unzip, cosmopolitan, bintools-unwrapped }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cosmopolitan";
|
||||
|
@ -40,19 +40,6 @@ stdenv.mkDerivation rec {
|
|||
checkTarget = "o//test";
|
||||
doCheck = true;
|
||||
|
||||
passthru.tests = lib.optionalAttrs (stdenv.buildPlatform == stdenv.hostPlatform) {
|
||||
hello = runCommand "hello-world" { } ''
|
||||
printf 'main() { printf("hello world\\n"); }\n' >hello.c
|
||||
${stdenv.cc}/bin/gcc -g -O -static -nostdlib -nostdinc -fno-pie -no-pie -mno-red-zone -o hello.com.dbg hello.c \
|
||||
-fuse-ld=bfd -Wl,-T,${cosmopolitan}/lib/ape.lds \
|
||||
-include ${cosmopolitan}/include/cosmopolitan.h \
|
||||
${cosmopolitan}/lib/{crt.o,ape.o,cosmopolitan.a}
|
||||
${stdenv.cc.bintools.bintools_bin}/bin/objcopy -S -O binary hello.com.dbg hello.com
|
||||
./hello.com
|
||||
printf "test successful" > $out
|
||||
'';
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://justine.lol/cosmopolitan/";
|
||||
description = "Your build-once run-anywhere c library";
|
||||
|
|
Loading…
Reference in a new issue