diff options
Diffstat (limited to 'libssl/tests')
-rw-r--r-- | libssl/tests/.gitignore | 8 | ||||
-rw-r--r-- | libssl/tests/basic/buildfile | 7 | ||||
-rw-r--r-- | libssl/tests/basic/driver.c | 17 | ||||
-rw-r--r-- | libssl/tests/basic/testscript | 5 | ||||
-rw-r--r-- | libssl/tests/build/.gitignore | 3 | ||||
-rw-r--r-- | libssl/tests/build/bootstrap.build | 9 | ||||
-rw-r--r-- | libssl/tests/build/root.build | 16 | ||||
-rw-r--r-- | libssl/tests/buildfile | 5 |
8 files changed, 70 insertions, 0 deletions
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 <assert.h> + +#include <openssl/ssl.h> + +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/} |