Skip to content

Commit 0aa7bd6

Browse files
committed
Use named TEST_TARGET variable for test mode gate
1 parent abb32ac commit 0aa7bd6

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

external/derby/test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ export tstjardir="${TEST_HOME}/tools/java"
2727
export CLASSPATH="${jardir}/derbyrun.jar:${jardir}/derbyTesting.jar:${tstjardir}/junit.jar"
2828

2929
set -e
30-
if [ "$1" = "full" ]; then
30+
TEST_TARGET="${1:-smoke}"
31+
if [ "$TEST_TARGET" = "full" ]; then
3132
ant -Dderby.tests.basePort=1690 -Dderby.system.durability=test -DderbyTesting.oldReleasePath=${TEST_HOME}/jars junit-all
3233
else
3334
java -jar "${TEST_HOME}/jars/sane/derbyrun.jar" sysinfo

external/tomcat/test.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ echo_setup
1717

1818
set -e
1919

20-
if [ "$1" = "full" ]; then
20+
TEST_TARGET="${1:-smoke}"
21+
22+
if [ "$TEST_TARGET" = "full" ]; then
2123
git clone -q -b 1.6.x --single-branch https://github.com/apache/apr.git $TEST_HOME/tmp/apr
2224
cd $TEST_HOME/tmp/apr
2325
./buildconf

0 commit comments

Comments
 (0)