"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Unix/t/01_opts.t" between
cloc-1.84.tar.gz and cloc-1.86.tar.gz

About: cloc ("Count Lines of Code") counts blank, comment and physical lines of source code in many programming languages.

01_opts.t  (cloc-1.84):01_opts.t  (cloc-1.86)
skipping to change at line 205 skipping to change at line 205
{ {
'name' => '--follow-links, --not-match-d, --fullpath 6/6 (g ithub issue #286)', 'name' => '--follow-links, --not-match-d, --fullpath 6/6 (g ithub issue #286)',
'cd' => '../tests/inputs/issues/286', 'cd' => '../tests/inputs/issues/286',
'args' => '--follow-links --not-match-d project/ignore_subdi r --fullpath project', 'args' => '--follow-links --not-match-d project/ignore_subdi r --fullpath project',
'ref' => '../tests/outputs/issues/286/6.yaml', 'ref' => '../tests/outputs/issues/286/6.yaml',
}, },
{ {
'name' => '--include-ext m,lua (github issue #296)', 'name' => '--include-ext m,lua (github issue #296)',
'cd' => '../tests/inputs', 'cd' => '../tests/inputs/issues/296',
'args' => '--include-ext m,lua .', 'args' => '--include-ext m,lua .',
'ref' => '../tests/outputs/issues/296/results.yaml', 'ref' => '../tests/outputs/issues/296/results.yaml',
}, },
{ {
'name' => '--strip-str-comments (github issue #245)', 'name' => '--strip-str-comments (github issue #245)',
'cd' => '../tests/inputs/issues/245', 'cd' => '../tests/inputs/issues/245',
'args' => '--strip-str-comments .', 'args' => '--strip-str-comments .',
'ref' => '../tests/outputs/issues/245/CRS.scala.yaml', 'ref' => '../tests/outputs/issues/245/CRS.scala.yaml',
}, },
skipping to change at line 316 skipping to change at line 316
}, },
{ {
'name' => 'Python with /* in strings issue 405', 'name' => 'Python with /* in strings issue 405',
'cd' => '../tests/inputs/issues/405', 'cd' => '../tests/inputs/issues/405',
'args' => 'globs.py', 'args' => 'globs.py',
'ref' => '../tests/outputs/issues/405/globs.py.yaml', 'ref' => '../tests/outputs/issues/405/globs.py.yaml',
}, },
{ {
'name' => '--exclude-dir and --follow-link issue 407 1/3', 'name' => '--exclude-dir and --follow-link, #407 1/3',
'cd' => '../tests/inputs/issues/407', 'cd' => '../tests/inputs/issues/407',
'args' => '--follow-link --exclude-dir Test count_dir', 'args' => '--follow-link --exclude-dir Test count_dir',
'ref' => '../tests/outputs/issues/407/results1.yaml', 'ref' => '../tests/outputs/issues/407/results1.yaml',
}, },
{ {
'name' => '--exclude-dir and --follow-link issue 407 2/3', 'name' => '--exclude-dir and --follow-link, #407 2/3',
'cd' => '../tests/inputs/issues/407', 'cd' => '../tests/inputs/issues/407',
'args' => '--exclude-dir Test level2', 'args' => '--exclude-dir Test level2',
'ref' => '../tests/outputs/issues/407/results2.yaml', 'ref' => '../tests/outputs/issues/407/results2.yaml',
}, },
{ {
'name' => '--exclude-dir and --follow-link issue 407 3/3', 'name' => '--exclude-dir and --follow-link, #407 3/3',
'cd' => '../tests/inputs/issues/407', 'cd' => '../tests/inputs/issues/407',
'args' => '--follow-link --exclude-dir Test level2', 'args' => '--follow-link --exclude-dir Test level2',
'ref' => '../tests/outputs/issues/407/results3.yaml', 'ref' => '../tests/outputs/issues/407/results3.yaml',
}, },
{ {
'name' => 'doubly counted she-bang line issue 408', 'name' => 'doubly counted she-bang line, #408',
'cd' => '../tests/inputs/issues/408', 'cd' => '../tests/inputs/issues/408',
'args' => 'badly_named_ruby.pl', 'args' => 'badly_named_ruby.pl',
'ref' => '../tests/outputs/issues/408/badly_named_ruby.yaml ', 'ref' => '../tests/outputs/issues/408/badly_named_ruby.yaml ',
}, },
{
'name' => 'case insensitive file ext, #420',
'cd' => '../tests/inputs/issues/420',
'args' => '--ignore-case-ext .',
'ref' => '../tests/outputs/issues/420/results.yaml',
},
{
'name' => 'diff with --exclude-list-file, #433',
'cd' => '../tests/inputs/issues/433',
'args' => '--exclude-list-file excl.txt --by-file --follow-l
inks --diff L R
',
'ref' => '../tests/outputs/issues/433/results.yaml',
},
{
'name' => 'JavaScript comment in string, #454',
'cd' => '../tests/inputs/issues/454',
'args' => '--strip-str-comments createServer.js',
'ref' => '../tests/outputs/issues/454/createServer.js.yaml'
,
},
{
'name' => 'XML with no extension, #456',
'cd' => '../tests/inputs/issues/456',
'args' => 'XML_no_ext',
'ref' => '../tests/outputs/issues/456/XML_no_ext.yaml',
},
{
'name' => 'XML with unusual extension, #456',
'cd' => '../tests/inputs/issues/456',
'args' => 'XML_weird_ext.profile',
'ref' => '../tests/outputs/issues/456/XML_weird_ext.profile
.yaml',
},
{
'name' => 'ignore Algorithm::Diff::sdiff() failures, #463',
'cd' => '../tests/inputs/issues/463',
'args' => '--diff left.C right.C',
'ref' => '../tests/outputs/issues/463/diff.yaml',
},
{
'name' => 'diff list input format 1, #455',
'cd' => '../',
'args' => '--diff-list-file tests/inputs/issues/455/list.txt
',
'ref' => '../tests/outputs/issues/455/list.yaml',
},
{
'name' => 'diff list input format 2, #455',
'cd' => '../',
'args' => '--diff-list-file tests/inputs/issues/455/list_ali
gn.txt',
'ref' => '../tests/outputs/issues/455/list_align.yaml',
},
{
'name' => 'replace_regex with null, #472',
'cd' => '../tests/inputs/issues/472',
'args' => '--force-lang-def lua_def.txt not_really.lua',
'ref' => '../tests/outputs/issues/472/not_really.lua.yaml',
},
{
'name' => '--exclude-lang --diff 1/3, #476',
'cd' => '../tests/inputs/issues/476',
'args' => '--diff A B',
'ref' => '../tests/outputs/issues/476/all.yaml',
},
{
'name' => '--exclude-lang --diff 2/3, #476',
'cd' => '../tests/inputs/issues/476',
'args' => "--exclude-lang 'Fortran 90' --diff A B",
'ref' => '../tests/outputs/issues/476/no_fortran.yaml',
},
{
'name' => '--exclude-lang --diff 3/3, #476',
'cd' => '../tests/inputs/issues/476',
'args' => "--exclude-lang C++ --diff A B",
'ref' => '../tests/outputs/issues/476/no_cpp.yaml',
},
# Next test, 482, requires an empty directory B. Git
# does not like this so create it at runtime.
{
'name' => '--include-lang --diff, #482',
'cd' => '../tests/inputs/issues/482',
'args' => '--include-lang C --diff A B',
'ref' => '../tests/outputs/issues/482/results.yaml',
},
# { # {
# 'name' => '--count-and--diff with --out', # 'name' => '--count-and--diff with --out',
# 'cd' => '../tests/inputs/issues/220', # 'cd' => '../tests/inputs/issues/220',
# 'args' => '--count-and-diff ../../aa ../../dd', # 'args' => '--count-and-diff ../../aa ../../dd',
# 'ref' => '../tests/outputs/issues/220/rpt.yaml.diff..._.._a a..._.._dd', # 'ref' => '../tests/outputs/issues/220/rpt.yaml.diff..._.._a a..._.._dd',
# }, # },
); );
# Create test input for issue #132 which needs data not in the git repo. # Create test input for issue #132 which needs data not in the git repo.
# Silently fail if file/dir already exists. # Silently fail if file/dir already exists.
mkdir "../tests/inputs/issues/132/ignore_git"; mkdir "../tests/inputs/issues/132/ignore_git";
cp "../tests/inputs/hi.py", "../tests/inputs/issues/132/ignore_git/"; cp "../tests/inputs/hi.py", "../tests/inputs/issues/132/ignore_git/";
my $missing_dir = "../tests/inputs/issues/482/B";
if (!-d $missing_dir) {
mkdir $missing_dir;
}
my $Verbose = 0; my $Verbose = 0;
my $results = 'results.yaml'; my $results = 'results.yaml';
my $work_dir = getcwd; my $work_dir = getcwd;
my $cloc = "$work_dir/../cloc"; # all-purpose version my $cloc = "$work_dir/../cloc"; # all-purpose version
#my $cloc = "$work_dir/cloc"; # Unix-tuned version #my $cloc = "$work_dir/cloc"; # Unix-tuned version
my $Run = "$cloc --quiet --yaml --out $results "; my $Run = "$cloc --quiet --yaml --out $results ";
foreach my $t (@Tests) { foreach my $t (@Tests) {
chdir($t->{'cd'}) if defined $t->{'cd'}; chdir($t->{'cd'}) if defined $t->{'cd'};
print "Run dir= ", cwd(), "\n" if $Verbose; print "Run dir= ", cwd(), "\n" if $Verbose;
 End of changes. 7 change blocks. 
5 lines changed or deleted 98 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)