mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-25 15:50:27 +08:00
$(pg_config --libdir)/pgxs/src/test/perl is the right path for PostgresNode.pm on Linux. On MaxOS and PG 13.x another path seems to be used: $(pg_config --libdir)/postgresql/pgxs/src/test/perl
39 lines
943 B
Bash
Executable File
39 lines
943 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Wrapper around perl prove utility to control running of TAP tests
|
|
#
|
|
# The following control variable is supported:
|
|
#
|
|
# PROVE_TESTS only run TAP tests from this list
|
|
# e.g make provecheck PROVE_TESTS="t/foo.pl t/bar.pl"
|
|
#
|
|
# Note that you can also use regular expressions to run multiple
|
|
# taps tests matching the pattern:
|
|
#
|
|
# e.g make provecheck PROVE_TESTS="t/*chunk*"
|
|
#
|
|
|
|
PROVE_TESTS=${PROVE_TESTS:-}
|
|
PROVE=${PROVE:-prove}
|
|
|
|
# If PROVE_TESTS is specified then run those subset of TAP tests even if
|
|
# TESTS is also specified
|
|
if [ -z "$PROVE_TESTS" ]
|
|
then
|
|
# Exit early if we are running with TESTS=expr
|
|
if [ ! -z "$TESTS" ]
|
|
then
|
|
exit 0
|
|
fi
|
|
FINAL_TESTS="t/*.pl"
|
|
else
|
|
FINAL_TESTS=$PROVE_TESTS
|
|
fi
|
|
|
|
${PROVE} \
|
|
-I "${SRC_DIR}/src/test/perl" \
|
|
-I "${CM_SRC_DIR}/test/perl" \
|
|
-I "${PG_LIBDIR}/pgxs/src/test/perl" \
|
|
-I "${PG_LIBDIR}/postgresql/pgxs/src/test/perl" \
|
|
$FINAL_TESTS
|