From 0ca0851a01251b960ba19d958978004168f58593 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 26 Feb 2019 17:04:25 +0300 Subject: Add implementation --- libssl/tests/.gitignore | 8 ++++++++ libssl/tests/basic/buildfile | 7 +++++++ libssl/tests/basic/driver.c | 17 +++++++++++++++++ libssl/tests/basic/testscript | 5 +++++ libssl/tests/build/.gitignore | 3 +++ libssl/tests/build/bootstrap.build | 9 +++++++++ libssl/tests/build/root.build | 16 ++++++++++++++++ libssl/tests/buildfile | 5 +++++ 8 files changed, 70 insertions(+) create mode 100644 libssl/tests/.gitignore create mode 100644 libssl/tests/basic/buildfile create mode 100644 libssl/tests/basic/driver.c create mode 100644 libssl/tests/basic/testscript create mode 100644 libssl/tests/build/.gitignore create mode 100644 libssl/tests/build/bootstrap.build create mode 100644 libssl/tests/build/root.build create mode 100644 libssl/tests/buildfile (limited to 'libssl/tests') diff --git a/libssl/tests/.gitignore b/libssl/tests/.gitignore new file mode 100644 index 0000000..662178d --- /dev/null +++ b/libssl/tests/.gitignore @@ -0,0 +1,8 @@ +# Test executables. +# +driver + +# Testscript output directories (can be symlinks). +# +test +test-* diff --git a/libssl/tests/basic/buildfile b/libssl/tests/basic/buildfile new file mode 100644 index 0000000..b010198 --- /dev/null +++ b/libssl/tests/basic/buildfile @@ -0,0 +1,7 @@ +# file : tests/basic/buildfile +# copyright : Copyright (c) 2018-2019 Code Synthesis Ltd +# license : OpenSSL and SSLeay Licenses; see accompanying LICENSE file + +import libs = libssl%lib{ssl} + +exe{driver}: {h c}{**} $libs testscript diff --git a/libssl/tests/basic/driver.c b/libssl/tests/basic/driver.c new file mode 100644 index 0000000..56e9c5f --- /dev/null +++ b/libssl/tests/basic/driver.c @@ -0,0 +1,17 @@ +/* + * file : tests/basic/driver.c + * copyright : Copyright (c) 2009-2019 Code Synthesis Tools CC + * license : OpenSSL and SSLeay Licenses; see accompanying LICENSE file + */ + +#include + +#include + +int +main () +{ + assert (OPENSSL_init_ssl (0 /* opts */, NULL /* settings */) == 1); + + return 0; +} diff --git a/libssl/tests/basic/testscript b/libssl/tests/basic/testscript new file mode 100644 index 0000000..f5c8595 --- /dev/null +++ b/libssl/tests/basic/testscript @@ -0,0 +1,5 @@ +# file : tests/basic/testscript +# copyright : Copyright (c) 2016-2019 Code Synthesis Ltd +# license : OpenSSL and SSLeay Licenses; see accompanying LICENSE file + +$* diff --git a/libssl/tests/build/.gitignore b/libssl/tests/build/.gitignore new file mode 100644 index 0000000..4a730a3 --- /dev/null +++ b/libssl/tests/build/.gitignore @@ -0,0 +1,3 @@ +config.build +root/ +bootstrap/ diff --git a/libssl/tests/build/bootstrap.build b/libssl/tests/build/bootstrap.build new file mode 100644 index 0000000..dd525c0 --- /dev/null +++ b/libssl/tests/build/bootstrap.build @@ -0,0 +1,9 @@ +# file : tests/build/bootstrap.build +# copyright : Copyright (c) 2018-2019 Code Synthesis Ltd +# license : OpenSSL and SSLeay Licenses; see accompanying LICENSE file + +project = # Unnamed tests subproject. + +using config +using test +using dist diff --git a/libssl/tests/build/root.build b/libssl/tests/build/root.build new file mode 100644 index 0000000..02e2e5d --- /dev/null +++ b/libssl/tests/build/root.build @@ -0,0 +1,16 @@ +# file : tests/build/root.build +# copyright : Copyright (c) 2018-2019 Code Synthesis Ltd +# license : OpenSSL and SSLeay Licenses; see accompanying LICENSE file + +using c + +h{*}: extension = h +c{*}: extension = c + +# Every exe{} in this subproject is by default a test. +# +exe{*}: test = true + +# The test target for cross-testing (running tests under Wine, etc). +# +test.target = $c.target diff --git a/libssl/tests/buildfile b/libssl/tests/buildfile new file mode 100644 index 0000000..70330ab --- /dev/null +++ b/libssl/tests/buildfile @@ -0,0 +1,5 @@ +# file : tests/buildfile +# copyright : Copyright (c) 2018-2019 Code Synthesis Ltd +# license : OpenSSL and SSLeay Licenses; see accompanying LICENSE file + +./: {*/ -build/} -- cgit v1.1