Klas Lindfors
fd86d9596b
tests: only run mysql tests if HAVE_MYSQL is defined
2021-04-09 13:05:33 +02:00
Klas Lindfors
193a79dfc9
tests: add a define for running the mysql tests
...
they require a correctly set up server and all
2021-04-09 11:01:52 +02:00
Klas Lindfors
60eba4fbac
sql: test failure cases
2021-04-08 10:53:02 +02:00
Klas Lindfors
23fb773279
sql: add test for mysql config
2021-04-06 14:28:51 +02:00
Tero Paloheimo
9341f3477a
Fix compiler warning in pam_test.c
...
Compiler cannot find the declaration for pm_sm_authenticate and prints
the following warning (split due to long line):
pam_test.c:184:10: warning: implicit declaration of function
‘pam_sm_authenticate’; did you mean ‘pam_authenticate’?
[-Wimplicit-function-declaration]
2018-10-24 16:29:11 +03:00
Karol Babioch
998ee88aa5
tests: Fix compiler warnings due to wrong pointer casts
...
This fixes a couple of compiler warnings due to wrong pointer casts in regards
to the pamh structure, which is a bit of a hackery way to access the test data.
2018-04-09 17:21:09 +02:00
Klas Lindfors
2d312da9d5
add tests for use_first_pass
2017-03-06 10:10:56 +01:00
Mickaël Thomas
d048a4a6e2
Add test for LDAP entries with empty token list
2017-02-27 00:21:15 +01:00
Klas Lindfors
4fb0be3870
add tests for empty OTP validation
...
also fix around so ldap case checks with length of the authorized token,
not the length of the passed in id.
2016-06-13 11:08:09 +02:00
Klas Lindfors
9c8553f297
setup travis to do multi-os builds
2015-10-08 10:24:07 +02:00
Klas Lindfors
35c8acce6e
simple ldap filter test
2015-03-04 11:12:53 +01:00
Klas Lindfors
686a47accf
drop authfile for ldap_cfg
2015-03-04 10:24:46 +01:00
Klas Lindfors
eca150344b
make sure out-of-tree builds work
2015-02-12 14:10:54 +01:00
Klas Lindfors
0b0c8d80aa
strdup() the OTP returned
2015-01-21 08:58:30 +01:00
Klas Lindfors
e7fadcf073
only run the ldap "server" if we're compiling with ldap
2015-01-20 09:21:38 +01:00
Klas Lindfors
4ab78f54b5
add a test for authfile user with two ok public ids
2015-01-20 09:17:45 +01:00
Klas Lindfors
c5489c93c5
add a second successful ldap test
...
with two valid yubiKeyId
2015-01-20 09:15:37 +01:00
Klas Lindfors
c2eec8d69a
use higher ports and put them in constants
2015-01-20 08:56:14 +01:00
Klas Lindfors
e9b34b3924
fixup some warnings in test
2015-01-19 21:17:42 +01:00
Klas Lindfors
5d7e0030fa
add a mocked ldap server and ldap tests
...
relates #44
2015-01-19 21:04:11 +01:00
Klas Lindfors
086bfbb3f7
add a test for wrong otp and small fixup to mock server
2015-01-19 10:37:51 +01:00
Klas Lindfors
9038130e88
drop id from data struct and use index in array
2015-01-19 10:24:30 +01:00
Klas Lindfors
818fe93f3d
pass port correctly
2015-01-19 10:24:13 +01:00
Klas Lindfors
bcfee637af
add test for wrong otp for user
2015-01-19 10:12:55 +01:00
Klas Lindfors
196a872a00
add test for failure-case
2015-01-19 10:05:23 +01:00
Klas Lindfors
95db3d4246
add a second child and mock server
2015-01-19 09:59:43 +01:00
Klas Lindfors
ca7088525f
fix some warnings
2015-01-19 09:59:43 +01:00
Klas Lindfors
7a4d812925
restructure the test some
2015-01-19 09:51:38 +01:00
Klas Lindfors
75fc2b909d
make the recent pam_test more modularised and generic
2015-01-19 09:50:00 +01:00
Klas Lindfors
aae9a9add5
calculate size of cfg array
2015-01-19 09:28:55 +01:00
Klas Lindfors
8366721fd1
test a bit more and switch the mock to perl
2015-01-16 15:24:45 +01:00
Klas Lindfors
286de92cd3
test an OK authentication
...
add a simple http server in bash that validates the OTP
2015-01-16 11:32:29 +01:00
Klas Lindfors
5b17a1931e
add first step of tests calling the actual module
2015-01-16 10:20:10 +01:00