d01 ex04 correction erreurs sur tests

This commit is contained in:
Hugo LAMY
2022-03-16 09:56:07 +01:00
parent 4806a2bd36
commit 1bae971027
52 changed files with 5 additions and 300 deletions

View File

@@ -1,10 +1,11 @@
#!/bin/bash
cd $(dirname $0)
source ./colors.sh
mkdir -p test_log
mkdir -p files_log
make -C ../ &> /dev/null
EXECUTABLE="sed"
FILES_LOG="files_log"
LEAKS=""
if [ $1 == "leaks" ] || [ $1 == "valgrind" ]
then
@@ -27,7 +28,9 @@ fi
fi
if [ -f $TESTNAME ];then
mv $TESTNAME $TESTNAME.replace ./test_log;fi
mv $TESTNAME ./$FILES_LOG;fi
if [ -f $TESTNAME.replace ];then
mv $TESTNAME.replace ./$FILES_LOG;fi
}
# TEST 1 ########################################