1
1
#! /usr/bin/env bash
2
- # ghe-rsync-feature-checker.sh command tests
2
+ # ghe-rsync-feature-checker command tests
3
3
4
4
TESTS_DIR=" $PWD /$( dirname " $0 " ) "
5
5
# Bring in testlib.
@@ -8,121 +8,121 @@ TESTS_DIR="$PWD/$(dirname "$0")"
8
8
9
9
# # testing for known supported command help with and without leading dashes
10
10
11
- begin_test " ghe-rsync-feature-checker.sh for known supported command --help"
11
+ begin_test " Testing ghe-rsync-feature-checker for known supported command --help"
12
12
(
13
13
set -e
14
14
15
- # Test ghe-rsync-feature-checker.sh command
16
- ghe-rsync-feature-checker.sh --help | grep -q " true"
15
+ # Test ghe-rsync-feature-checker command
16
+ ghe-rsync-feature-checker --help | grep -q " true"
17
17
)
18
18
end_test
19
19
20
- begin_test " ghe-rsync-feature-checker.sh for known supported command help"
20
+ begin_test " Testing ghe-rsync-feature-checker with known supported command help"
21
21
(
22
22
set -e
23
23
24
- # Test ghe-rsync-feature-checker.sh command
25
- ghe-rsync-feature-checker.sh help | grep -q " true"
24
+ # Test ghe-rsync-feature-checker command
25
+ ghe-rsync-feature-checker help | grep -q " true"
26
26
)
27
27
end_test
28
28
29
- # # testing for known unsupported command not-an-actual-feature with and without leading dashes
29
+ # # testing with known unsupported command not-an-actual-feature with and without leading dashes
30
30
31
- begin_test " ghe-rsync-feature-checker.sh for known unsupported command --not-an-actual-feature"
31
+ begin_test " Testing ghe-rsync-feature-checker with known unsupported command --not-an-actual-feature"
32
32
(
33
33
set -e
34
34
35
- # Test ghe-rsync-feature-checker.sh command
36
- ghe-rsync-feature-checker.sh --not-an-actual-feature | grep -q " false"
35
+ # Test ghe-rsync-feature-checker command
36
+ ghe-rsync-feature-checker --not-an-actual-feature | grep -q " false"
37
37
38
38
)
39
39
end_test
40
40
41
- begin_test " ghe-rsync-feature-checker.sh for known unsupported command not-an-actual-feature"
41
+ begin_test " Testing ghe-rsync-feature-checker with known unsupported command not-an-actual-feature"
42
42
(
43
43
set -e
44
44
45
- # Test ghe-rsync-feature-checker.sh command
46
- ghe-rsync-feature-checker.sh not-an-actual-feature | grep -q " false"
45
+ # Test ghe-rsync-feature-checker command
46
+ ghe-rsync-feature-checker not-an-actual-feature | grep -q " false"
47
47
)
48
48
end_test
49
49
50
- # # testing for known supported command partial with and without leading dashes
50
+ # # testing with known supported command partial with and without leading dashes
51
51
52
- begin_test " ghe-rsync-feature-checker.sh for known supported command --partial"
52
+ begin_test " Testing ghe-rsync-feature-checker with known supported command --partial"
53
53
(
54
54
set -e
55
55
56
- # Test ghe-rsync-feature-checker.sh command
57
- ghe-rsync-feature-checker.sh --partial | grep -q " true"
56
+ # Test ghe-rsync-feature-checker command
57
+ ghe-rsync-feature-checker --partial | grep -q " true"
58
58
)
59
59
end_test
60
60
61
- begin_test " ghe-rsync-feature-checker.sh for known supported command partial"
61
+ begin_test " Testing ghe-rsync-feature-checker with known supported command partial"
62
62
(
63
63
set -e
64
64
65
- # Test ghe-rsync-feature-checker.sh command
66
- ghe-rsync-feature-checker.sh partial | grep -q " true"
65
+ # Test ghe-rsync-feature-checker command
66
+ ghe-rsync-feature-checker partial | grep -q " true"
67
67
)
68
68
end_test
69
69
70
- # # testing for known supported command -v with and without leading dashes
70
+ # # testing with known supported command -v with and without leading dashes
71
71
72
- begin_test " ghe-rsync-feature-checker.sh for known supported command -v"
72
+ begin_test " Testing ghe-rsync-feature-checker with known supported command -v"
73
73
(
74
74
set -e
75
75
76
- # Test ghe-rsync-feature-checker.sh command
77
- ghe-rsync-feature-checker.sh -v | grep -q " true"
76
+ # Test ghe-rsync-feature-checker command
77
+ ghe-rsync-feature-checker -v | grep -q " true"
78
78
)
79
79
end_test
80
80
81
- begin_test " ghe-rsync-feature-checker.sh for known supported command v"
81
+ begin_test " Testing ghe-rsync-feature-checker with known supported command v"
82
82
(
83
83
set -e
84
84
85
- # Test ghe-rsync-feature-checker.sh command
86
- ghe-rsync-feature-checker.sh v | grep -q " true"
85
+ # Test ghe-rsync-feature-checker command
86
+ ghe-rsync-feature-checker v | grep -q " true"
87
87
)
88
88
end_test
89
89
90
- # # testing for known supported command --verbose with and without leading dashes
90
+ # # testing with known supported command --verbose with and without leading dashes
91
91
92
- begin_test " ghe-rsync-feature-checker.sh for known supported command --verbose"
92
+ begin_test " Testing ghe-rsync-feature-checker with known supported command --verbose"
93
93
(
94
94
set -e
95
95
96
- # Test ghe-rsync-feature-checker.sh command
97
- ghe-rsync-feature-checker.sh --verbose | grep -q " true"
96
+ # Test ghe-rsync-feature-checker command
97
+ ghe-rsync-feature-checker --verbose | grep -q " true"
98
98
)
99
99
end_test
100
100
101
- begin_test " ghe-rsync-feature-checker.sh for known supported command verbose"
101
+ begin_test " Testing ghe-rsync-feature-checker with known supported command verbose"
102
102
(
103
103
set -e
104
104
105
- # Test ghe-rsync-feature-checker.sh command
106
- ghe-rsync-feature-checker.sh verbose | grep -q " true"
105
+ # Test ghe-rsync-feature-checker command
106
+ ghe-rsync-feature-checker verbose | grep -q " true"
107
107
)
108
108
end_test
109
109
110
- # # testing for known supported command ignore-missing-args with and without leading dashes
110
+ # # testing with known supported command ignore-missing-args with and without leading dashes
111
111
112
- begin_test " ghe-rsync-feature-checker.sh for known supported command --ignore-missing-args"
112
+ begin_test " Testing ghe-rsync-feature-checker with known supported command --ignore-missing-args"
113
113
(
114
114
set -e
115
115
116
- # Test ghe-rsync-feature-checker.sh command
117
- ghe-rsync-feature-checker.sh " --ignore-missing-args" | grep -q " true"
116
+ # Test ghe-rsync-feature-checker command
117
+ ghe-rsync-feature-checker " --ignore-missing-args" | grep -q " true"
118
118
)
119
119
end_test
120
120
121
- begin_test " ghe-rsync-feature-checker.sh for known supported command ignore-missing-args"
121
+ begin_test " Testing ghe-rsync-feature-checker with known supported command ignore-missing-args"
122
122
(
123
123
set -e
124
124
125
- # Test ghe-rsync-feature-checker.sh command
126
- ghe-rsync-feature-checker.sh " ignore-missing-args" | grep -q " true"
125
+ # Test ghe-rsync-feature-checker command
126
+ ghe-rsync-feature-checker " ignore-missing-args" | grep -q " true"
127
127
)
128
128
end_test
0 commit comments