3 # Copyright 2018-2018 The OpenSSL Project Authors. All Rights Reserved.
5 # Licensed under the OpenSSL license (the "License"). You may not use
6 # this file except in compliance with the License. You can obtain a copy
7 # in the file LICENSE in the source distribution or at
8 # https://www.openssl.org/source/license.html
12 use OpenSSL::Test; # get 'plan'
13 use OpenSSL::Test::Simple;
14 use OpenSSL::Test::Utils;
16 setup("test_rdrand_sanity");
18 plan skip_all => "This test is unsupported in a shared library build on Windows"
19 if $^O eq 'MSWin32' && !disabled("shared");
21 # We also need static builds to be enabled even on linux
22 plan skip_all => "This test is unsupported if static builds are not enabled"
23 if disabled("static");
25 simple_test("test_rdrand_sanity", "rdrand_sanitytest");