| # Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved. |
| # Licensed under the OpenSSL license (the "License"). You may not use |
| # this file except in compliance with the License. You can obtain a copy |
| # in the file LICENSE in the source distribution or at |
| # https://www.openssl.org/source/license.html |
| use OpenSSL::Test qw/:DEFAULT srctop_file/; |
| ok(testordinals(srctop_file("util", "libcrypto.num")), "Test libcrypto.num"); |
| ok(testordinals(srctop_file("util", "libssl.num")), "Test libssl.num"); |
| open(my $fh, '<', $filename); |
| while (my $line = <$fh>) { |
| my @tokens = split(/(?:\s+|\s*:\s*)/, $line); |
| #Check the line looks sane |
| if ($#tokens < 5 || $#tokens > 6) { |
| print STDERR "Invalid line:\n$line\n"; |
| if ($tokens[3] eq "NOEXIST") { |
| #Some ordinals can be repeated, e.g. if one is VMS and another is !VMS |
| || ($cnt == $tokens[1] && ($qualifier ne $newqual |
| print STDERR "Invalid ordinal detected: ".$tokens[1]."\n"; |