1
0
mirror of https://git.disroot.org/80486DX2-66/polonium.git synced 2024-11-08 13:42:31 +05:30

test.sh: do not build the project

This commit is contained in:
Intel A80486DX2-66 2024-07-07 01:51:07 +03:00
parent 4377c89965
commit 5d98abd777
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

17
test.sh
View File

@ -4,8 +4,6 @@ mkdir_if_not_exists() {
[ -d "$1" ] || mkdir "$1"
}
make_log="$(pwd)/make.log"
exec_name='polonium_debug'
exec_file="$(pwd)/bin/$exec_name"
exec_log="$(pwd)/exec.log"
@ -42,21 +40,6 @@ iterate_on_test_files() {
set +o histexpand # Disable parsing "!" as the history expansion character
# If either binary or object files are present, clean up
[ -d ./bin -o -d ./obj ] && make clean > /dev/null 2>&1
printf "[*] Making\n"
make DEBUG=1 all > "$make_log" 2>&1
if [ "$?" -ne "0" ]; then
printf "[!] Makefile failed:\n"
cat "$make_log"
rm "$make_log"
exit 1
fi
rm "$make_log"
cd ./test_files || exit 1
printf "[*] Generating corrupted versions of test files\n"
mkdir_if_not_exists ./corrupted/