core/nodes/1_lib/scripts/test
2024-05-26 10:31:46 -04:00

19 lines
397 B
Bash
Executable file
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/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.
null'
if [ "$(echo "$result")" = "$expected" ]
then
echo test passed
else
echo "test failed"
echo "$result"
fi