1*66bae5e7Schristos#! /usr/bin/env perl 2*66bae5e7Schristos# Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 3*66bae5e7Schristos# 4*66bae5e7Schristos# Licensed under the Apache License 2.0 (the "License"). You may not use 5*66bae5e7Schristos# this file except in compliance with the License. You can obtain a copy 6*66bae5e7Schristos# in the file LICENSE in the source distribution or at 7*66bae5e7Schristos# https://www.openssl.org/source/license.html 8*66bae5e7Schristos 9*66bae5e7Schristosuse strict; 10*66bae5e7Schristosuse warnings; 11*66bae5e7Schristos 12*66bae5e7Schristosuse OpenSSL::Test; 13*66bae5e7Schristos 14*66bae5e7Schristossetup("test_app"); 15*66bae5e7Schristos 16*66bae5e7Schristosplan tests => 5; 17*66bae5e7Schristos 18*66bae5e7Schristosok(run(app(["openssl"])), 19*66bae5e7Schristos "Run openssl app with no args"); 20*66bae5e7Schristos 21*66bae5e7Schristosok(run(app(["openssl", "help"])), 22*66bae5e7Schristos "Run openssl app with help"); 23*66bae5e7Schristos 24*66bae5e7Schristosok(!run(app(["openssl", "-wrong"])), 25*66bae5e7Schristos "Run openssl app with incorrect arg"); 26*66bae5e7Schristos 27*66bae5e7Schristosok(run(app(["openssl", "-help"])), 28*66bae5e7Schristos "Run openssl app with -help"); 29*66bae5e7Schristos 30*66bae5e7Schristosok(run(app(["openssl", "--help"])), 31*66bae5e7Schristos "Run openssl app with --help"); 32