1 { runCommand, gcc, sparse, writeText }:
3 src = writeText "CODE.c" ''
8 int main(int argc, char *argv[]) {
13 runCommand "${sparse.pname}-tests" { buildInputs = [ gcc sparse ]; meta.timeout = 3; }
16 ${sparse}/bin/cgcc ${src} > output 2>&1 || ret=$?
17 if [[ -z $(<output) ]]; then
20 echo "Test build returned $ret"