Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brodeynewman committed Jan 6, 2025
1 parent 07705fd commit 01c9fd9
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,23 @@ test_ci() {
cmake --build .

set_paths
test

build_tests

export SCUDA_SERVER=0.0.0.0

echo "running tests at: $libscuda_path"
echo -e "\n\033[1mRunning test(s)...\033[0m"

for test in "${tests[@]}"; do
func_name=$(eval "echo \${${test}[function]}")
pass_message=$(eval "echo \${${test}[pass]}")

if ! eval "$func_name \"$pass_message\""; then
echo -e "\033[31mTest failed. Exiting...\033[0m"
return 1
fi
done
}

server() {
Expand Down

0 comments on commit 01c9fd9

Please sign in to comment.