From 04ccf3f1083196674688abf371804ea155dd69da Mon Sep 17 00:00:00 2001 From: Egutierrez Date: Tue, 28 Apr 2026 23:42:38 +0200 Subject: [PATCH] chore(cpp): script run_tests.sh para build+ctest one-shot --- cpp/scripts/run_tests.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 cpp/scripts/run_tests.sh diff --git a/cpp/scripts/run_tests.sh b/cpp/scripts/run_tests.sh new file mode 100755 index 00000000..b2f269d4 --- /dev/null +++ b/cpp/scripts/run_tests.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +# Build and run all C++ unit tests via Catch2 + ctest. +set -euo pipefail +ROOT="$(cd "$(dirname "$0")/.." && pwd)" +cmake -S "$ROOT" -B "$ROOT/build" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON +cmake --build "$ROOT/build" -j"$(nproc)" +ctest --test-dir "$ROOT/build" --output-on-failure