Added test case and setting Test configuration
This commit is contained in:
1 parent
f815271486
commit
a86f9b5bac
48 files changed
+423
-168
No files matched your search
+27
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
# Compile et lance migration_tests dans l'image de build.
|
||||
#
|
||||
# ./docker_tests.sh -> compile puis lance toute la suite
|
||||
# ./docker_tests.sh build -> compile seulement
|
||||
# ./docker_tests.sh run -> lance seulement (binaire deja compile)
|
||||
# ./docker_tests.sh run 'EventTest.*' -> lance un sous-ensemble (filtre gtest)
|
||||
#
|
||||
# Prerequis : build4/ existe deja (lancer ./docker_build.sh avant).
|
||||
set -e
|
||||
|
||||
MODE="${1:-all}"
|
||||
FILTER="${2:-*}"
|
||||
|
||||
case "$MODE" in
|
||||
build) CMD="make -j8 migration_tests" ;;
|
||||
run) CMD="./bin/migration_tests --gtest_filter='$FILTER'" ;;
|
||||
all) CMD="make -j8 migration_tests && ./bin/migration_tests --gtest_filter='$FILTER'" ;;
|
||||
*) echo "usage: $0 [build|run|all] [filtre_gtest]"; exit 2 ;;
|
||||
esac
|
||||
|
||||
docker run --rm \
|
||||
-v /home/nkana/repo/qt-migration-legatus:/workspace \
|
||||
-v /home/nkana/repo/qt-migration-legatus/qt6-after/qt6-migrated-legatus/rti_license.dat:/workspace/rti_license.dat \
|
||||
-v /home/nkana/repo/external/rti_connext_dds-7.7.0:/opt/rti_connext_dds-7.7.0:ro \
|
||||
-w /workspace/qt6-after/qt6-migrated-legatus/build4 \
|
||||
legatus-build:26.04 bash -c "export QT_QPA_PLATFORM=offscreen && $CMD"
|
||||
Reference in new issue
Block a user