Skip to content

Commit

Permalink
Issue #255: added 'exec_test_suite' to entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed Aug 13, 2020
1 parent 6a862cb commit 1b8d932
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions bin/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ function exec_quick_setup() {
exec bin/docker/quick_setup.pl $@
}

# An easy way to run the testsuit
function exec_test_suite() {
pwd
upgrade_patchlevel_release
shift 1
bin/docker/quick_setup.pl $@
exec prove -I . -I Kernel/cpan-lib -I Custom --verbose -r scripts/test > prove_$(date +'%F-%H%M%S').out 2>&1
}

# An easy way to start bash.
# Or do upgrades.
# Or list files.
Expand Down Expand Up @@ -201,5 +210,9 @@ if [ "$1" = "quick_setup" ]; then
exec_quick_setup
fi

if [ "$1" = "test_suite" ]; then
exec_test_suite
fi

# as a fallback execute the passed command
exec_whatever $@

0 comments on commit 1b8d932

Please sign in to comment.