diff options
author | Richard Levitte <levitte@openssl.org> | 2019-03-04 17:22:45 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-03-13 11:32:17 +0100 |
commit | 9ad41d246f43d410ab4805e09786a88d56371908 (patch) | |
tree | de8d24177ac90b28d8ccb6a2d74f96f60dcc8a8d /test/recipes/04-test_params.t | |
parent | 80889e41a72ea2520959505537f38343958b761a (diff) | |
download | openssl-9ad41d246f43d410ab4805e09786a88d56371908.zip openssl-9ad41d246f43d410ab4805e09786a88d56371908.tar.gz openssl-9ad41d246f43d410ab4805e09786a88d56371908.tar.bz2 |
test/params_test.c: Add "real world" parameter testing
test/params_test.c is a program that tries to mimic how a provider and
an application would or could handle OSSL_PARAM arrays.
For the moment, this program tests a very raw way of handling
OSSL_PARAM arrays. It is, however, written in a way that will
hopefully make it possible to extend with other methods as APIs arise,
and to set up test cases where a "provider" handles the array one way
while the "application" handles it another way.
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8396)
Diffstat (limited to 'test/recipes/04-test_params.t')
-rw-r--r-- | test/recipes/04-test_params.t | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/recipes/04-test_params.t b/test/recipes/04-test_params.t new file mode 100644 index 0000000..ae83d4f --- /dev/null +++ b/test/recipes/04-test_params.t @@ -0,0 +1,15 @@ +#! /usr/bin/env perl +# Copyright 2019 The OpenSSL Project Authors. All Rights Reserved. +# +# 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 OpenSSL::Test; +use OpenSSL::Test::Simple; + +setup("test_params"); + +simple_test("test_params", "params_test"); |