]>
git.ipfire.org Git - thirdparty/openssl.git/blob - test/recipes/04-test_conf.t
9103cbc8eb22d670cecd91d7b72e0d86a4972f4a
2 # Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved.
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
12 use OpenSSL
::Test
qw(:DEFAULT data_file);
13 use OpenSSL
::Test
::Utils
;
14 use File
::Compare
qw(compare_text);
19 'dollarid_on.conf' => 'dollarid_on.txt',
20 'dollarid_off.conf' => 'dollarid_off.txt',
23 plan skip_all
=> 'This is unsupported for cross compiled configurations'
24 if config
('CROSS_COMPILE');
26 plan tests
=> 2 * scalar(keys %input_result);
28 foreach (sort keys %input_result) {
30 my $input_path = data_file
($_);
31 my $expected_path = data_file
($input_result{$_});
32 my $result_path = "test_conf-$_-stdout";
34 skip
"Problem dumping $_", 1
35 unless ok
(run
(test
([ 'confdump', $input_path ],
36 stdout
=> $result_path)),
38 is
(compare_text
($result_path, $expected_path), 0,
39 "comparing the dump of $_ with $input_result{$_}");