easy-dhall-nix/test.bash

24 lines
362 B
Bash
Raw Normal View History

2019-08-18 13:28:48 +02:00
#!/usr/bin/env nix-shell
#!nix-shell -i bash
2018-12-08 12:34:40 +01:00
ERRORS=0;
function test_exe () {
EXE=$1;
LOCATION=$(command -v "$EXE");
if [ -x "$LOCATION" ]; then
echo "found $EXE";
else
echo "didnt find $EXE";
ERRORS=1;
fi
}
test_exe dhall;
test_exe dhall-to-json;
2018-12-08 12:34:40 +01:00
test_exe dhall-to-bash;
2019-09-25 21:08:38 +02:00
test_exe dhall-to-nix;
test_exe dhall-to-yaml-ng;
2018-12-08 12:34:40 +01:00
exit $ERRORS;