mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
29 lines
663 B
Bash
Executable File
29 lines
663 B
Bash
Executable File
#!/usr/bin/env bash
|
|
CIDIR=$(dirname $(readlink -fn $0))
|
|
REALTIME=0
|
|
source $CIDIR/ci.functions
|
|
ASTETCDIR=$DESTDIR/etc/asterisk
|
|
|
|
pushd $TESTSUITE_DIR
|
|
|
|
./cleanup-test-remnants.sh
|
|
|
|
if [ $REALTIME -eq 0 ] ; then
|
|
$CIDIR/setupRealtime.sh
|
|
fi
|
|
|
|
export PYTHONPATH=./lib/python/
|
|
echo "Running tests ${TEST_COMMAND}"
|
|
./runtests.py --cleanup ${TEST_COMMAND} | contrib/scripts/pretty_print --no-color --no-timer --term-width=120 --show-errors || :
|
|
|
|
if [ $REALTIME -eq 0 ] ; then
|
|
$CIDIR/teardownRealtime.sh
|
|
fi
|
|
|
|
if [ -f core* ] ; then
|
|
echo "*** Found a core file after running unit tests ***"
|
|
/var/lib/asterisk/scripts/ast_coredumper --no-default-search core*
|
|
exit 1
|
|
fi
|
|
|
|
popd |