chkbit/scripts/run_tests
Christian Zangl 24b3a88576
fix status
2024-08-18 16:05:33 +02:00

22 lines
414 B
Bash
Executable File

#!/bin/bash
set -e
export TZ='UTC'
script_dir=$(dirname "$(realpath "$0")")
base_dir=$(dirname "$script_dir")
#dir=$(realpath "$script_dir/../testdata/run_test")
root="/tmp/chkbit/root"
if [[ ! -d $root ]]; then
echo "must run run_test_prep first"
exit 1
fi
# setup
$script_dir/build
"$base_dir/chkbit" -u /tmp/chkbit/root
# todo: validate (300 files, 1 symlink dir followed, 1 symlink file ignored)