mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 22:11:51 +00:00
add '--test' to run.sh
Some checks are pending
x86-64 AppImage / build-appimage (ubuntu-22.04) (push) Waiting to run
Build / Build (push) Waiting to run
Macos Build / build-dmg (push) Waiting to run
Windows Build (CLang) / build-windows (clang, windows-latest) (push) Waiting to run
MSVC Build / build-windows (windows-2022) (push) Waiting to run
Some checks are pending
x86-64 AppImage / build-appimage (ubuntu-22.04) (push) Waiting to run
Build / Build (push) Waiting to run
Macos Build / build-dmg (push) Waiting to run
Windows Build (CLang) / build-windows (clang, windows-latest) (push) Waiting to run
MSVC Build / build-windows (windows-2022) (push) Waiting to run
This commit is contained in:
parent
1dd1af1a72
commit
8ce3b6dc23
1 changed files with 13 additions and 0 deletions
13
run.sh
13
run.sh
|
|
@ -31,6 +31,17 @@ function norun {
|
|||
}
|
||||
|
||||
|
||||
function test {
|
||||
echo "[RUN SCRIPT] Run tests"
|
||||
cd build
|
||||
rm -rf ./vctest-run
|
||||
mkdir ./vctest-run
|
||||
./vctest/vctest --exe ./VoxelEngine --res res --user ./vctest-run --tests ../dev/tests --memchecker valgrind
|
||||
cd ..
|
||||
run=
|
||||
}
|
||||
|
||||
|
||||
function help {
|
||||
echo "[RUN SCRIPT] Usage: ./run [ARGUMENT]..."
|
||||
echo "[RUN SCRIPT] Arguments:"
|
||||
|
|
@ -38,6 +49,7 @@ function help {
|
|||
echo "[RUN SCRIPT] -b, --build Build project"
|
||||
echo "[RUN SCRIPT] -r, --rebuild Rebuild project"
|
||||
echo "[RUN SCRIPT] -R, --norun Build without run"
|
||||
echo "[RUN SCRIPT] -t, --test Run tests (without run)"
|
||||
echo "[RUN SCRIPT] -h, --help Print this page"
|
||||
}
|
||||
|
||||
|
|
@ -48,6 +60,7 @@ while [ -n "$1" ]; do
|
|||
-b | --build) build ;;
|
||||
-r | --rebuild) rebuild ;;
|
||||
-R | --norun) norun ;;
|
||||
-t | --test) test ;;
|
||||
-h | --help) help
|
||||
norun
|
||||
break ;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue