Files
42test/libft/munit.sh

19 lines
401 B
Bash
Raw Permalink Normal View History

2021-10-22 10:26:25 +02:00
#!/bin/sh
program=$(basename $0 .sh)".out"
set -e
make test
echo
#make fclean
make
echo
echo $(basename ${PWD}):
if [ ${DEBUG-0} -gt 0 ]; then
gcc -Wall -Wextra -Werror -g -fsanitize=address -O1 munit/munit.c munit.c -I munit -L. -lft -o ${program}
else
gcc -Wall -Wextra -Werror munit/munit.c munit.c -I munit -L. -lft -o ${program}
fi
./${program} "$@"
#make fclean
rm -f ${program}
rm -fr *.dSYM