04-test_asn1_stable_parse.t 819 B

123456789101112131415161718192021222324
  1. #! /usr/bin/env perl
  2. # Copyright 2023-2024 The OpenSSL Project Authors. All Rights Reserved.
  3. #
  4. # Licensed under the Apache License 2.0 (the "License"). You may not use
  5. # this file except in compliance with the License. You can obtain a copy
  6. # in the file LICENSE in the source distribution or at
  7. # https://www.openssl.org/source/license.html
  8. use OpenSSL::Test::Simple;
  9. use OpenSSL::Test qw/:DEFAULT srctop_file srctop_dir bldtop_dir bldtop_file data_dir/;
  10. use OpenSSL::Test::Utils;
  11. use Cwd qw(abs_path);
  12. BEGIN {
  13. setup("test_asn1_stable_parse");
  14. }
  15. my $config_path = srctop_file("test", "recipes", "04-test_asn1_stable_parse_data", "asn1_stable_parse.cnf");
  16. plan tests => 1;
  17. ok(run(test(["asn1_stable_parse_test", "-config", $config_path])),
  18. "Confirm that malformed entries in stable section are not parsed");