mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-15 01:53:41 +08:00
The TAP testing PG framework meets our requirements for doing multinode/stand-alone-binaries testing for scenarios which need individual multiple PG instances (multi-node testing is a prime example). This commit adds the necessary wrappers to allow the use of the TAP testing framework in timescale code base. The README in "test/perl" directory gives a fair idea of how to write tap tests. A simple tap test has been added to provide a reference point for developers to write new ones. One can go to "build/tsl/test" and invoke "make checkprove" to see the tap test in action. Also includes changes for enabling github CI to run these taptests by installing the requisite dependencies. Includes changes to license checking scripts to handle new *.pl and *.pm files. Also added a new scripts/perltidyrc to aid in formatting of these files.
14 lines
512 B
Bash
Executable File
14 lines
512 B
Bash
Executable File
#!/bin/bash
|
|
SCRIPT_DIR=$(dirname $0)
|
|
BASE_DIR=$(dirname ${SCRIPT_DIR})
|
|
|
|
SRC_DIR=$BASE_DIR ${SCRIPT_DIR}/check_license.sh -c ${BASE_DIR}/src -s ${BASE_DIR}/sql -c ${BASE_DIR}/test -s ${BASE_DIR}/test -i ${BASE_DIR}/test
|
|
exit_apache=$?
|
|
SRC_DIR=$BASE_DIR ${SCRIPT_DIR}/check_license.sh -e ${BASE_DIR}/tsl/src -t ${BASE_DIR}/tsl/test -e ${BASE_DIR}/tsl/test -j ${BASE_DIR}/tsl/test -p ${BASE_DIR}/tsl/test -p ${BASE_DIR}/test/perl
|
|
exit_tsl=$?
|
|
|
|
if [ ${exit_apache} -ne 0 ] || [ ${exit_tsl} -ne 0 ]; then
|
|
exit 1
|
|
fi
|
|
|