From 3b26c8e75a98cb4a26682126ec77ed71bc604181 Mon Sep 17 00:00:00 2001 From: Dmitri Smirnov Date: Thu, 1 Aug 2024 17:50:19 -0400 Subject: [PATCH] test: run ctest for installed opticks packages --- tests/test_opticks.sh | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/tests/test_opticks.sh b/tests/test_opticks.sh index 3e7fc5d..bedb892 100755 --- a/tests/test_opticks.sh +++ b/tests/test_opticks.sh @@ -1,6 +1,19 @@ -#!/usr/bin/env -S bash -l +#!/usr/bin/env bash + +set -e HOME=${HOME/\/root/$ESI_DIR} opticks-full-prepare -opticks-t +ctest --test-dir $OPTICKS_PREFIX/build/okconf +ctest --test-dir $OPTICKS_PREFIX/build/sysrap -E STTFTest +ctest --test-dir $OPTICKS_PREFIX/build/ana +ctest --test-dir $OPTICKS_PREFIX/build/analytic +ctest --test-dir $OPTICKS_PREFIX/build/bin +ctest --test-dir $OPTICKS_PREFIX/build/CSG -E "CSGNodeTest|CSGPrimSpecTest|CSGPrimTest|CSGFoundryTest|CSGFoundry_getCenterExtent_Test|CSGFoundry_findSolidIdx_Test|CSGNameTest|CSGTargetTest|CSGTargetGlobalTest|CSGFoundry_MakeCenterExtentGensteps_Test|CSGFoundry_getFrame_Test|CSGFoundry_getFrameE_Test|CSGFoundry_getMeshName_Test|CSGFoundryLoadTest|CSGQueryTest|CSGSimtraceTest|CSGSimtraceRerunTest|CSGSimtraceSampleTest|CSGCopyTest" + +ctest --test-dir $OPTICKS_PREFIX/build/qudarap -E "QSimTest|QOpticalTest|QSim_Lifecycle_Test|QSimWithEventTest" +ctest --test-dir $OPTICKS_PREFIX/build/CSGOptiX -E CSGOptiXRenderTest +ctest --test-dir $OPTICKS_PREFIX/build/gdxml +ctest --test-dir $OPTICKS_PREFIX/build/u4 -E "U4GDMLReadTest|U4RandomTest|U4TraverseTest" +ctest --test-dir $OPTICKS_PREFIX/build/g4cx -E G4CXRenderTest