diff options
author | Andrew Bartlett <abartlet@samba.org> | 2001-07-02 07:18:49 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2001-07-02 07:18:49 +0000 |
commit | e3d6627f05f899efe0a95e91090e8f9af8ac2e98 (patch) | |
tree | aa30abc2d88b497442bf7ef5d7dcd1a41bf218c8 /testsuite | |
parent | d2af8d03ab0722865e21df57ba07dfc1611d149e (diff) | |
download | samba-e3d6627f05f899efe0a95e91090e8f9af8ac2e98.tar.gz samba-e3d6627f05f899efe0a95e91090e8f9af8ac2e98.tar.bz2 samba-e3d6627f05f899efe0a95e91090e8f9af8ac2e98.zip |
Start of smbtorture based testing. Not all of smbtorture's facilites
are used, but these ones should pass.
Andrew Bartlett
(This used to be commit eee251f71071034b6d1a74d192cdabe8e24dc08b)
Diffstat (limited to 'testsuite')
24 files changed, 64 insertions, 1 deletions
diff --git a/testsuite/build_farm/runlist b/testsuite/build_farm/runlist index f269fac7f2..9bc7273ac0 100644 --- a/testsuite/build_farm/runlist +++ b/testsuite/build_farm/runlist @@ -1 +1 @@ -TEST_ALL="basicsmb-sharelist basicsmb-sharesec basicsmb-usersec basicsmb-serversec basicsmb-shareguest" +TEST_ALL="basicsmb-sharelist basicsmb-sharesec basicsmb-usersec basicsmb-serversec basicsmb-shareguest torture-FDPASS torture-LOCK1 torture-LOCK2 torture-LOCK3 torture-LOCK4 torture-LOCK5 torture-UNLINK torture-BROWSE torture-ATTR torture-TRANS2 torture-TORTURE torture-RANDOMIPC torture-OPLOCK1 torture-OPLOCK3 torture-DIR torture-DENY1 torture-DENY2 torture-TCON torture-RW1 torture-RW2 torture-OPEN torture-DELETE" diff --git a/testsuite/build_farm/torture-ATTR.test b/testsuite/build_farm/torture-ATTR.test new file mode 100644 index 0000000000..db6d5e8782 --- /dev/null +++ b/testsuite/build_farm/torture-ATTR.test @@ -0,0 +1,2 @@ +. torture_setup.fns +test_torture "ATTR" diff --git a/testsuite/build_farm/torture-BROWSE.test b/testsuite/build_farm/torture-BROWSE.test new file mode 100644 index 0000000000..da758977da --- /dev/null +++ b/testsuite/build_farm/torture-BROWSE.test @@ -0,0 +1,2 @@ +. torture_setup.fns +test_torture "BROWSE" diff --git a/testsuite/build_farm/torture-DELETE.test b/testsuite/build_farm/torture-DELETE.test new file mode 100644 index 0000000000..395f449d1e --- /dev/null +++ b/testsuite/build_farm/torture-DELETE.test @@ -0,0 +1,2 @@ +. torture_setup.fns +test_torture "DELETE" diff --git a/testsuite/build_farm/torture-DENY1.test b/testsuite/build_farm/torture-DENY1.test new file mode 100644 index 0000000000..99ce7ea886 --- /dev/null +++ b/testsuite/build_farm/torture-DENY1.test @@ -0,0 +1,2 @@ +. torture_setup.fns +test_torture "DENY1" diff --git a/testsuite/build_farm/torture-DENY2.test b/testsuite/build_farm/torture-DENY2.test new file mode 100644 index 0000000000..17c8f707d8 --- /dev/null +++ b/testsuite/build_farm/torture-DENY2.test @@ -0,0 +1,2 @@ +. torture_setup.fns +test_torture "DENY2" diff --git a/testsuite/build_farm/torture-DIR.test b/testsuite/build_farm/torture-DIR.test new file mode 100644 index 0000000000..085ce59c3b --- /dev/null +++ b/testsuite/build_farm/torture-DIR.test @@ -0,0 +1,2 @@ +. torture_setup.fns +test_torture "DIR" diff --git a/testsuite/build_farm/torture-FDPASS.test b/testsuite/build_farm/torture-FDPASS.test new file mode 100644 index 0000000000..e8af277d43 --- /dev/null +++ b/testsuite/build_farm/torture-FDPASS.test @@ -0,0 +1,2 @@ +. torture_setup.fns +test_torture "FDPASS" diff --git a/testsuite/build_farm/torture-LOCK1.test b/testsuite/build_farm/torture-LOCK1.test new file mode 100644 index 0000000000..fd01c492f1 --- /dev/null +++ b/testsuite/build_farm/torture-LOCK1.test @@ -0,0 +1,2 @@ +. torture_setup.fns +test_torture "LOCK1" diff --git a/testsuite/build_farm/torture-LOCK2.test b/testsuite/build_farm/torture-LOCK2.test new file mode 100644 index 0000000000..66b671d801 --- /dev/null +++ b/testsuite/build_farm/torture-LOCK2.test @@ -0,0 +1,2 @@ +. torture_setup.fns +test_torture "LOCK2" diff --git a/testsuite/build_farm/torture-LOCK3.test b/testsuite/build_farm/torture-LOCK3.test new file mode 100644 index 0000000000..dcf14019d8 --- /dev/null +++ b/testsuite/build_farm/torture-LOCK3.test @@ -0,0 +1,2 @@ +. torture_setup.fns +test_torture "LOCK3" diff --git a/testsuite/build_farm/torture-LOCK4.test b/testsuite/build_farm/torture-LOCK4.test new file mode 100644 index 0000000000..8fdc9b6661 --- /dev/null +++ b/testsuite/build_farm/torture-LOCK4.test @@ -0,0 +1,2 @@ +. torture_setup.fns +test_torture "LOCK4" diff --git a/testsuite/build_farm/torture-LOCK5.test b/testsuite/build_farm/torture-LOCK5.test new file mode 100644 index 0000000000..a04f83c849 --- /dev/null +++ b/testsuite/build_farm/torture-LOCK5.test @@ -0,0 +1,2 @@ +. torture_setup.fns +test_torture "LOCK5" diff --git a/testsuite/build_farm/torture-OPEN.test b/testsuite/build_farm/torture-OPEN.test new file mode 100644 index 0000000000..ee3e55f089 --- /dev/null +++ b/testsuite/build_farm/torture-OPEN.test @@ -0,0 +1,2 @@ +. torture_setup.fns +test_torture "OPEN" diff --git a/testsuite/build_farm/torture-OPLOCK1.test b/testsuite/build_farm/torture-OPLOCK1.test new file mode 100644 index 0000000000..bb606ad3bc --- /dev/null +++ b/testsuite/build_farm/torture-OPLOCK1.test @@ -0,0 +1,2 @@ +. torture_setup.fns +test_torture "OPLOCK1" diff --git a/testsuite/build_farm/torture-OPLOCK3.test b/testsuite/build_farm/torture-OPLOCK3.test new file mode 100644 index 0000000000..f8dfb3f8e9 --- /dev/null +++ b/testsuite/build_farm/torture-OPLOCK3.test @@ -0,0 +1,2 @@ +. torture_setup.fns +test_torture "OPLOCK3" diff --git a/testsuite/build_farm/torture-RANDOMIPC.test b/testsuite/build_farm/torture-RANDOMIPC.test new file mode 100644 index 0000000000..e510b6b667 --- /dev/null +++ b/testsuite/build_farm/torture-RANDOMIPC.test @@ -0,0 +1,2 @@ +. torture_setup.fns +test_torture "RANDOMIPC" diff --git a/testsuite/build_farm/torture-RW1.test b/testsuite/build_farm/torture-RW1.test new file mode 100644 index 0000000000..6be4a897d9 --- /dev/null +++ b/testsuite/build_farm/torture-RW1.test @@ -0,0 +1,2 @@ +. torture_setup.fns +test_torture "RW1" diff --git a/testsuite/build_farm/torture-RW2.test b/testsuite/build_farm/torture-RW2.test new file mode 100644 index 0000000000..a647d9de2e --- /dev/null +++ b/testsuite/build_farm/torture-RW2.test @@ -0,0 +1,2 @@ +. torture_setup.fns +test_torture "RW22" diff --git a/testsuite/build_farm/torture-TCON.test b/testsuite/build_farm/torture-TCON.test new file mode 100644 index 0000000000..7d1aba0f29 --- /dev/null +++ b/testsuite/build_farm/torture-TCON.test @@ -0,0 +1,2 @@ +. torture_setup.fns +test_torture "TCON" diff --git a/testsuite/build_farm/torture-TORTURE.test b/testsuite/build_farm/torture-TORTURE.test new file mode 100644 index 0000000000..bc97e94e85 --- /dev/null +++ b/testsuite/build_farm/torture-TORTURE.test @@ -0,0 +1,2 @@ +. torture_setup.fns +test_torture "TORTURE" diff --git a/testsuite/build_farm/torture-TRANS2.test b/testsuite/build_farm/torture-TRANS2.test new file mode 100644 index 0000000000..d2a387f1af --- /dev/null +++ b/testsuite/build_farm/torture-TRANS2.test @@ -0,0 +1,2 @@ +. torture_setup.fns +test_torture "TRANS2" diff --git a/testsuite/build_farm/torture-UNLINK.test b/testsuite/build_farm/torture-UNLINK.test new file mode 100644 index 0000000000..b7086bbc83 --- /dev/null +++ b/testsuite/build_farm/torture-UNLINK.test @@ -0,0 +1,2 @@ +. torture_setup.fns +test_torture "UNLINK" diff --git a/testsuite/build_farm/torture-setup.fns b/testsuite/build_farm/torture-setup.fns new file mode 100644 index 0000000000..3d9abbcd79 --- /dev/null +++ b/testsuite/build_farm/torture-setup.fns @@ -0,0 +1,19 @@ +. basicsmb.fns + +test_torture() { + torture_test=$1 + password=samba + security=USER + (test_smb_conf_setup && test_smbpasswd $password ) || return 1 + + echo $pwd/$tree/source/bin/smbtorture //localhost/test -U$whoami%$password $torture_test + $pwd/$tree/source/bin/smbtorture //localhost/test -U$whoami%$password $torture_test + status=$? + if [ $status = 0 ]; then + echo "smbtorture test $torture_test worked" + else + echo "smbtorture test $torture_test FAILED!" + return 1 + fi + return 0 +} |