leaks and leaks with errors should be ok
This commit is contained in:
10
tester.sh
10
tester.sh
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user