42-archive/malloc/do_test.sh
Jack Halford 8e70deabc3 all good
2017-10-22 17:37:56 +02:00

11 lines
230 B
Bash
Executable file

if [ -z $1 ]
then
echo "Need an arg";
exit;
fi
if [ -z $2 ]
then
make && gcc -w -L. $1 -o .bin -lft_malloc && /usr/bin/time -l ./.bin
else
make && gcc -w -L. $1 -o .bin -lft_malloc && ./tests/run.sh /usr/bin/time -l ./.bin
fi