kinichiro
02e1cc4df1
fix ld warning "attempted multiple inclusion of file" on Solaris
...
- To avoid ld warning on Solaris, use abs_top_builddir in Makefile.am
2016-04-21 16:12:47 +09:00
Brent Cook
34bf322e6e
Land #184 , execute tests that require srcdir environment variable with cmake
2016-04-09 11:49:53 -05:00
kinichiro
cf45f2bdfd
execute tests that require srcdir environment variable with cmake
...
- uncomment procedures for aeadtest, evptest, pq_test, ssltest, testdsa and testrsa
- add set_tests_properties() for setting environment variable srcdir
- tweak openssl path in ssltest.sh, testdsa.sh, testenc.sh and testrsa.sh
2016-04-05 10:02:35 +09:00
kinichiro
3207606f11
fix cmake on HP-UX
...
- CMakeLists.txt
* add OS specific compiler flags and library
* add checking size of time_t
* add checking memmem()
- tests/CMakeLists.txt
* add if(HAVE_MEMMEM) for explicit_bzero
* add checking SMALL_TIME_T for rfc5280time
- crypto/CMakeLists.txt
* add getentropy_hpux.c
- tls/CMakeLists.txt
* fix checking strsep
2016-04-04 14:27:43 +09:00
Brent Cook
d0ff644edc
package pidwraptest.sh script
2016-01-03 21:29:35 -06:00
Brent Cook
2c168b7127
move rfc5280time to rfc5280time_small
...
Having the same name as the executable confuses the driver, and it runs
the wrong thing.
2015-10-18 11:18:23 -05:00
Brent Cook
c8c23ad8e3
make it clear that we skipped 64-bit time_t tests
2015-10-18 10:36:31 -05:00
Brent Cook
c8918dd0be
include warnings about small time_t
2015-10-17 23:32:21 -05:00
Brent Cook
047926e06f
updates for ASN.1 time handling
2015-10-06 06:21:17 -05:00
Brent Cook
53f8663976
add asn1time to cmake tests
2015-09-28 17:49:46 -05:00
Brent Cook
9af6ff9a3a
add asn1time test
2015-09-28 17:33:58 -05:00
Brent Cook
09e535e41d
update path to openssl(1) in testssl wrapper
2015-09-22 08:56:36 -05:00
Brent Cook
4ce5342e86
remove SHA-0 from cmake builds
2015-09-17 05:39:55 -05:00
Brent Cook
92a04bc1ea
SHA-0 is gone, remove test
2015-09-16 02:13:10 -05:00
Brent Cook
eae0e9d3a4
Call the correct script for pidwraptest.sh.
...
This optional test was not reporting the correct results, noticed
retesting against FreeBSD 11-current.
2015-09-16 01:43:59 -05:00
Brent Cook
bcd3b2fde6
more cmake tests
2015-09-12 08:08:25 -05:00
Brent Cook
854f4f69af
add 'nc' to the distribution as an example of libtls client and server
2015-09-12 08:08:24 -05:00
Brent Cook
34bfb6ecb5
add new tests
2015-09-12 05:18:47 -05:00
Brent Cook
b521a76a46
disable current broken cmake tests
2015-07-22 11:42:34 -05:00
Brent Cook
dd0704b176
s/CMakeFiles/CMakeLists/, start porting test scripts
2015-07-22 11:40:16 -05:00
Brent Cook
a9122f74e0
add cmake tests
2015-07-21 22:21:14 -05:00
Brent Cook
b7f699ab34
add cipher_list test
2015-06-29 22:49:37 -05:00
Brent Cook
b9f1b83a79
update for mdc2 removal
2015-06-20 10:40:04 -05:00
Brent Cook
8eec2f485a
use correct binary on native windows builds
2015-06-05 04:50:17 -05:00
Brent Cook
abd0688b18
distcheck fixes
2015-05-06 22:53:28 -05:00
Brent Cook
51bfd4921a
add app tests from regress/usr.bin/openssl
...
These are added directly rather than imported by update.sh since they
require local modifications and its not worth breaking everyone's git
forks yet to import them through cvs2git.
2015-05-06 22:39:32 -05:00
Brent Cook
45065de1ba
rework tests Makefile.am
...
There are so many test exceptions that need handling that it is easier
to simply edit it directly rather than doing autogeneration anymore.
This also puts biotest and pidwraptest behind a new --enable-extratests
option, so they are easy to run but are not enabled by default.
2015-03-21 19:04:54 -05:00
Brent Cook
be5d0cca13
update with latest, add more tests
...
this adds the new bytestring apis and new regression tests
2015-02-06 20:17:31 -06:00
Dmitry Eremin-Solenikov
a270e6a90b
tests/Makefile.am.tpl: remove generated files on distclean
...
Add pidwraptest.txt to DISTCLEANFILES to let it be removed on distclean.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
2014-12-07 18:07:53 -06:00
Brent Cook
96bf8be098
update and mask unit tests when running on win32
...
Update pq_test to ignore changes in whitespace.
Update for new testssl params, specify absolute paths to test binaries.
Fork-based tests do not make sense on Windows.
Disable building biotest, since it is too specific to OpenBSD's behavior
to be useful on other platforms.
2014-12-03 17:02:29 -06:00
Brent Cook
2103690cbf
improve readability of generated Makefile.am files
2014-11-23 08:33:56 -06:00
Brent Cook
0aeb93b9fc
override native arc4random_buf on FreeBSD
...
The FreeBSD-native arc4random_buf implementation falls back to weak
sources of entropy if the sysctl fails. Remove these dangerous fallbacks
by overriding locally.
Unfortunately, pthread_atfork() is broken on FreeBSD (at least 9 and 10)
if a program does not link to -lthr. Callbacks registered with
pthread_atfork() simply fail silently. So, it is not always possible to
detect a PID wraparound. I wish we could do better.
This improves arc4random_buf's safety compared to the native FreeBSD
implementation. Tested on FreeBSD 9 and 10.
ok beck@ deraadt@
2014-11-03 01:19:36 -06:00
Brent Cook
a4cc953911
Improve and simplify function and header detection logic.
...
Simplify autoconf checks by using AC_CHECK_FUNCS/HEADERS.
Clarify some ambiguous dependencies around strnlen/strndup.
Unconditionally enable pidwraptest for all arc4random implementations.
Remove HAVE_VASPRINTF conditional, since asprintf requires vasprintf.
ok @doug
2014-10-30 19:15:11 -05:00
Brent Cook
72c1e56b38
enable -lcrypto -lssl with all test programs directly.
...
This removes the need to specify each one individually.
ok doug@
2014-10-30 10:55:30 -05:00
Brent Cook
eb26e56ba8
undef LIBRESSL_INTERNAL for the pidwrap test.
2014-10-22 13:06:36 -05:00
Brent Cook
e48e4f0e69
prefer - over /dev/stdin for cmp test
2014-07-28 07:26:42 -05:00
Brent Cook
1b62d5e416
remove bash-isms from test scripts
2014-07-28 07:26:27 -05:00
Brent Cook
55d07e70dc
clarify license and origin for pidwraptest
...
The original author clarified the license, so we are fine to ship with
the PID wraparound test. Run it by default if libressl is using the
native arc4random supplied from the OS.
ok deraadt@
2014-07-23 20:10:17 -05:00
Brent Cook
33bc05ca9c
better handle disabled tests and exclude files
...
ok beck@ guenther@
2014-07-21 20:27:14 -05:00
Brent Cook
23dc97f8c2
rename local tests to end in test.c
...
ok beck@ guenther@
2014-07-21 19:54:21 -05:00
Brent Cook
0bc4bdde5f
move fork_rand.sh so it does not get run every time
...
the test takes many minutes to run on an OS with a slow fork() call
ok beck@
2014-07-15 17:22:39 -05:00
Brent Cook
d3746d3a6e
indicate failure to the test harness
...
ok beck@
2014-07-15 17:20:09 -05:00
Brent Cook
477f1f0187
added fork_rand test to check for PID wraparound
...
ok beck@
2014-07-15 16:43:00 -05:00
Brent Cook
2ce79c599b
fix out of tree builds for ssl test
...
ssl tests need to find the openssl binary relative to the build,
not the source, directory
2014-07-10 17:26:22 -05:00
Brent Cook
2b6dbc39ef
initial top-level import of subdirectories
2014-07-10 06:22:54 -05:00