From b3f3ffe35d50886cce730b6f78ed22e1e62959a1 Mon Sep 17 00:00:00 2001 From: Uri Simchoni Date: Wed, 4 Nov 2015 12:06:03 +0200 Subject: [PATCH] vfs_offline: add a blackbox test Signed-off-by: Uri Simchoni Reviewed-by: Jeremy Allison --- selftest/target/Samba3.pm | 6 +++++ source3/script/tests/test_offline.sh | 33 ++++++++++++++++++++++++++++ source3/selftest/tests.py | 1 + 3 files changed, 40 insertions(+) create mode 100755 source3/script/tests/test_offline.sh diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm index f66aea75b31..281ac3cc570 100755 --- a/selftest/target/Samba3.pm +++ b/selftest/target/Samba3.pm @@ -594,6 +594,9 @@ sub setup_fileserver($$) my $valid_users_sharedir="$share_dir/valid_users"; push(@dirs,$valid_users_sharedir); + my $offline_sharedir="$share_dir/offline"; + push(@dirs,$offline_sharedir); + my $fileserver_options = " [lowercase] path = $lower_case_share_dir @@ -616,6 +619,9 @@ sub setup_fileserver($$) [valid-users-access] path = $valid_users_sharedir valid users = +userdup +[offline] + path = $offline_sharedir + vfs objects = offline "; my $vars = $self->provision($path, diff --git a/source3/script/tests/test_offline.sh b/source3/script/tests/test_offline.sh new file mode 100755 index 00000000000..fbc071af998 --- /dev/null +++ b/source3/script/tests/test_offline.sh @@ -0,0 +1,33 @@ +#!/bin/sh +# +# Blackbox test for shadow_copy2 VFS. +# +if [ $# -lt 7 ]; then +cat <