mirror of
https://github.com/drwetter/testssl.sh.git
synced 2026-07-15 03:27:38 +02:00
Check on MacOS returned not ok
This commit is contained in:
+4
-3
@@ -10,8 +10,9 @@ my $prg="testssl.sh";
|
|||||||
my $os="$^O";
|
my $os="$^O";
|
||||||
|
|
||||||
if ( $os eq "darwin" ){
|
if ( $os eq "darwin" ){
|
||||||
printf "%s\n", "Skipping checks";
|
printf "%s\n", "Skipping checks on MacOS";
|
||||||
exit 0;
|
printf "\n";
|
||||||
|
done_testing($tests);
|
||||||
}
|
}
|
||||||
|
|
||||||
#1
|
#1
|
||||||
@@ -23,6 +24,7 @@ is(scalar(@matches), 0, "Checking bad '[[ LHS' patterns")
|
|||||||
or diag(@matches);
|
or diag(@matches);
|
||||||
$tests++;
|
$tests++;
|
||||||
|
|
||||||
|
# The following works only on GNU grep
|
||||||
|
|
||||||
#2
|
#2
|
||||||
printf "\n%s\n", "Testing for backticks ...";
|
printf "\n%s\n", "Testing for backticks ...";
|
||||||
@@ -53,7 +55,6 @@ $tests++;
|
|||||||
#my @matches = qx(grep -nP '\beval\b' $prg);
|
#my @matches = qx(grep -nP '\beval\b' $prg);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# more would go here
|
# more would go here
|
||||||
|
|
||||||
printf "\n";
|
printf "\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user