2020-06-18 07:03:32 +08:00
|
|
|
#! /usr/bin/env perl
|
2021-01-28 20:54:57 +08:00
|
|
|
# Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
|
2020-06-18 07:03:32 +08:00
|
|
|
#
|
|
|
|
# Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
|
|
# this file except in compliance with the License. You can obtain a copy
|
|
|
|
# in the file LICENSE in the source distribution or at
|
|
|
|
# https://www.openssl.org/source/license.html
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
|
|
|
use OpenSSL::Test;
|
|
|
|
|
|
|
|
setup("test_app");
|
|
|
|
|
2021-01-07 17:16:12 +08:00
|
|
|
plan tests => 5;
|
2020-06-18 07:03:32 +08:00
|
|
|
|
|
|
|
ok(run(app(["openssl"])),
|
|
|
|
"Run openssl app with no args");
|
|
|
|
|
|
|
|
ok(run(app(["openssl", "help"])),
|
|
|
|
"Run openssl app with help");
|
|
|
|
|
2021-01-07 17:16:12 +08:00
|
|
|
ok(!run(app(["openssl", "-wrong"])),
|
2020-06-18 07:03:32 +08:00
|
|
|
"Run openssl app with incorrect arg");
|
2021-01-07 17:16:12 +08:00
|
|
|
|
|
|
|
ok(run(app(["openssl", "-help"])),
|
|
|
|
"Run openssl app with -help");
|
|
|
|
|
|
|
|
ok(run(app(["openssl", "--help"])),
|
|
|
|
"Run openssl app with --help");
|