Commit 3e257a7f authored by Alessandro Vullo's avatar Alessandro Vullo
Browse files

[ENSCORESW-2387] Test harness script and configurations.

parent 7e42cd5e
{
'driver' => 'SQLite',
'dbdir' => '/var/tmp/MultiTestDB',
'user' => 'travis',
}
{
'port' => '3306',
'driver' => 'mysql',
'user' => 'root',
'host' => '127.0.0.1',
}
#!/bin/bash
ENSDIR="${ENSDIR:-$PWD}"
export PERL5LIB=$ENSDIR/bioperl-live:$ENSDIR/ensembl/modules:$PWD/modules
export TEST_AUTHOR=$USER
if [ "$DB" = 'mysql' ]; then
(cd modules/t && ln -sf MultiTestDB.conf.mysql MultiTestDB.conf)
elif [ "$DB" = 'sqlite' ]; then
(cd modules/t && ln -sf MultiTestDB.conf.SQLite MultiTestDB.conf)
else
echo "Don't know about DB '$DB'"
exit 1;
fi
echo "Running test suite"
if [ "$COVERALLS" = 'true' ]; then
PERL5OPT='-MDevel::Cover=+ignore,bioperl,+ignore,ensembl' perl scripts/runtests.pl -verbose modules/t
else
perl scripts/runtests.pl modules/t
fi
rt=$?
if [ $rt -eq 0 ]; then
if [ "$COVERALLS" = 'true' ]; then
echo "Running Devel::Cover coveralls report"
cover --nosummary -report coveralls
fi
exit $?
else
exit $rt
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment