create nix test infrastructure

This commit is contained in:
atagen 2024-12-03 12:25:08 +11:00
parent 192561577e
commit 0a9e1c089b
3 changed files with 84 additions and 11 deletions

20
nix/test.nix Normal file
View 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}
'';
}