summaryrefslogtreecommitdiff
path: root/libssl/tests/basic
diff options
context:
space:
mode:
Diffstat (limited to 'libssl/tests/basic')
-rw-r--r--libssl/tests/basic/buildfile7
-rw-r--r--libssl/tests/basic/driver.c17
-rw-r--r--libssl/tests/basic/testscript5
3 files changed, 29 insertions, 0 deletions
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
+
+$*