Fossil SCM

Initial draft of new tests to cover the directory symlink fixes.

mistachkin 2016-10-03 20:43 UTC dirSymlinks
Commit 7cefd41a36687c9a8ba6682a6f1b9187f53cff21
1 file changed +54
--- a/test/symlinks.test
+++ b/test/symlinks.test
@@ -0,0 +1,54 @@
1
+#
2
+# Copyright (c) 2016 D. Richard Hipp
3
+#
4
+# This program is free software; you can redistribute it and/or
5
+# modify it under the terms of the Simplified BSD License (also
6
+# known as the "2-Clause License" or "FreeBSD License".)
7
+#
8
+# This program is distributed in the hope that it will be useful,
9
+# but without any warranty; without even the implied warranty of
10
+# merchantability or fitness for a particular purpose.
11
+#
12
+# Author contact information:
13
+# [email protected]
14
+# http://www.hwaci.com/drh/
15
+#
16
+############################################################################
17
+#
18
+# Symbolic link tests.
19
+#
20
+
21
+if {$tcl_platform(platform) eq "windows"allow
22
+puts $RESULTmlinks are test_cleanup_then_return
23
+}
24
+
25
+require_no_open_fig {repository}
26
+set reposi"setting allow-symlinks"
27
+
28
+i {[string length $repository] == 0} {
29
+ putssymlinks-repository \
30
+ test_cleanup_then_return
31
+ht (c) 2016 D. #
32
+# Copyright (c) 2016 D. Richard Hipp
33
+#
34
+# This program is free software; you can redistribute it and/or
35
+# modify it under the tereposi"setting al even the implied wa1 {[file readlink]] eq \
36
+{repository}
37
+set repoubdirA]}pose.
38
+#
39
+# Author cont##########SD License (allic link tor "FreeBSD Li4ngth $repository] == 0} {
40
+ putssymlinks-repository \
41
+ test_cleanup_then_ret52016 D. Richard Hipp
42
+#
43
+# This program is free software; you can redistributem
44
+# http://www.hwaci.com/drh/
45
+#
46
+############################################################################
47
+#
48
+# Symbolic link tests.
49
+#
50
+
51
+set pat"#
52
+# Copyright (c) 2016 D. Richard Hipp
53
+#
54
+# This program is free software;
--- a/test/symlinks.test
+++ b/test/symlinks.test
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
--- a/test/symlinks.test
+++ b/test/symlinks.test
@@ -0,0 +1,54 @@
1 #
2 # Copyright (c) 2016 D. Richard Hipp
3 #
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the Simplified BSD License (also
6 # known as the "2-Clause License" or "FreeBSD License".)
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but without any warranty; without even the implied warranty of
10 # merchantability or fitness for a particular purpose.
11 #
12 # Author contact information:
13 # [email protected]
14 # http://www.hwaci.com/drh/
15 #
16 ############################################################################
17 #
18 # Symbolic link tests.
19 #
20
21 if {$tcl_platform(platform) eq "windows"allow
22 puts $RESULTmlinks are test_cleanup_then_return
23 }
24
25 require_no_open_fig {repository}
26 set reposi"setting allow-symlinks"
27
28 i {[string length $repository] == 0} {
29 putssymlinks-repository \
30 test_cleanup_then_return
31 ht (c) 2016 D. #
32 # Copyright (c) 2016 D. Richard Hipp
33 #
34 # This program is free software; you can redistribute it and/or
35 # modify it under the tereposi"setting al even the implied wa1 {[file readlink]] eq \
36 {repository}
37 set repoubdirA]}pose.
38 #
39 # Author cont##########SD License (allic link tor "FreeBSD Li4ngth $repository] == 0} {
40 putssymlinks-repository \
41 test_cleanup_then_ret52016 D. Richard Hipp
42 #
43 # This program is free software; you can redistributem
44 # http://www.hwaci.com/drh/
45 #
46 ############################################################################
47 #
48 # Symbolic link tests.
49 #
50
51 set pat"#
52 # Copyright (c) 2016 D. Richard Hipp
53 #
54 # This program is free software;

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button