mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
8a2ef49dea
This ensures that in both build systems, smbtorture3 is the source3 binary, and smbtoture is our main smbtorture binary, built with waf. Also included in this is the removal of bin/ndrdump4 as a special case. This removes the last cases of binaries with different names in each build system. Andrew Bartlett Reviewed-by: Andreas Schneider <asn@samba.org>
55 lines
1.8 KiB
Bash
Executable File
55 lines
1.8 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
FILTER_XFAIL="${PYTHON} -u ${SELFTESTDIR}/filter-subunit --expected-failures=${SELFTESTDIR}/knownfail --flapping=${SELFTESTDIR}/flapping"
|
|
if [ "x${SUBUNIT_FORMATTER}" = x"" ]; then
|
|
SUBUNIT_FORMATTER="${PYTHON} -u ${SELFTESTDIR}/format-subunit --prefix=${SELFTESTPREFIX} --immediate"
|
|
fi
|
|
|
|
if [ x"${FAIL_IMMEDIATELY}" != x"" ]; then
|
|
FILTER_XFAIL="${FILTER_XFAIL} --fail-immediately"
|
|
fi
|
|
|
|
cleanup_and_exit() {
|
|
if test "$1" = 0 -o -z "$1"; then
|
|
exit 0
|
|
else
|
|
exit $1
|
|
fi
|
|
}
|
|
|
|
st_test_done() {
|
|
test -f ${SELFTESTPREFIX}/st_done || { echo "SELFTEST FAILED"; cleanup_and_exit 1; }
|
|
}
|
|
|
|
if [ "x${RUN_FROM_BUILD_FARM}" = "xyes" ]; then
|
|
( rm -f ${SELFTESTPREFIX}/st_done && \
|
|
${PERL} ${SELFTESTDIR}/selftest.pl \
|
|
--binary-mapping=smbtorture3:smbtorture3,nmblookup3:nmblookup,nmblookup4:nmblookup4,smbclient3:smbclient,smbclient4:smbclient4,ntlm_auth3:ntlm_auth,smbtorture4:smbtorture \
|
|
--prefix=${SELFTESTPREFIX} --target=samba3 \
|
|
--testlist="${PYTHON} ${SOURCEDIR}/selftest/tests.py|" \
|
|
--exclude=${SELFTESTDIR}/skip \
|
|
--srcdir="${SOURCEDIR}/.." \
|
|
--socket-wrapper ${TESTS} \
|
|
&& touch ${SELFTESTPREFIX}/st_done ) | \
|
|
${FILTER_XFAIL} --strip-passed-output
|
|
EXIT_STATUS=$?
|
|
|
|
st_test_done
|
|
else
|
|
( rm -f ${SELFTESTPREFIX}/st_done && \
|
|
${PERL} ${SELFTESTDIR}/selftest.pl \
|
|
--binary-mapping=smbtorture3:smbtorture3,nmblookup3:nmblookup,nmblookup4:nmblookup4,smbclient3:smbclient,smbclient4:smbclient4,ntlm_auth3:ntlm_auth,smbtorture4:smbtorture \
|
|
--prefix=${SELFTESTPREFIX} --target=samba3 \
|
|
--testlist="${PYTHON} ${SOURCEDIR}/selftest/tests.py|" \
|
|
--exclude=${SELFTESTDIR}/skip \
|
|
--srcdir="${SOURCEDIR}/.." \
|
|
--socket-wrapper ${TESTS} \
|
|
&& touch ${SELFTESTPREFIX}/st_done ) | \
|
|
${FILTER_XFAIL} | ${SUBUNIT_FORMATTER}
|
|
EXIT_STATUS=$?
|
|
|
|
st_test_done
|
|
fi
|
|
|
|
cleanup_and_exit ${EXIT_STATUS}
|