updated build system
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
2024-08-04 09:55:01 -05:00
parent 6d152181d3
commit 15cc7b0b87
6 changed files with 208 additions and 27 deletions

12
scripts/run_tests.cmd Normal file
View File

@ -0,0 +1,12 @@
@echo off
setlocal
set ARG1=%~1
set ARG2=%~2
set ARG3=%~3
pushd "%~dp0%"
call mingw64 -no-start ./run_tests.sh "%ARG1%" "%ARG2%" "%ARG3%" 1 0
popd

15
scripts/run_tests.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
PROJECT_SCRIPTS_DIR=$(realpath "$0")
PROJECT_SCRIPTS_DIR=$(dirname "${PROJECT_SCRIPTS_DIR}")
. "${PROJECT_SCRIPTS_DIR}/env.sh" "$1" "$2" "$3" "$4" "$5" 0
pushd "${PROJECT_DIST_DIR}"
if [ -e "./${PROJECT_NAME}_test${PROJECT_APP_BINARY_EXT}" ]; then
for APP in ${PROJECT_APP_LIST[@]}; do
if [[ "$APP" == *_test${PROJECT_APP_BINARY_EXT} ]]; then
"./${PROJECT_NAME}_test${PROJECT_APP_BINARY_EXT}" || exit 1
fi
done
fi
popd