#! /bin/sh
echo "PassThroughMode=START Test"
echo "The '****PASSTHROUGH****' argument should appear after 'StartParam'"
echo ""
../bin/wrapper -c ../test/passthrough.conf wrapper.java.additional.1=-Dorg.tanukisoftware.wrapper.WrapperStartStopApp.passthroughMode=START -- "****PASSTHROUGH****"
echo ""
echo "PassThroughMode=STOP Test"
echo "The '****PASSTHROUGH****' argument should appear after ''StopParam'"
echo ""
../bin/wrapper -c ../test/passthrough.conf wrapper.java.additional.1=-Dorg.tanukisoftware.wrapper.WrapperStartStopApp.passthroughMode=STOP -- "****PASSTHROUGH****"
echo ""
echo "PassThroughMode=BOTH Test"
echo "The '****PASSTHROUGH****' argument should appear after 'StartParam' and 'StopParam'"
echo ""
../bin/wrapper -c ../test/passthrough.conf wrapper.java.additional.1=-Dorg.tanukisoftware.wrapper.WrapperStartStopApp.passthroughMode=BOTH -- "****PASSTHROUGH****"
echo ""
echo "PassThroughMode=IGNORE Test"
echo "The '****PASSTHROUGH****' argument should not appear at all"
echo ""
../bin/wrapper -c ../test/passthrough.conf wrapper.java.additional.1=-Dorg.tanukisoftware.wrapper.WrapperStartStopApp.passthroughMode=IGNORE -- "****PASSTHROUGH****"
echo ""
echo "Default PassThroughMode Test"
echo "The '****PASSTHROUGH****' argument should not appear at all."
echo ""
../bin/wrapper -c ../test/passthrough.conf -- "****PASSTHROUGH****"
echo ""
