summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-08-31 17:50:22 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2022-08-31 17:50:22 +0200
commitf85805f9016ccc768e524fcc3fcc3d247a9064ac (patch)
tree9dbb80a43ec4e08cc3042b8284784c4b236135df /tests
parentc63ae59a81c8ace0c243bfa2ab265eff61ea6cfe (diff)
Use only commands from coreutils
Diffstat (limited to 'tests')
-rwxr-xr-xtests/run.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/run.sh b/tests/run.sh
index ba51e28..b2e617d 100755
--- a/tests/run.sh
+++ b/tests/run.sh
@@ -7,7 +7,7 @@ BOLD='\033[1m'
NC='\033[0m' # No Color
wai=$(dirname $(readlink -f "$0")) # Current script directory
-tests=$(find ${wai}/ -maxdepth 1 -mindepth 1 -type d) # Find tests
+tests=$(ls -d ./*/) # Find tests
out=$(mktemp)
test_timeout=20
abort=1
@@ -29,7 +29,7 @@ do
fi
# Ensure test output
- if $(diff "$out" ./out &>/dev/null)
+ if [ "$(base64 $out)" == "$(base64 ./out)" ]
then
echo -e "${GREEN}${BOLD}passed${NC}"
else