mirror of
https://git.disroot.org/80486DX2-66/polonium.git
synced 2024-12-27 07:30:23 +05:30
test.sh: do not build the project
This commit is contained in:
parent
4377c89965
commit
5d98abd777
17
test.sh
17
test.sh
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user