nrc_eval first steps

This commit is contained in:
Felix Brendel
2020-01-08 11:03:49 +01:00
parent 14392a7212
commit f767736064
8 changed files with 591 additions and 71 deletions
+36 -29
View File
@@ -2,43 +2,50 @@ TIMEFORMAT=%3lU
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
pushd $SCRIPTPATH > /dev/null
echo ""
echo "----------------------"
echo " compiling libslime "
echo "----------------------"
time clang++ --std=c++17 \
src/libslime.cpp -c -o libslime.o \
-I3rd/ || exit 1
# echo ""
# echo "----------------------"
# echo " compiling libslime "
# echo "----------------------"
# time clang++ --std=c++17 \
# src/libslime.cpp -c -o libslime.o \
# -I3rd/ || exit 1
echo ""
echo "----------------------"
echo " compiling fullslime "
echo "----------------------"
# time g++ -fpermissive src/main.cpp -g -o ./bin/slime --std=c++17 || exit 1
echo "------------------------------"
echo " compiling fullslime (debug) "
echo "------------------------------"
time clang++ -D_DEBUG -D_DONT_BREAK_ON_ERRORS \
src/main.cpp -g -o ./bin/slime --std=c++17 \
src/main.cpp -gfull -gdwarf -o ./bin/slime_d --std=c++17 \
-I3rd/ || exit 1
# time clang++ -O3 -D_DONT_BREAK_ON_ERRORS \
# src/main.cpp -g -o ./bin/slime --std=c++17 \
# -I3rd/ || exit 1
pushd ./bin > /dev/null
# echo ""
# echo "--------------------------------"
# echo " compiling fullslime (release) "
# echo "--------------------------------"
# time clang++ -D_DONT_BREAK_ON_ERRORS -O3 \
# src/main.cpp -g -o ./bin/slime --std=c++17 \
# -I3rd/ || exit 1
echo ""
echo "----------------------"
echo " generating docs "
echo "----------------------"
time valgrind -q ./slime dd || exit 1
# pushd ./bin > /dev/null
echo ""
echo "----------------------"
echo " running tests "
echo "----------------------"
# echo ""
# echo "----------------------"
# echo " generating docs "
# echo "----------------------"
# time valgrind -q ./slime_d --generate-docs || exit 1
time valgrind -q --track-origins=yes --leak-check=full --show-leak-kinds=all ./slime --run-tests
# echo ""
# echo "----------------------"
# echo " running tests "
# echo "----------------------"
# time valgrind -q --track-origins=yes --leak-check=full --show-leak-kinds=all ./slime_d --run-tests || exit 1
# echo ""
# echo "------------------------"
# echo " running benches "
# echo "------------------------"
# hyperfine -s color --warmup 5 "./slime --run-tests > /dev/null"
popd > /dev/null
popd > /dev/null
# popd > /dev/null
unset TIMEFORMAT