summaryrefslogtreecommitdiff
path: root/apps/test-framework/run-core-tests.sh
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2025-09-27 13:36:14 +0200
committerGitHub <noreply@github.com>2025-09-27 13:36:14 +0200
commitb950c610d4e41ee6bbfc9476020546548c20100d (patch)
tree172f74f8e19655119fd4c5b0d3979380423fb79c /apps/test-framework/run-core-tests.sh
parent815d99250aba4fbedf39eecd1c5c32ce1493a0e2 (diff)
feat(bash): test command in dashboard + fix tests (#23030)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Diffstat (limited to 'apps/test-framework/run-core-tests.sh')
-rw-r--r--apps/test-framework/run-core-tests.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/test-framework/run-core-tests.sh b/apps/test-framework/run-core-tests.sh
new file mode 100644
index 0000000000..0f72fd572f
--- /dev/null
+++ b/apps/test-framework/run-core-tests.sh
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+
+ # shellcheck source-path=SCRIPTDIR
+CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+
+# shellcheck source=../bash_shared/includes.sh
+source "$CURRENT_PATH/../bash_shared/includes.sh"
+
+TEST_PATH="$BUILDPATH/src/test/unit_tests"
+
+if [[ ! -f "$TEST_PATH" ]]; then
+ echo "Unit test binary not found at $TEST_PATH"
+ echo "Please ensure the project is built with unit tests enabled."
+ exit 1
+fi
+
+exec "$TEST_PATH" "$@" \ No newline at end of file