Debian Codegraph @

src/cdogs/mathc/run_tests.sh

raw symbols SCIP
1 if [ -n $CC ]
2 then
3 if [ $CC=clang ]
4 then
5 clang test.c -include mathc.h -c mathc.c && clang -o test_clang test.o mathc.o -lm && chmod +x test_clang
6 ./test_clang
7 elif [ $CC=gcc ]
8 then
9 gcc -o test_gcc test.c mathc.c -I. -lm && chmod +x test_gcc
10 ./test_gcc
11 else
12 echo -e "unrecognized compiler"
13 exit
14 fi
15 else
16 echo -e "CC is not defined, compiler cannot be identified"
17 fi