Blame test/recipes/10-test_bn.t
|
Packit |
c4476c |
#! /usr/bin/env perl
|
|
Packit |
c4476c |
# Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.
|
|
Packit |
c4476c |
#
|
|
Packit |
c4476c |
# Licensed under the OpenSSL license (the "License"). You may not use
|
|
Packit |
c4476c |
# this file except in compliance with the License. You can obtain a copy
|
|
Packit |
c4476c |
# in the file LICENSE in the source distribution or at
|
|
Packit |
c4476c |
# https://www.openssl.org/source/license.html
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
use strict;
|
|
Packit |
c4476c |
use warnings;
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
use Math::BigInt;
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
use OpenSSL::Test qw/:DEFAULT data_file/;
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
setup("test_bn");
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
my @files = qw( bnexp.txt bnmod.txt bnmul.txt bnshift.txt bnsum.txt bngcd.txt );
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
plan tests => 1 + scalar(@files);
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
foreach my $f ( @files ) {
|
|
Packit |
c4476c |
ok(run(test(["bntest", data_file($f)])),
|
|
Packit |
c4476c |
"running bntest $f");
|
|
Packit |
c4476c |
}
|
|
Packit |
c4476c |
ok(run(test(["bntest"])), "running bntest");
|