openssl/util/perl/OpenSSL
Martin Peylo 7a2027240e Adding Test.pm with workaround for Perl abs2rel bug
If SRCTOP != BLDTOP, and SRCTOP is given in relative form, e.g.
"./config ../openssl", then a bug in Perl's abs2rel may trigger that directory-
rewriting in __cwd results in wrong entries in %directories under certain
circumstances, e.g. when a test executes run(app(["openssl"]) after indir.

There should not be any need to go to a higher directory from BLDDIR or SRCDIR,
so it should be OK to use them in their absolute form, also resolving all
possible symlinks, right from the start.

Following the File::Spec::Functions bug description (reported to perl.org):

When abs2rel gets a path argument with ..s that are crossing over the ..s
trailing the base argument, the result is wrong.

Example
PATH: /home/goal/test/..
BASE: /home/goal/test/../../base
Good result: ../goal
Bad  result: ../..

Bug verified with File::Spec versions
- 3.6301
- 3.74 (latest)

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7031)
2019-07-02 20:10:57 +02:00
..
Test Added Test::ok_nofips, Test::is_nofips & Test::isnt_nofips methods. 2019-04-11 09:47:12 +10:00
Util OpenSSL::Util::Pod: allow slashes in names 2019-02-27 18:36:31 +01:00
Glob.pm File::Glob option ':bsd_glob' doesn't work everywhere, replace w/ a wrapper 2017-08-15 11:31:18 +02:00
Ordinals.pm Remove EXPORT_VAR_AS_FUNC 2019-07-01 20:13:03 -04:00
ParseC.pm Remove EXPORT_VAR_AS_FUNC 2019-07-01 20:13:03 -04:00
Test.pm Adding Test.pm with workaround for Perl abs2rel bug 2019-07-02 20:10:57 +02:00
Util.pm util/perl/OpenSSL/Ordinals.pm: use OpenSSL::Util::cmp_versions 2018-12-07 16:02:17 +01:00