Initial Commit
This commit is contained in:
18
libft/munit.sh
Executable file
18
libft/munit.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user