Fossil SCM

Further test refinements.

mistachkin 2016-10-03 21:27 dirSymlinks
Commit 596bbe342124b8275c99da4974d91b09ef9078d5
1 file changed +9 -3
--- test/symlinks.test
+++ test/symlinks.test
@@ -21,11 +21,11 @@
2121
if {$tcl_platform(platform) eq "windows"} {
2222
puts "Symlinks are not supported on Windows."
2323
test_cleanup_then_return
2424
}
2525
26
-fossil test-th-eval "setting allow-symlinks"
26
+fossil test-th-eval --open-config "setting allow-symlinks"
2727
2828
if {![string is true -strict [normalize_result]]} {
2929
puts "Symlinks are not enabled."
3030
test_cleanup_then_return
3131
}
@@ -34,12 +34,17 @@
3434
3535
###############################################################################
3636
3737
test_setup; set rootDir [file normalize [pwd]]
3838
39
-fossil test-th-eval {repository}
39
+fossil test-th-eval --open-config {repository}
4040
set repository [normalize_result]
41
+
42
+if {[string length $repository] == 0} {
43
+ puts "Detection of the open repository file failed."
44
+ test_cleanup_then_return
45
+}
4146
4247
#######################################
4348
# Use symbolic link to a directory... #
4449
#######################################
4550
@@ -65,11 +70,12 @@
6570
test symlinks-dir-5 {[normalize_result] eq "symdirA/f1.txt"}
6671
6772
###############################################################################
6873
6974
fossil extras
70
-test symlinks-dir-6 {[normalize_result] eq "symdirA/f2.txt"}
75
+test symlinks-dir-6 {[normalize_result] eq \
76
+"subdirA/f1.txt\nsubdirA/f2.txt\nsymdirA/f2.txt"}
7177
7278
###############################################################################
7379
7480
fossil close
7581
file delete [file join $rootDir subdirA f1.txt]
7682
--- test/symlinks.test
+++ test/symlinks.test
@@ -21,11 +21,11 @@
21 if {$tcl_platform(platform) eq "windows"} {
22 puts "Symlinks are not supported on Windows."
23 test_cleanup_then_return
24 }
25
26 fossil test-th-eval "setting allow-symlinks"
27
28 if {![string is true -strict [normalize_result]]} {
29 puts "Symlinks are not enabled."
30 test_cleanup_then_return
31 }
@@ -34,12 +34,17 @@
34
35 ###############################################################################
36
37 test_setup; set rootDir [file normalize [pwd]]
38
39 fossil test-th-eval {repository}
40 set repository [normalize_result]
 
 
 
 
 
41
42 #######################################
43 # Use symbolic link to a directory... #
44 #######################################
45
@@ -65,11 +70,12 @@
65 test symlinks-dir-5 {[normalize_result] eq "symdirA/f1.txt"}
66
67 ###############################################################################
68
69 fossil extras
70 test symlinks-dir-6 {[normalize_result] eq "symdirA/f2.txt"}
 
71
72 ###############################################################################
73
74 fossil close
75 file delete [file join $rootDir subdirA f1.txt]
76
--- test/symlinks.test
+++ test/symlinks.test
@@ -21,11 +21,11 @@
21 if {$tcl_platform(platform) eq "windows"} {
22 puts "Symlinks are not supported on Windows."
23 test_cleanup_then_return
24 }
25
26 fossil test-th-eval --open-config "setting allow-symlinks"
27
28 if {![string is true -strict [normalize_result]]} {
29 puts "Symlinks are not enabled."
30 test_cleanup_then_return
31 }
@@ -34,12 +34,17 @@
34
35 ###############################################################################
36
37 test_setup; set rootDir [file normalize [pwd]]
38
39 fossil test-th-eval --open-config {repository}
40 set repository [normalize_result]
41
42 if {[string length $repository] == 0} {
43 puts "Detection of the open repository file failed."
44 test_cleanup_then_return
45 }
46
47 #######################################
48 # Use symbolic link to a directory... #
49 #######################################
50
@@ -65,11 +70,12 @@
70 test symlinks-dir-5 {[normalize_result] eq "symdirA/f1.txt"}
71
72 ###############################################################################
73
74 fossil extras
75 test symlinks-dir-6 {[normalize_result] eq \
76 "subdirA/f1.txt\nsubdirA/f2.txt\nsymdirA/f2.txt"}
77
78 ###############################################################################
79
80 fossil close
81 file delete [file join $rootDir subdirA f1.txt]
82

Keyboard Shortcuts

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