easy-dhall-nix/test.bash
justinwoo 87406a7640 init
2018-12-08 14:37:12 +02:00

23 lines
335 B
Bash
Executable File

#!/usr/bin/env bash
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;
test_exe dhall-to-yaml;
test_exe dhall-to-bash;
test_exe dhall-to-text;
exit $ERRORS;