04-test_asn1_parse.t 791 B

1234567891011121314151617181920212223242526
  1. #! /usr/bin/env perl
  2. # Copyright 2023 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 strict;
  9. use OpenSSL::Test qw(:DEFAULT srctop_file);
  10. use OpenSSL::Test::Utils;
  11. setup("test_asn1_parse");
  12. plan tests => 3;
  13. $ENV{OPENSSL_CONF} = srctop_file("test", "test_asn1_parse.cnf");
  14. ok(run(app(([ 'openssl', 'asn1parse',
  15. '-genstr', 'OID:1.2.3.4.1']))));
  16. ok(run(app(([ 'openssl', 'asn1parse',
  17. '-genstr', 'OID:1.2.3.4.2']))));
  18. ok(run(app(([ 'openssl', 'asn1parse',
  19. '-genstr', 'OID:1.2.3.4.3']))));