File indexing completed on 2025-06-29 05:06:26

0001 #!/usr/bin/env bash
0002 # Run SOCI tests in CI builds
0003 #
0004 # Copyright (c) 2013 Mateusz Loskot <mateusz@loskot.net>
0005 #
0006 source ${SOCI_SOURCE_DIR}/scripts/ci/common.sh
0007 
0008 # run tests from the build directory
0009 cd ${builddir}
0010 
0011 # run the tests
0012 SCRIPT=${SOCI_SOURCE_DIR}/scripts/ci/test_${SOCI_CI_BACKEND}.sh
0013 if [ -x ${SCRIPT} ]; then
0014   # use the custom script for this backend
0015   echo "Running ${SCRIPT}"
0016   ${SCRIPT}
0017 else
0018   run_test
0019 fi