easy-dhall-nix/test.bash

26 lines
410 B
Bash
Executable File

#!/usr/bin/env nix-shell
#!nix-shell -i 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-bash;
test_exe dhall-to-nix;
test_exe dhall-to-yaml-ng;
test_exe dhall-docs;
test_exe dhall-lsp-server;
exit $ERRORS;