aboutsummaryrefslogtreecommitdiff
path: root/test/recipes/03-test_property.t
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2018-11-16 11:44:30 +1000
committerPauli <paul.dale@oracle.com>2019-02-18 13:28:14 +1000
commit1bdbdaffdc66be457a40f33640b523aaf21138c6 (patch)
tree23bd17995698f4f14780fc9b9a3dad589f2ea96a /test/recipes/03-test_property.t
parente3ac3654892246d7492f1012897e42ad7efd13ce (diff)
downloadopenssl-1bdbdaffdc66be457a40f33640b523aaf21138c6.zip
openssl-1bdbdaffdc66be457a40f33640b523aaf21138c6.tar.gz
openssl-1bdbdaffdc66be457a40f33640b523aaf21138c6.tar.bz2
Properties for implementation selection.
Properties are a sequence of comma separated name=value pairs. A name without a corresponding value is assumed to be a Boolean and have the true value 'yes'. Values are either strings or numbers. Strings can be quoted either _"_ or _'_ or unquoted (with restrictions). There are no escape characters inside strings. Number are either decimal digits or '0x' followed by hexidecimal digits. Numbers are represented internally as signed sixty four bit values. Queries on properties are a sequence comma separated conditional tests. These take the form of name=value (equality test), name!=value (inequality test) or name (Boolean test for truth). Queries can be parsed, compared against a definition or merged pairwise. Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8224)
Diffstat (limited to 'test/recipes/03-test_property.t')
-rw-r--r--test/recipes/03-test_property.t12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/recipes/03-test_property.t b/test/recipes/03-test_property.t
new file mode 100644
index 0000000..2654215
--- /dev/null
+++ b/test/recipes/03-test_property.t
@@ -0,0 +1,12 @@
+#! /usr/bin/env perl
+# Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
+# Copyright (c) 2019, Oracle and/or its affiliates. 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 OpenSSL::Test::Simple;
+
+simple_test("test_property", "property_test");