Files
ashlar/CI/run_integration_tests.sh
AnyOldName3 272b56f803 Ensure Git LFS is active for the example suite repo
Sometimes people don't like doing git lfs install globally
2026-10-08 23:59:31 +01:00

31 lines
1.1 KiB
Bash
Executable File

#!/bin/bash -ex
if [[ ! -d example-suite ]]; then
git lfs version || { echo "git lfs unavailable, unable to correctly clone example suite" >&2 ; exit 1 ; }
mkdir example-suite
cd example-suite
git init
git lfs install --local
git remote add origin https://gitlab.com/OpenMW/example-suite.git
git fetch --depth=1 origin ${EXAMPLE_SUITE_REVISION}
git checkout FETCH_HEAD
cd ..
fi
xvfb-run --auto-servernum --server-args='-screen 0 640x480x24x60' \
scripts/integration_tests.py \
--verbose \
--omw ${OPENMW_BINARY:-build/install/bin/openmw} \
--workdir integration_tests_output \
--config example-suite \
--data example-suite/game_template/data \
--data example-suite/example_animated_creature/data \
--data example-suite/the_hub/data \
--data example-suite/integration_tests/data \
--data example-suite/example_static_props/data \
scripts/data/integration_tests
ls integration_tests_output/*.osg_stats.log | while read v; do
scripts/osg_stats.py --stats '.*' --regexp_match < "${v}"
done