def smbtorture4_testsuites(prefix):
return filter(lambda x: x.startswith(prefix), smbtorture4_testsuite_list)
+
+
+def get_env_torture_options():
+ ret = []
+ if not os.getenv("SELFTEST_VERBOSE"):
+ ret.append("--option=torture:progress=no")
+ if os.getenv("SELFTEST_QUICK"):
+ ret.append("--option=torture:quick=yes")
+ return ret
+
+
dbwrap_tool = binpath('dbwrap_tool')
vfstest = binpath('vfstest')
-torture_options = [configuration, "--maximum-runtime=$SELFTEST_MAXTIME",
- "--basedir=$SELFTEST_TMPDIR",
+torture_options = [configuration,
+ '--maximum-runtime=$SELFTEST_MAXTIME',
+ '--basedir=$SELFTEST_TMPDIR',
'--option="torture:winbindd_netbios_name=$SERVER"',
'--option="torture:winbindd_netbios_domain=$DOMAIN"',
'--option=torture:sharedelay=100000',
- '--option=torture:writetimeupdatedelay=500000' ]
+ '--option=torture:writetimeupdatedelay=500000',
+ '--format=subunit'
+ ]
-if not os.getenv("SELFTEST_VERBOSE"):
- torture_options.append("--option=torture:progress=no")
-torture_options.append("--format=subunit")
-if os.getenv("SELFTEST_QUICK"):
- torture_options.append("--option=torture:quick=yes")
+torture_options.extend(env_get_torture_options())
smbtorture4 += " " + " ".join(torture_options)
bbdir = os.path.join(srcdir(), "testprogs/blackbox")
-torture_options = [configuration, "--maximum-runtime=$SELFTEST_MAXTIME", "--target=samba4", "--basedir=$SELFTEST_TMPDIR"]
-if not os.getenv("SELFTEST_VERBOSE"):
- torture_options.append("--option=torture:progress=no")
-torture_options.append("--format=subunit")
-if os.getenv("SELFTEST_QUICK"):
- torture_options.append("--option=torture:quick=yes")
+torture_options = [configuration,
+ "--maximum-runtime=$SELFTEST_MAXTIME",
+ "--target=samba4",
+ "--basedir=$SELFTEST_TMPDIR",
+ "--format=subunit"]
+torture_options.extend(get_env_torture_options())
smbtorture4 += " " + " ".join(torture_options)
print >>sys.stderr, "OPTIONS %s" % " ".join(torture_options)