core/nodes/1_lib/scripts/test

19 lines
397 B
Plaintext
Raw Normal View History

2024-05-26 14:26:37 +00:00
#!/usr/bin/env bash
#
# this just runs tests/check-eval.nix
#
result="$(
2024-05-26 14:31:46 +00:00
echo 'import ./nodes/1_lib/source/tests/check-eval.nix' | nix repl --show-trace 2>&1 | grep -v 'Inappropriate ioctl for device'
2024-05-26 14:26:37 +00:00
)"
expected='Welcome to Nix 2.18.1. Type :? for help.
null'
if [ "$(echo "$result")" = "$expected" ]
then
echo test passed
2024-05-26 14:31:46 +00:00
else
echo "test failed"
echo "$result"
2024-05-26 14:26:37 +00:00
fi