blob: 3ded5686c28358ffae05b73247d7714f613e4519 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
#!/bin/sh
# This script generates a list of testsuites that should be run as part of
# the Samba 3 test suite.
# The output of this script is parsed by selftest.pl, which then decides
# which of the tests to actually run. It will, for example, skip all tests
# listed in selftest/skip or only run a subset during "make quicktest".
# The idea is that this script outputs all of the tests of Samba 3, not
# just those that are known to pass, and list those that should be skipped
# or are known to fail in selftest/skip or selftest/samba4-knownfail. This makes it
# very easy to see what functionality is still missing in Samba 3 and makes
# it possible to run the testsuite against other servers, such as Samba 4 or
# Windows that have a different set of features.
# The syntax for a testsuite is "-- TEST --" on a single line, followed
# by the name of the test, the environment it needs and the command to run, all
# three separated by newlines. All other lines in the output are considered
# comments.
if [ ! -n "$PERL" ]
then
PERL=perl
fi
plantest() {
name=$1
env=$2
shift 2
cmdline="$*"
echo "-- TEST --"
if [ "$env" = "none" ]; then
echo "samba3.$name"
else
echo "samba3.$name ($env)"
fi
echo $env
echo $cmdline
}
normalize_testname() {
name=$1
shift 1
echo $name | tr "A-Z-" "a-z."
}
BINDIR=`dirname $0`/../bin
plantest "talloctort" none $VALGRIND $BINDIR/talloctort
plantest "replacetort" none $VALGRIND $BINDIR/replacetort
plantest "tdbtorture" none $VALGRIND $BINDIR/tdbtorture
plantest "smbconftort" none $VALGRIND $BINDIR/smbconftort $CONFIGURATION
|