use strict;
use warnings;
-use OpenSSL::Test;
+use OpenSSL::Test qw/:DEFAULT result_dir/;
use OpenSSL::Test::Utils;
setup("test_rand_config");
push @rand_tests, @aria_tests unless disabled("aria");
-plan tests => scalar @rand_tests;
+plan tests => scalar @rand_tests * 2;
my $contents =<<'CONFIGEND';
openssl_conf = openssl_init
$ENV{OPENSSL_CONF} = $tmpfile;
ok(comparelines($_->{expected}), $_->{desc});
+ # Also check that instantiating the drbg works
+ my $result_dir = result_dir();
+ ok(run(app(["openssl", "rand", "-writerand", "$result_dir/$tmpfile.bin"])));
}
# Check that the stdout output contains the expected values.