Skip crc32 test if 'cksum' is not present for comparison (e.g. SkyOS)

This commit is contained in:
Brian Cox 2017-09-03 00:12:54 -07:00
parent 736a761bff
commit 0d21e71407
1 changed files with 29 additions and 22 deletions

View File

@ -36,6 +36,13 @@ sub run() {
# lets see if the system 'cksum' agree's with siggen's crc32 value
#
my ($crc32, undef) = split(/ /, `cksum $twtools::twrootdir/test`);
if ($crc32 eq "") {
++$twtools::twskippedtests;
print "SKIPPED\n";
return;
}
my $siggen = `$twtools::twrootdir/bin/siggen -h -t -C $twtools::twrootdir/test`;
chomp $crc32;