diff --git a/source/script/tests/test_testparm_s3.sh b/source/script/tests/test_testparm_s3.sh new file mode 100755 index 00000000000..f1316e922c2 --- /dev/null +++ b/source/script/tests/test_testparm_s3.sh @@ -0,0 +1,90 @@ +#!/bin/sh + +# Tests for lp_load() via testparm. +# +# The main purpose (for now) is to test all the special handlers +# and the macro expansions. + +TEMP_CONFFILE=${LIBDIR}/smb.conf.tmp +TESTPARM="$VALGRIND ${TESTPARM:-$BINDIR/testparm} --suppress-prompt" + +incdir=`dirname $0` +. $incdir/test_functions.sh + +failed=0 + +test_include_expand_macro() +{ + MACRO=$1 + rm -f ${TEMP_CONFFILE} + cat >${TEMP_CONFFILE}< ${TEMP_CONFFILE}< ${TEMP_CONFFILE}<