summaryrefslogtreecommitdiff
path: root/selftest/target
diff options
context:
space:
mode:
authorRajesh Joseph <rjoseph@redhat.com>2016-07-13 16:15:27 +0000
committerStefan Metzmacher <metze@samba.org>2016-07-28 10:06:13 +0200
commit8de11bd897afa1a0569d8e2609e9a7a486ba0504 (patch)
treee4ef4261fa6f9f1d6114dc8209ce6bbf5e7d7da7 /selftest/target
parent71682e125c840225a25b21810119e20c96fd85d8 (diff)
downloadsamba-8de11bd897afa1a0569d8e2609e9a7a486ba0504.tar.gz
shadow_copy2: Add test case for snapprefix and delimiter
Add test case for the newly addded option shadow:snapprefix and shadow:delimiter Signed-off-by: Rajesh Joseph <rjoseph@redhat.com> Reviewed-by: Uri Simchoni <uri@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'selftest/target')
-rwxr-xr-xselftest/target/Samba3.pm25
1 files changed, 25 insertions, 0 deletions
diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm
index 5c3f8e15095..e8f35e36575 100755
--- a/selftest/target/Samba3.pm
+++ b/selftest/target/Samba3.pm
@@ -1738,6 +1738,31 @@ sub provision($$$$$$$$)
shadow:snapdir = $shadow_basedir/.snapshots
shadow:format = \@GMT-%Y.%m.%d-%H_%M_%S-snap
+[shadow_fmt4]
+ comment = Testing shadow:snapprefix regex
+ vfs object = shadow_copy2
+ path = $shadow_shrdir
+ read only = no
+ guest ok = yes
+ shadow:mountpoint = $shadow_mntdir
+ shadow:basedir = $shadow_basedir
+ shadow:snapdir = $shadow_basedir/.snapshots
+ shadow:snapprefix = \^s[a-z]*p\$
+ shadow:format = _GMT-%Y.%m.%d-%H.%M.%S
+
+[shadow_fmt5]
+ comment = Testing shadow:snapprefix with delim regex
+ vfs object = shadow_copy2
+ path = $shadow_shrdir
+ read only = no
+ guest ok = yes
+ shadow:mountpoint = $shadow_mntdir
+ shadow:basedir = $shadow_basedir
+ shadow:snapdir = $shadow_basedir/.snapshots
+ shadow:delimiter = \@GMT
+ shadow:snapprefix = [a-z]*
+ shadow:format = \@GMT-%Y.%m.%d-%H.%M.%S
+
[shadow_wl]
path = $shadow_shrdir
comment = previous versions with wide links allowed