forked from auxolotl/core
19 lines
397 B
Bash
Executable file
19 lines
397 B
Bash
Executable file
#!/usr/bin/env bash
|
||
|
||
#
|
||
# this just runs tests/check-eval.nix
|
||
#
|
||
result="$(
|
||
echo 'import ./nodes/1_lib/source/tests/check-eval.nix' | nix repl --show-trace 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
|
||
else
|
||
echo "test failed"
|
||
echo "$result"
|
||
fi |