create nix test infrastructure
This commit is contained in:
parent
192561577e
commit
0a9e1c089b
3 changed files with 84 additions and 11 deletions
20
nix/test.nix
Normal file
20
nix/test.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
culr,
|
||||
version,
|
||||
...
|
||||
}:
|
||||
pkgs.stdenvNoCC.mkDerivation {
|
||||
pname = "culr-tests";
|
||||
version = "${version}";
|
||||
|
||||
nativebuildInputs = [culr];
|
||||
|
||||
doCheck = true;
|
||||
checkPhase = ''
|
||||
CULRS="(255,0,0);(0,0,255)"
|
||||
CULR_ORDER=1,0
|
||||
echo "one two three four" | ${lib.getExe culr}
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue