1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202
|
Description: disable tests that interact with a git repo
Forwarded: not-needed
Author: tony mancill <tmancill@debian.org>
--- a/Unix/t/01_opts.t
+++ b/Unix/t/01_opts.t
@@ -66,60 +66,60 @@
'args' => '--by-file --fullpath --not-match-d bar/bee issues/114',
'ref' => '../tests/outputs/issues/114/T7.yaml',
},
- # {
- # 'name' => 'git submodule handling (github issue #131 T1)',
- # 'cd' => '../tests/inputs',
- # 'args' => 'issues/131',
- # 'ref' => '../tests/outputs/issues/131/T1.yaml',
- # },
- # {
- # 'name' => 'git submodule handling (github issue #131 T2)',
- # 'cd' => '../tests/inputs',
- # 'args' => '--vcs git issues/131',
- # 'ref' => '../tests/outputs/issues/131/T2.yaml',
- # },
+ #{
+ # 'name' => 'git submodule handling (github issue #131 T1)',
+ # 'cd' => '../tests/inputs',
+ # 'args' => 'issues/131',
+ # 'ref' => '../tests/outputs/issues/131/T1.yaml',
+ #},
+ #{
+ # 'name' => 'git submodule handling (github issue #131 T2)',
+ # 'cd' => '../tests/inputs',
+ # 'args' => '--vcs git issues/131',
+ # 'ref' => '../tests/outputs/issues/131/T2.yaml',
+ #},
{
'name' => 'all files (github issue #132 T1)',
'cd' => '../tests/inputs',
'args' => 'issues/132',
'ref' => '../tests/outputs/issues/132/T1.yaml',
},
- {
- 'name' => '--vcs git issues/132 (github issue #132 T2)',
- 'cd' => '../tests/inputs',
- 'args' => '--vcs git issues/132',
- 'ref' => '../tests/outputs/issues/132/T2.yaml',
- },
- {
- 'name' => '--vcs-git --exclude-dir ignore_dir (github issue #132 T3)',
- 'cd' => '../tests/inputs/issues/132',
- 'args' => '--vcs git --exclude-dir ignore_dir .',
- 'ref' => '../tests/outputs/issues/132/T3.yaml',
- },
- {
- 'name' => '--vcs git --fullpath --not-match-d issues/132/ignore_dir (github issue #132 T4)',
- 'cd' => '../tests/inputs',
- 'args' => '--vcs git --fullpath --not-match-d issues/132/ignore_dir issues/132',
- 'ref' => '../tests/outputs/issues/132/T4.yaml',
- },
- {
- 'name' => '--vcs git --match-f C-Ansi (github issue #132 T5)',
- 'cd' => '../tests/inputs',
- 'args' => '--vcs git --match-f C-Ansi issues/132',
- 'ref' => '../tests/outputs/issues/132/T5.yaml',
- },
- {
- 'name' => '--vcs git --match-f "\.c$" (github issue #132 T6)',
- 'cd' => '../tests/inputs',
- 'args' => '--vcs git --match-f "\.c$" issues/132',
- 'ref' => '../tests/outputs/issues/132/T6.yaml',
- },
- {
- 'name' => '--vcs "find X" (github issue #147)',
- 'cd' => '../tests/inputs',
- 'args' => '--vcs "find foo_bar"',
- 'ref' => '../tests/outputs/issues/147/T1.yaml',
- },
+ #{
+ # 'name' => '--vcs git issues/132 (github issue #132 T2)',
+ # 'cd' => '../tests/inputs',
+ # 'args' => '--vcs git issues/132',
+ # 'ref' => '../tests/outputs/issues/132/T2.yaml',
+ #},
+ #{
+ # 'name' => '--vcs-git --exclude-dir ignore_dir (github issue #132 T3)',
+ # 'cd' => '../tests/inputs/issues/132',
+ # 'args' => '--vcs git --exclude-dir ignore_dir .',
+ # 'ref' => '../tests/outputs/issues/132/T3.yaml',
+ #},
+ #{
+ # 'name' => '--vcs git --fullpath --not-match-d issues/132/ignore_dir (github issue #132 T4)',
+ # 'cd' => '../tests/inputs',
+ # 'args' => '--vcs git --fullpath --not-match-d issues/132/ignore_dir issues/132',
+ # 'ref' => '../tests/outputs/issues/132/T4.yaml',
+ #},
+ #{
+ # 'name' => '--vcs git --match-f C-Ansi (github issue #132 T5)',
+ # 'cd' => '../tests/inputs',
+ # 'args' => '--vcs git --match-f C-Ansi issues/132',
+ # 'ref' => '../tests/outputs/issues/132/T5.yaml',
+ #},
+ #{
+ # 'name' => '--vcs git --match-f "\.c$" (github issue #132 T6)',
+ # 'cd' => '../tests/inputs',
+ # 'args' => '--vcs git --match-f "\.c$" issues/132',
+ # 'ref' => '../tests/outputs/issues/132/T6.yaml',
+ #},
+ #{
+ # 'name' => '--vcs "find X" (github issue #147)',
+ # 'cd' => '../tests/inputs',
+ # 'args' => '--vcs "find foo_bar"',
+ # 'ref' => '../tests/outputs/issues/147/T1.yaml',
+ #},
{
'name' => '--read-lang-def w/remove_between_general (github issue #166)',
'cd' => '../tests/inputs/issues/166',
@@ -802,12 +802,12 @@
'ref' => '../tests/outputs/issues/822/T1.yaml',
},
- {
- 'name' => '--fullpath issues/822 (github issue #822 T2)',
- 'cd' => '../tests/inputs',
- 'args' => '--vcs git --fullpath --not-match-f "^c.csv" issues/822',
- 'ref' => '../tests/outputs/issues/822/T2.yaml',
- },
+ #{
+ # 'name' => '--fullpath issues/822 (github issue #822 T2)',
+ # 'cd' => '../tests/inputs',
+ # 'args' => '--vcs git --fullpath --not-match-f "^c.csv" issues/822',
+ # 'ref' => '../tests/outputs/issues/822/T2.yaml',
+ #},
{
'name' => '--fullpath issues/822 (github issue #822 T3)',
@@ -816,12 +816,12 @@
'ref' => '../tests/outputs/issues/822/T3.yaml',
},
- {
- 'name' => '--fullpath issues/822 (github issue #822 T4)',
- 'cd' => '../tests/inputs',
- 'args' => '--vcs git --fullpath --not-match-f "b/c.csv" issues/822',
- 'ref' => '../tests/outputs/issues/822/T4.yaml',
- },
+ #{
+ # 'name' => '--fullpath issues/822 (github issue #822 T4)',
+ # 'cd' => '../tests/inputs',
+ # 'args' => '--vcs git --fullpath --not-match-f "b/c.csv" issues/822',
+ # 'ref' => '../tests/outputs/issues/822/T4.yaml',
+ #},
{
'name' => '--fullpath issues/822 (github issue #822 T5)',
@@ -830,12 +830,12 @@
'ref' => '../tests/outputs/issues/822/T5.yaml',
},
- {
- 'name' => '--fullpath issues/822 (github issue #822 T6)',
- 'cd' => '../tests/inputs',
- 'args' => '--vcs git --fullpath --not-match-d "^b" issues/822',
- 'ref' => '../tests/outputs/issues/822/T6.yaml',
- },
+ #{
+ # 'name' => '--fullpath issues/822 (github issue #822 T6)',
+ # 'cd' => '../tests/inputs',
+ # 'args' => '--vcs git --fullpath --not-match-d "^b" issues/822',
+ # 'ref' => '../tests/outputs/issues/822/T6.yaml',
+ #},
{
'name' => '--fullpath issues/822 (github issue #822 T7)',
@@ -844,12 +844,12 @@
'ref' => '../tests/outputs/issues/822/T7.yaml',
},
- {
- 'name' => '--fullpath issues/822 (github issue #822 T8)',
- 'cd' => '../tests/inputs',
- 'args' => '--vcs git --fullpath --not-match-d "a/b" issues/822',
- 'ref' => '../tests/outputs/issues/822/T8.yaml',
- },
+ #{
+ # 'name' => '--fullpath issues/822 (github issue #822 T8)',
+ # 'cd' => '../tests/inputs',
+ # 'args' => '--vcs git --fullpath --not-match-d "a/b" issues/822',
+ # 'ref' => '../tests/outputs/issues/822/T8.yaml',
+ #},
{
'name' => '--not-match-d with trailing slash (github issue #833)',
--- a/Unix/t/02_git.t
+++ b/Unix/t/02_git.t
@@ -109,7 +109,7 @@
print "Directory 'cloc_submodule_test' is not found; git tests skipped.\n";
print "To enable the tests, create the directory with\n";
print " git clone https://github.com/AlDanial/cloc_submodule_test.git\n";
- ok( 0, "git tests");
+ ok( 1, "git tests skipped during Debian package build");
print "-" x 79, "\n";
} else {
my $results = 'results.yaml';
|