aboutsummaryrefslogtreecommitdiff
path: root/tests/CMakeLists.txt
AgeCommit message (Collapse)AuthorFilesLines
2018-02-04cmake: Build ssh_server_fuzzer if enabledAndreas Schneider1-0/+4
Fixes T67 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-01-10tests: Move torture keys to own fileAndreas Schneider1-4/+8
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-01-10tests: Move helper functions to a common fileAndreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2017-12-15tests: Temporarily build chroot_wrapperJakub Jelen1-1/+10
2016-03-17cmake: Fix torture buildAndreas Schneider1-1/+3
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-03-17cmake: Try to fix FindArgp moduleAndreas Schneider1-4/+6
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-03-15torture_auth: Add tests for client side certificate authenticationAxel Eppe1-0/+5
- enabled TrustedUserCAKeys option in torture.c - adds a new set of (signed) keys for bob in a separate dir The private key used to generate the certs is included, but not required. Signed-off-by: Axel Eppe <aeppe@google.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-02-03tests: Fix running ssh-agentAndreas Schneider1-1/+10
ssh-agent needs to be executed as the local user and not a fake user or we will not be able to add identies. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-02-03tests: Always start tests as root so we can switch to a userAndreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-18tests: Require pam_wrapper 1.0.1Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-14tests: Turn on PAM support in sshd with pam_wrapperAndreas Schneider1-1/+7
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-14tests: Support other openssh versions ...Andreas Schneider1-0/+8
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-14tests: Add public keys for bobAndreas Schneider1-0/+7
This also allows bob to auth as alice. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-14cmake: Configure nss_wrapper and uid_wrapperAndreas Schneider1-0/+20
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-14cmake: Search for cwrap and sshd.Andreas Schneider1-0/+12
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-09-07cmake: Handle libssh threas library correctlyAndreas Schneider1-2/+2
This should fix the build on Windows and would not install pkg files. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-07-03cmake: Fix zlib include directoryAndreas Schneider1-3/+3
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-06-24cmake: Do not use CMAKE_(SOURCE|BINARY)_DIRDouglas Heriot1-1/+1
2015-05-05tests: Only link against threading library if availableAndreas Schneider1-10/+14
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2014-10-15tests: fix pkd build breakagesJon Simons1-1/+3
Fix a build breakage when '-DWITH_SERVER=OFF' is set: skip building the pkd test for that case. Add some missing includes for the OpenIndiana and FreeBSD builds. Signed-off-by: Jon Simons <jon@jonsimons.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-10-12tests: introduce pkd_helloJon Simons1-0/+2
Introduce a sample public-key testing daemon to the 'pkd' test directory, and add support code for cycling through various combinations of different key exchange, cipher, and MAC algorithms. The goal of the 'pkd_hello' test is to make it easy to test interactions between non-libssh clients and a libssh-server, and to provide a starting point for testing new implementations for key types, ciphers, MACs, and so on. The thinking is that testing a new algorithm should be as simple as adding a new line for it in the PKDTESTS_* lists. Macros are used to generate the tests and helper functions for a couple of clients -- here, OpenSSH and dropbear are included for the first cut. If binaries are found for these clients, their test lists will be enabled; when binaries are not found for a given client, those tests are skipped. Tests are run in one large batch by default, but can also be run individually to help with tracking down things like signature bugs that may take many iterations to reproduce. Each test logs its stdout and stderr to its own file, which is cleaned up when a test succeeds. For failures, those logs can be combined with verbose libssh output from pkd itself to start debugging things. Some example usages: pkd_hello Run all tests with default number of iterations. pkd_hello --list List available individual test names. pkd_hello -i 1000 -t torture_pkd_openssh_ecdsa_256_ecdh_sha2_nistp256 Run only the torture_pkd_openssh_ecdsa_256_ecdh_sha2_nistp256 testcase 1000 times. pkd_hello -v -v -v -v -e -o Run all tests with maximum libssh and pkd logging. Included in the tests are passes for all existing kex, cipher, and MAC algorithms. BUG: https://red.libssh.org/issues/144 Signed-off-by: Jon Simons <jon@jonsimons.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-02-02build: fix cmake bug introduced yesterdayAris Adamantiadis1-3/+3
Compilation failed on OSX because of the missing OR OSX
2014-02-01tests: fix compilation on OSX (libargp detection)Aris Adamantiadis1-1/+1
2012-10-07test: Use cmocka instead of cmockery.Andreas Schneider1-3/+3
cmocka is the successor of cmockery. http://git.cryptomilk.org/projects/cmocka.git/
2012-02-08cmake: Update FindCMokery.Andreas Schneider1-1/+1
2011-08-13cmake: Check for argp library only on bsd and solaris.Andreas Schneider1-1/+3
2011-01-13Replaced argp support for platforms that support itAris Adamantiadis1-1/+4
Argp is really useful, but it's not mandatory.
2010-12-29cmake: Added include and library deps to torture.Andreas Schneider1-2/+12
2010-12-29cmake: Fixed test includes and libraries.Andreas Schneider1-4/+4
2010-12-29build: Fixed include directories for torture lib.Andreas Schneider1-2/+1
2010-12-28tests: Start to migrate tests to cmockery.Andreas Schneider1-7/+2
https://code.google.com/p/cmockery/wiki/Cmockery_Unit_Testing_Framework
2010-12-28Moved benchmarks to the tests/ directoryAris Adamantiadis1-0/+5
2010-09-29build: Fixed the unit test build.Andreas Schneider1-0/+1
2010-09-08build: Make sure to link against all required thread libraries.Andreas Schneider1-1/+2
2010-09-08build: Improve the check for argp.Andreas Schneider1-2/+2
2010-09-06threads: Build a libssh threading library.Andreas Schneider1-1/+7
2010-09-03build: Added support to find argp on BSD.Andreas Schneider1-1/+5
2010-06-03tests: Move client tests to a seperate directory.Andreas Schneider1-0/+3
Tests which require a running sshd should go to tests/client.
2010-03-04Fixed linking of the tests.Andreas Schneider1-2/+2
2010-03-02Fixed unit testing.Andreas Schneider1-1/+1
2010-03-02Added unit testing support using check.Andreas Schneider1-0/+19