add test bash script
This commit is contained in:
parent
6f469cdad7
commit
924b20728f
1 changed files with 12 additions and 0 deletions
12
scripts/test
Executable file
12
scripts/test
Executable file
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
INPUT=\
|
||||||
|
"let
|
||||||
|
nt = builtins.getFlake (builtins.toString ./.);
|
||||||
|
test = import examples/maybe.nix {inherit nt;};
|
||||||
|
in
|
||||||
|
builtins.attrNames test.None"
|
||||||
|
|
||||||
|
echo "$INPUT"
|
||||||
|
|
||||||
|
set -x
|
||||||
|
nix eval --show-trace --impure --expr "$INPUT"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue