diff --git a/nodes/1_lib/scripts/test b/nodes/1_lib/scripts/test new file mode 100755 index 0000000..9124de2 --- /dev/null +++ b/nodes/1_lib/scripts/test @@ -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. + +null' + +if [ "$(echo "$result")" = "$expected" ] +then + echo test passed +fi \ No newline at end of file