add -lm in run_testcase.sh