forked from shish/rosettaboy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[utils/nix] actually check that the unit tests passed
- Loading branch information
Showing
1 changed file
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
, makeWrapper | ||
, python3 | ||
, wget | ||
, gnugrep | ||
, cacert | ||
, parallel | ||
, elfutils | ||
|
@@ -24,6 +25,12 @@ stdenvNoCC.mkDerivation { | |
| ${parallel}/bin/parallel --will-cite --line-buffer --keep-order \ | ||
"${lib.getExe pkg} --turbo --silent --headless --frames 200" \ | ||
| tee -a $out | ||
${lib.getExe gnugrep} -i "unit test passed" $out >/dev/null || { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jbboehr
|
||
echo "tests didn't seem to pass?" | ||
exit 4 | ||
} | ||
! ${lib.getExe gnugrep} -i "unit test failed" $out >/dev/null | ||
''; | ||
devTools = [ wget cacert parallel ] | ||
++ lib.optional (!stdenvNoCC.isDarwin) elfutils; | ||
|
Unless there's some kind of platform difference between linux and darwin, this won't get executed because the above command will fail. For example:
produces this output for me: