3 # Test Stow across multiple Perl versions, by executing the
4 # Docker image built via build-docker.sh.
6 # Usage: ./test-docker.sh [list | PERL_VERSION]
8 # If the first argument is 'list', list available Perl versions.
9 # If the first argument is a Perl version, test just that version interactively.
10 # If no arguments are given test all available Perl versions non-interactively.
12 version
=$
( tools
/get-version
)
15 # Normal non-interactive run
20 elif [ "$1" == list
]; then
21 # List available Perl versions
24 -v $
(pwd)/docker
/run-stow-tests.sh
:/run-stow-tests.sh \
26 -e LIST_PERL_VERSIONS
=1 \
29 # Interactive run for testing / debugging a particular version
33 -v $
(pwd)/docker
/run-stow-tests.sh
:/run-stow-tests.sh \
35 -e PERL_VERSION
=$perl_version \