bloat-buster/run_tests.sh
David Gonzalez Martin a43dcda407 Get static build back
2024-07-24 10:44:59 +02:00

27 lines
563 B
Bash
Executable File

#!/bin/bash
set -e
source ./compile.sh
build_dir="build"
exe_name="nest"
exe_path=$build_dir/$exe_name
debug_flags="-g"
no_optimization_flags=""
optimization_flags="-O3 -march=native"
test_names="first"
compile $build_dir $exe_name $debug_flags $no_optimization_flags;
printf "\n======================\n"
printf "TESTS"
printf "\n======================\n\n"
for test_name in "${test_names[@]}"
do
echo "$test_name..."
build/nest "tests/$test_name.nat"
echo "$test_name [COMPILATION] [OK]"
nest/$test_name
echo "$test_name [RUN] [OK]"
done