add basic test script
This commit is contained in:
parent
7916f50847
commit
5fc6685efe
16
nodes/1_lib/scripts/test
Executable file
16
nodes/1_lib/scripts/test
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
#
|
||||||
|
# this just runs tests/check-eval.nix
|
||||||
|
#
|
||||||
|
result="$(
|
||||||
|
echo 'import ./nodes/1_lib/source/tests/check-eval.nix' | nix repl 2>&1 | grep -v 'Inappropriate ioctl for device'
|
||||||
|
)"
|
||||||
|
expected='Welcome to Nix 2.18.1. Type :? for help.
|
||||||
|
|
||||||
|
[36;1mnull[0m'
|
||||||
|
|
||||||
|
if [ "$(echo "$result")" = "$expected" ]
|
||||||
|
then
|
||||||
|
echo test passed
|
||||||
|
fi
|
Loading…
Reference in a new issue