Files
soci/scripts/ci/test.sh
Vadim Zeitlin bce5f9febb Split build and test stages of the CI builds
While this doesn't matter for Travis CI, it makes sense to separate them
for the other CI systems using more structured approach to the build
steps.

Add a few test_*.sh scripts for the backends that need to do something
special when running the tests and just use run_test function for all
the others.
2021-03-19 00:50:05 +01:00

20 lines
411 B
Bash
Executable File

#!/bin/bash
# Run SOCI tests in CI builds
#
# Copyright (c) 2013 Mateusz Loskot <mateusz@loskot.net>
#
source ${SOCI_SOURCE_DIR}/scripts/ci/common.sh
# run tests from the build directory
cd ${builddir}
# run the tests
SCRIPT=${SOCI_SOURCE_DIR}/scripts/ci/test_${SOCI_CI_BACKEND}.sh
if [ -x ${SCRIPT} ]; then
# use the custom script for this backend
echo "Running ${SCRIPT}"
${SCRIPT}
else
run_test
fi