mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
feat(bash): test command in dashboard + fix tests (#23030)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
17
apps/test-framework/run-core-tests.sh
Normal file
17
apps/test-framework/run-core-tests.sh
Normal file
@@ -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" "$@"
|
||||
Reference in New Issue
Block a user