From d7bf620b96c604e1888378080cbca50cc6324d5c Mon Sep 17 00:00:00 2001 From: Danny Jonker Date: Thu, 9 Mar 2023 20:18:29 +0100 Subject: [PATCH] tester --- test.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/test.sh b/test.sh index 1f79500..fb54fac 100755 --- a/test.sh +++ b/test.sh @@ -1,12 +1,12 @@ # **************************************************************************** # # # # .--. _ # -# test.sh :+: :+: :+: # +# test.sh |o_o || | # # |:_/ || |_ _ ___ __ # # By: houtworm // \ \ __| | | \ \/ / # # (| | )|_| |_| |> < # # Created: 2023/02/20 12:46:17 by houtworm /'\_ _/`\__|\__,_/_/\_\ # -# Updated: 2023/03/07 07:19:30 by houtworm ### ########.fr # +# Updated: 2023/03/09 18:58:35 by djonker \___)=(___/ # # # # **************************************************************************** # @@ -35,7 +35,7 @@ checkfile() searchobj() { - FILES=$(find ./ -name '*.o' | wc -l) + FILES=$(find . -name '*.o' | wc -l) if [ $1 -eq 0 ] then if [ $FILES -ne 0 ] @@ -448,6 +448,16 @@ then fi sleep $SLEEP +# Test 8 +printf "\e[1;36mTest 8 Running push_swap with duplicate number\e[0;00m\n" +pushswap 1 "-" +checkoutput tmp/error +if [ $VALGRIND -eq 1 ] +then + pushswapvalgrind "1 2 3 4 5 6 7 1" +fi +sleep $SLEEP + # Test 8 printf "\e[1;36mTest 8 Running push_swap with duplicate number\e[0;00m\n" pushswap 1 "1 2 3 4 5 6 7 1"