diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-10-26 13:38:15 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-10-28 13:10:27 +0200 |
commit | 659ec79245a9d9e5d45c380e8b82ec6236999032 (patch) | |
tree | 14d0af27c28e82f2396a9b7ec1ca6573c3252af9 | |
parent | 8dcfe2e5c44184298b0aa5bb1a13e2108b31a9c4 (diff) | |
download | samba-659ec79245a9d9e5d45c380e8b82ec6236999032.tar.gz samba-659ec79245a9d9e5d45c380e8b82ec6236999032.tar.bz2 samba-659ec79245a9d9e5d45c380e8b82ec6236999032.zip |
selftest: Have only one set of selftest knownfail and skip files
Listing tests that are not ever proposed (eg samba4.* in the samba3 selftest)
is not an error, so just combine the lists.
This is being done because some folks trying to learn how our 'make
test' works are having trouble following the distributed nature of the
selftest system.
Andrew Bartlett
-rw-r--r-- | selftest/knownfail (renamed from source4/selftest/knownfail) | 20 | ||||
-rw-r--r-- | selftest/quick (renamed from source4/selftest/quick) | 6 | ||||
-rw-r--r-- | selftest/skip (renamed from source4/selftest/skip) | 26 | ||||
-rw-r--r-- | selftest/slow (renamed from source4/selftest/slow) | 0 | ||||
-rw-r--r-- | selftest/wscript | 30 | ||||
-rw-r--r-- | source3/selftest/knownfail | 16 | ||||
-rw-r--r-- | source3/selftest/quick | 1 | ||||
-rwxr-xr-x | source3/selftest/s3-selftest.sh | 6 | ||||
-rw-r--r-- | source3/selftest/skip | 22 | ||||
-rw-r--r-- | source3/selftest/slow | 1 |
10 files changed, 52 insertions, 76 deletions
diff --git a/source4/selftest/knownfail b/selftest/knownfail index 384ed1b90b..7f023211f6 100644 --- a/source4/selftest/knownfail +++ b/selftest/knownfail @@ -1,8 +1,24 @@ -# This file contains a list of regular expressions matching the names of -# tests that are expected to fail. +# This file contains a list of regular expressions matching the names of +# tests that are expected to fail. # # "make test" will not report failures for tests listed here and will consider # a successful run for any of these tests an error. + +^samba3.blackbox.failure # this is designed to fail, for testing our test infrastructure +.*printer.*print_test_extended # fails on some hosts due to timing issues ? +.*printer.*print_test # fails on some hosts due to timing issues ? +^samba3.posix_s3.rap.printing # fails sometimes on sn-devel +^samba3.posix_s3.rpc.spoolss.*printserver.enum_printers_old # fails on some hosts due to timing issues ? +^samba3.posix_s3.rpc.spoolss.printer.*addprinterex.print_test # another intermittent failure +^samba3.posix_s3.smb2.lock.*.rw-exclusive # another intermittent failure +.*driver.add_driver_timestamps # we only can store dates, not timestamps +^samba3.raw.mux.* #This test is flaky on the async lock time +^samba3.smbtorture_s3.*OPLOCK4 # fails sometimes on sn-devel +^samba3.posix_s3.nbt.dgram.*netlogon2 +^samba3.*rap.sam.*.useradd # Not provided by Samba 3 +^samba3.*rap.sam.*.userdelete # Not provided by Samba 3 +^samba3.*rap.basic.*.netsessiongetinfo # Not provided by Samba 3 +^samba3.posix_s3.libsmbclient .opendir # This requires a workgroup called 'WORKGROUP' and for netbios browse lists to have been registered ^samba4.local.resolve.*.async ^samba4.local.iconv.*.next_codepoint() # these show that we still have some differences between our system diff --git a/source4/selftest/quick b/selftest/quick index 20970857a4..7605f3f887 100644 --- a/source4/selftest/quick +++ b/selftest/quick @@ -1,5 +1,5 @@ -# This file contains regexes matching the tests that should be run -# when doing a "quicktest" - verifying whether the build is working +# This file contains regexes matching the tests that should be run +# when doing a "quicktest" - verifying whether the build is working # rather than trying to see what exactly is broken. # # This should be as quick as possible but cover as much code as possible. @@ -20,7 +20,7 @@ raw.close raw.ioctl raw.rename raw.eas -base.open +base.open rpc.altercontext rpc.join rpc.echo diff --git a/source4/selftest/skip b/selftest/skip index e19eae74a9..686ccdb0e7 100644 --- a/source4/selftest/skip +++ b/selftest/skip @@ -1,4 +1,4 @@ -# This file contains a list of regular expressions matching testsuites that +# This file contains a list of regular expressions matching testsuites that # should be skipped during "make test". # # Possible reasons for adding a testsuite here: @@ -8,7 +8,7 @@ # * Testsuite contains "flapping" tests (sometimes success, sometimes failure) # * Testsuite hangs indefinitely # -# If a testsuite is partially succeeding, please list the failing bits +# If a testsuite is partially succeeding, please list the failing bits # in the selftest/knownfail file rather than disabling the testsuite completely. # That way those tests that do succeed still get run and we will be notified # if a known failing test suddenly starts succeeding. @@ -18,6 +18,28 @@ # # Please add a comment for each testsuite you disable explaining why # it is being skipped. +^samba3.smbtorture_s3.*.randomipc +^samba3.smbtorture_s3.*.negnowait +^samba3.smbtorture_s3.*.nbench +^samba3.smbtorture_s3.*.errmapextract +^samba3.smbtorture_s3.*.trans2scan +^samba3.smbtorture_s3.*.nttransscan +^samba3.smbtorture_s3.*.deny1 +^samba3.smbtorture_s3.*.deny2 +^samba3.smbtorture_s3.*.openattr +^samba3.smbtorture_s3.*.casetable +^samba3.smbtorture_s3.*.eatest +^samba3.smbtorture_s3.*.mangle +^samba3.smbtorture_s3.*.utable +^samba3.smbtorture_s3.*.pipe_number +^samba3.*base.charset +^samba3.*raw.acls +^samba3.*raw.composite +^samba3.*raw.context +^samba3.*raw.ioctl +^samba3.*raw.qfileinfo +^samba3.*raw.qfsinfo +^samba3.*raw.sfileinfo.base ^samba4.raw.composite ^samba4.base.iometer ^samba4.base.casetable diff --git a/source4/selftest/slow b/selftest/slow index 7c2090c0e6..7c2090c0e6 100644 --- a/source4/selftest/slow +++ b/selftest/slow diff --git a/selftest/wscript b/selftest/wscript index c34658a1a7..4d3d8f2841 100644 --- a/selftest/wscript +++ b/selftest/wscript @@ -70,19 +70,6 @@ def set_options(opt): def configure(conf): conf.env.SELFTEST_PREFIX = Options.options.SELFTEST_PREFIX -def combine_files(file1, file2, outfile): - - f1 = open(file1) - f2 = open(file2) - of = open(outfile, mode='w') - for line in f1: - of.write(line) - for line in f2: - of.write(line) - f1.close() - f2.close() - of.close() - def cmd_testonly(opt): '''run tests without doing a build first''' env = LOAD_ENVIRONMENT() @@ -101,7 +88,7 @@ def cmd_testonly(opt): env.SUBUNIT_FORMATTER = os.getenv('SUBUNIT_FORMATTER') if not env.SUBUNIT_FORMATTER: env.SUBUNIT_FORMATTER = '${PYTHON} -u ${srcdir}/selftest/format-subunit --prefix=${SELFTEST_PREFIX} --immediate' - env.FILTER_XFAIL = '${PYTHON} -u ${srcdir}/selftest/filter-subunit --expected-failures=${SELFTEST_DIR}/knownfail' + env.FILTER_XFAIL = '${PYTHON} -u ${srcdir}/selftest/filter-subunit --expected-failures=${srcdir}/selftest/knownfail' if Options.options.FAIL_IMMEDIATELY: env.FILTER_XFAIL += ' --fail-immediately' @@ -123,9 +110,9 @@ def cmd_testonly(opt): env.OPTIONS = '--binary-mapping=%s' % binary_mapping if not Options.options.SLOWTEST: - env.OPTIONS += ' --exclude=${SELFTEST_DIR}/slow' + env.OPTIONS += ' --exclude=${srcdir}/selftest/slow' if Options.options.QUICKTEST: - env.OPTIONS += ' --quick --include=${SELFTEST_DIR}/quick' + env.OPTIONS += ' --quick --include=${srcdir}/selftest/quick' if Options.options.LOAD_LIST: env.OPTIONS += ' --load-list=%s' % Options.options.LOAD_LIST if Options.options.TESTENV: @@ -185,20 +172,11 @@ def cmd_testonly(opt): if not os.path.isdir(env.SELFTEST_PREFIX): os.makedirs(env.SELFTEST_PREFIX, int('755', 8)) - env.SELFTEST_TARGET = "samba" - - for f in ["knownfail", "slow", "quick", "skip" ]: - combine_files(env.srcdir + "/source4/selftest/" + f, - env.srcdir + "/source3/selftest/" + f, - env.SELFTEST_PREFIX + "/" + f) - - env.SELFTEST_DIR = env.SELFTEST_PREFIX - env.TESTLISTS = ('--testlist="${PYTHON} ${srcdir}/source3/selftest/tests.py|" ' + '--testlist="${PYTHON} ${srcdir}/source4/selftest/tests.py|"') # We use the full path rather than relative path because it cause problems on some plateforms (ie. solaris 8). - cmd = '(${PERL} ${srcdir}/selftest/selftest.pl --target=samba --prefix=${SELFTEST_PREFIX} --srcdir=${srcdir} --exclude=${SELFTEST_DIR}/skip ${TESTLISTS} ${OPTIONS} --socket-wrapper ${TESTS} && touch ${SELFTEST_PREFIX}/st_done) | ${FILTER_OPTIONS} | tee ${SELFTEST_PREFIX}/subunit' + cmd = '(${PERL} ${srcdir}/selftest/selftest.pl --target=samba --prefix=${SELFTEST_PREFIX} --srcdir=${srcdir} --exclude=${srcdir}/selftest/skip ${TESTLISTS} ${OPTIONS} --socket-wrapper ${TESTS} && touch ${SELFTEST_PREFIX}/st_done) | ${FILTER_OPTIONS} | tee ${SELFTEST_PREFIX}/subunit' if os.environ.get('RUN_FROM_BUILD_FARM') is None and not Options.options.FILTERED_SUBUNIT: cmd += ' | ${FORMAT_TEST_OUTPUT}' diff --git a/source3/selftest/knownfail b/source3/selftest/knownfail deleted file mode 100644 index 4f746c8d70..0000000000 --- a/source3/selftest/knownfail +++ /dev/null @@ -1,16 +0,0 @@ -^samba3.blackbox.failure # this is designed to fail, for testing our test infrastructure -.*printer.*print_test_extended # fails on some hosts due to timing issues ? -.*printer.*print_test # fails on some hosts due to timing issues ? -^samba3.posix_s3.rap.printing # fails sometimes on sn-devel -^samba3.posix_s3.rpc.spoolss.*printserver.enum_printers_old # fails on some hosts due to timing issues ? -^samba3.posix_s3.rpc.spoolss.printer.*addprinterex.print_test # another intermittent failure -^samba3.posix_s3.smb2.lock.*.rw-exclusive # another intermittent failure -.*driver.add_driver_timestamps # we only can store dates, not timestamps -^samba3.raw.mux.* #This test is flaky on the async lock time -^samba3.smbtorture_s3.*OPLOCK4 # fails sometimes on sn-devel -^samba3.posix_s3.nbt.dgram.*netlogon2 -^samba3.*rap.sam.*.useradd # Not provided by Samba 3 -^samba3.*rap.sam.*.userdelete # Not provided by Samba 3 -^samba3.*rap.basic.*.netsessiongetinfo # Not provided by Samba 3 -^samba3.posix_s3.libsmbclient .opendir # This requires a workgroup called 'WORKGROUP' and for netbios browse lists to have been registered - diff --git a/source3/selftest/quick b/source3/selftest/quick deleted file mode 100644 index bb3b066b49..0000000000 --- a/source3/selftest/quick +++ /dev/null @@ -1 +0,0 @@ -#none diff --git a/source3/selftest/s3-selftest.sh b/source3/selftest/s3-selftest.sh index a9ff875da2..4943b1e2a6 100755 --- a/source3/selftest/s3-selftest.sh +++ b/source3/selftest/s3-selftest.sh @@ -1,6 +1,6 @@ #!/bin/sh -FILTER_XFAIL="${PYTHON} -u ${SELFTESTDIR}/filter-subunit --expected-failures=${SOURCEDIR}/selftest/knownfail" +FILTER_XFAIL="${PYTHON} -u ${SELFTESTDIR}/filter-subunit --expected-failures=${SELFTESTDIR}/knownfail" if [ "x${SUBUNIT_FORMATTER}" = x"" ]; then SUBUNIT_FORMATTER="${PYTHON} -u ${SELFTESTDIR}/format-subunit --prefix=${SELFTESTPREFIX} --immediate" fi @@ -23,7 +23,7 @@ if [ "x${RUN_FROM_BUILD_FARM}" = "xyes" ]; then --binary-mapping=smbtorture3:smbtorture,nmblookup3:nmblookup,smbclient3:smbclient,ntlm_auth3:ntlm_auth \ --prefix=${SELFTESTPREFIX} --target=samba3 \ --testlist="${PYTHON} ${SOURCEDIR}/selftest/tests.py|" \ - --exclude=${SOURCEDIR}/selftest/skip \ + --exclude=${SELFTESTDIR}/skip \ --srcdir="${SOURCEDIR}/.." \ --socket-wrapper ${TESTS} \ && touch ${SELFTESTPREFIX}/st_done ) | \ @@ -37,7 +37,7 @@ else --binary-mapping=smbtorture3:smbtorture,nmblookup3:nmblookup,smbclient3:smbclient,ntlm_auth3:ntlm_auth \ --prefix=${SELFTESTPREFIX} --target=samba3 \ --testlist="${PYTHON} ${SOURCEDIR}/selftest/tests.py|" \ - --exclude=${SOURCEDIR}/selftest/skip \ + --exclude=${SELFTESTDIR}/skip \ --srcdir="${SOURCEDIR}/.." \ --socket-wrapper ${TESTS} \ && touch ${SELFTESTPREFIX}/st_done ) | \ diff --git a/source3/selftest/skip b/source3/selftest/skip deleted file mode 100644 index 5e681729ce..0000000000 --- a/source3/selftest/skip +++ /dev/null @@ -1,22 +0,0 @@ -^samba3.smbtorture_s3.*.randomipc -^samba3.smbtorture_s3.*.negnowait -^samba3.smbtorture_s3.*.nbench -^samba3.smbtorture_s3.*.errmapextract -^samba3.smbtorture_s3.*.trans2scan -^samba3.smbtorture_s3.*.nttransscan -^samba3.smbtorture_s3.*.deny1 -^samba3.smbtorture_s3.*.deny2 -^samba3.smbtorture_s3.*.openattr -^samba3.smbtorture_s3.*.casetable -^samba3.smbtorture_s3.*.eatest -^samba3.smbtorture_s3.*.mangle -^samba3.smbtorture_s3.*.utable -^samba3.smbtorture_s3.*.pipe_number -^samba3.*base.charset -^samba3.*raw.acls -^samba3.*raw.composite -^samba3.*raw.context -^samba3.*raw.ioctl -^samba3.*raw.qfileinfo -^samba3.*raw.qfsinfo -^samba3.*raw.sfileinfo.base diff --git a/source3/selftest/slow b/source3/selftest/slow deleted file mode 100644 index bb3b066b49..0000000000 --- a/source3/selftest/slow +++ /dev/null @@ -1 +0,0 @@ -#none |