leaks and leaks with errors should be ok

This commit is contained in:
hugogogo
2021-09-27 11:40:43 +02:00
parent 7f8d114b99
commit db60d412e8
6 changed files with 21 additions and 27 deletions

View File

@@ -12,15 +12,19 @@ WHITE='\033[1;37m'
NC='\033[0m'
# usage of arguments
if [ $# -eq 2 ]
if [ $# -eq 1 ]
then
PRGM=$1 # path to program
SIZE=$2 # size of the list
SIZE=$1 # size of the list
elif [ $# -eq 2 ]
then
FLAG=$1 # flag for leaks and errors // not in use so far
SIZE=$2
else
echo "usage : ./tester.sh path/to/push_swap size_of_list"
exit 0
fi
PRGM=push_swap # path to program
# range of random numbers
RANGE=$(($SIZE * 2))