Jouni Malinen
4d7d61b689
tests: Fix wait duration
...
Signed-hostap: Jouni Malinen <j@w1.fi>
2013-03-16 11:21:22 +02:00
Jouni Malinen
89ffe06d68
tests: Do not hide error return when using run-all.sh
...
Signed-hostap: Jouni Malinen <j@w1.fi>
2013-03-09 23:29:22 +02:00
Jouni Malinen
2a4291ffdc
tests: Register test cases automatically from test_p2p_*.py
...
This removes need for editing run-p2p-tests.py whenever new test files
are added.
Signed-hostap: Jouni Malinen <j@w1.fi>
2013-03-09 23:19:59 +02:00
Jouni Malinen
823d572f99
tests: Add a script for running all the automated tests
...
Signed-hostap: Jouni Malinen <j@w1.fi>
2013-03-09 21:40:31 +02:00
Jouni Malinen
07a2e61b43
tests: Use wlantest to validate TDLS behavior
...
Signed-hostap: Jouni Malinen <j@w1.fi>
2013-03-09 19:01:56 +02:00
Jouni Malinen
e5774e1888
tests: Reset devices based on each test
...
Make sure the devices are in known state before starting each test case.
Signed-hostap: Jouni Malinen <j@w1.fi>
2013-03-09 19:00:57 +02:00
Jouni Malinen
7cb08cdbd6
tests: Add a test case for using TDLS in a P2P group
...
Signed-hostap: Jouni Malinen <j@w1.fi>
2013-03-09 18:24:32 +02:00
Jouni Malinen
78ebbf0916
tests: Add autogo test with two clients
...
Signed-hostap: Jouni Malinen <j@w1.fi>
2013-03-09 17:51:22 +02:00
Jouni Malinen
8b2b687eb8
tests: Start wlantest on hwsim0
...
This is in preparation for using wlantest to verify correct behavior in
various test cases.
Signed-hostap: Jouni Malinen <j@w1.fi>
2013-03-09 17:39:11 +02:00
Jouni Malinen
f3f8ee882f
tests: Add support for separate P2P group interfaces
...
Signed-hostap: Jouni Malinen <j@w1.fi>
2013-03-09 17:34:08 +02:00
Jouni Malinen
9e7308be40
tests: Reset device state at the end of full test run
...
Signed-hostap: Jouni Malinen <j@w1.fi>
2013-03-09 16:34:20 +02:00
Jouni Malinen
4ea8d3b5cf
tests: Add autonomous GO testing
...
Signed-hostap: Jouni Malinen <j@w1.fi>
2013-03-09 16:30:25 +02:00
Jouni Malinen
dd34860dcd
tests: Allow selected tests to be specified
...
Command line parameter to run-p2p-tests.py can now be used to select
which test case is run instead of always running all test cases.
Signed-hostap: Jouni Malinen <j@w1.fi>
2013-03-09 16:07:01 +02:00
Jouni Malinen
caf518a743
tests: Add GO Negotiation provisioning method validation
...
Signed-hostap: Jouni Malinen <j@w1.fi>
2013-03-09 16:07:01 +02:00
Jouni Malinen
f7b1a75036
tests: Validate GO Negotiation status code
...
Signed-hostap: Jouni Malinen <j@w1.fi>
2013-03-09 16:07:01 +02:00
Jouni Malinen
809079d3ea
tests: GO Negotiation with both devices using GO intent 15
...
Signed-hostap: Jouni Malinen <j@w1.fi>
2013-03-09 16:07:01 +02:00
Jouni Malinen
c68f9a61c6
tests: Report group formation results as a dict
...
Signed-hostap: Jouni Malinen <j@w1.fi>
2013-03-09 16:07:01 +02:00
Jouni Malinen
a311c61dd6
tests: Add test execution mechanism
...
run-p2p-tests.py can now be used to run all P2P test cases. The
actual test cases are defined in test_p2p_*.py files.
Signed-hostap: Jouni Malinen <j@w1.fi>
2013-03-02 12:55:07 +02:00
Jouni Malinen
731e60f5c5
tests: Add start/stop scripts and configuration files
...
Signed-hostap: Jouni Malinen <j@w1.fi>
2013-03-02 11:39:54 +02:00
Jouni Malinen
3eb29b7b47
tests: Check connectivity in the P2P group
...
Use hwsim_test to verify that the formed group has working data
connectivity.
Signed-hostap: Jouni Malinen <j@w1.fi>
2013-03-02 11:38:56 +02:00
Jouni Malinen
1ae73b03be
Add a starting point for mac80211_hwsim-based testing
...
This will hopefully grow over time to become a much more complete
testing mechanism that uses mac80211_hwsim to verify various
wpa_supplicant and hostapd functions automatically.
Signed-hostap: Jouni Malinen <j@w1.fi>
2013-03-02 01:05:03 +02:00
Jouni Malinen
565bb65d5c
Fix test-{md5,sha1} builds
...
These need to include the libraries to fix aliasing_hide_typecast()
in md5-internal.c.
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
2013-02-28 16:34:08 +02:00
Jouni Malinen
77b2c81275
Add aes_gmac() as a wrapper for AES GMAC operations using GCM
...
This is otherwise identical to aes_gcm_ae() but does not use the
plain/crypt pointers since no data is encrypted.
Signed-hostap: Jouni Malinen <j@w1.fi>
2012-09-09 13:37:50 +03:00
Jouni Malinen
d140db6adf
Add support for using 192-bit and 256-bit keys with AES-GCM
...
This adds 192-bit and 256-bit key support to the internal AES
implementation and extends the AES-GCM functions to accept key length to
enable longer AES key use.
Signed-hostap: Jouni Malinen <j@w1.fi>
2012-09-09 13:30:51 +03:00
Jouni Malinen
af0963fab4
Support arbitrary IV length with AES-GCM
...
Signed-hostap: Jouni Malinen <j@w1.fi>
2012-09-09 00:49:54 +03:00
Jouni Malinen
c2372d7cf0
Add AES-GCM test vectors from gcm-spec.pdf
...
Signed-hostap: Jouni Malinen <j@w1.fi>
2012-09-09 00:25:54 +03:00
Jouni Malinen
0d7773b63f
Add routines for encoding/decoding printf escaping mechanism
...
This can be used to build ASCII strings from binary data that is
more likely to use ASCII (i.e., text format is more natural
option than hexdump, but there is possibility of some non-ASCII
characters).
Signed-hostap: Jouni Malinen <j@w1.fi>
2012-08-07 13:30:13 +03:00
Jouni Malinen
0f3d578efc
Remove the GPL notification from files contributed by Jouni Malinen
...
Remove the GPL notification text from the files that were
initially contributed by myself.
Signed-hostap: Jouni Malinen <j@w1.fi>
2012-02-11 19:39:36 +02:00
Jouni Malinen
b87346c41a
Remove test-https on "make clean"
...
This is not included in the TESTS list, but should be removed anyway.
Signed-hostap: Jouni Malinen <j@w1.fi>
2012-01-01 19:09:18 +02:00
Jouni Malinen
cd52acec85
Rename tls_prf() to tls_prf_sha1_md5()
...
Prepare for multiple TLS PRF functions by renaming the SHA1+MD5 based
TLS PRF function to more specific name and add tls_prf() within the
internal TLS implementation as a wrapper for this for now.
Signed-hostap: Jouni Malinen <j@w1.fi>
2011-11-27 21:27:01 +02:00
Jouni Malinen
b32a8d1dfe
test-https: Fix memory leaks in TLS processing
...
Signed-hostap: Jouni Malinen <j@w1.fi>
2011-11-27 18:33:11 +02:00
Jouni Malinen
f551fa8d50
Add test program for RC4 (test vectors from RFC 6229)
...
Signed-hostap: Jouni Malinen <j@w1.fi>
2011-11-24 20:54:20 +02:00
Jouni Malinen
d10b13982d
Add test-https for testing internal TLS client functionality
...
This tool can be used to test the internal TLS client implementation
against HTTPS servers.
Signed-hostap: Jouni Malinen <j@w1.fi>
2011-11-13 10:49:27 +02:00
Jouni Malinen
717cc12f60
Fix test-x509v3 build
...
Signed-hostap: Jouni Malinen <j@w1.fi>
2011-11-04 22:10:54 +02:00
Jouni Malinen
8d806cc2af
test-sha1: Add test vectors from RFC 6070
...
The test with very large iterations count is commented out since it
takes quite long to derive (it does pass, though). In addition, the
last test vector is commented out since pbkdf2_sha1() does not support
arbitrary binary passphrases (\0 inside the string).
2011-01-10 20:41:04 +02:00
Jouni Malinen
dacf478352
Add generic doubly-linked list implementation
2009-12-19 13:43:25 +02:00
Jouni Malinen
655702f38d
Move test_x509v3 into the new tests subdirectory
2009-12-06 18:10:52 +02:00
Jouni Malinen
0bc377fa93
Resolve circular library references with --start-group
...
src/crypto/libcrypto.a and src/tls/libtls.a have circular references
and will need special handling with the linker at least for the time
being. This could be cleaned up eventually, but for now, provide a
mechanism to get the programs linked.
2009-12-06 17:18:28 +02:00
Jouni Malinen
ab7ddc74ad
Move asn1_test.c into tests subdirectory and split it in two
...
The new test-asn1 and test-x509 tools are built using libraries
from src/{utils,crypto,tls}. Currently, cross dependencies between
crypto and tls are still preventing the test-x509 from being linked
properly.
2009-12-06 16:45:36 +02:00
Jouni Malinen
1767f7c117
Resolve compiler warnings in the test programs
2009-12-05 22:32:45 +02:00
Jouni Malinen
f8cf3ce6a6
Move more tests from wpa_supplicant/tests into tests
2009-12-05 22:25:32 +02:00
Jouni Malinen
c7ab5122a7
Use simpler make rules for test programs
2009-12-05 22:14:55 +02:00
Jouni Malinen
e280cf6693
Get rid of some compiler warnings
2009-12-05 22:13:33 +02:00
Jouni Malinen
668562d5fb
Move MD4 test from wpa_supplicant/tests into tests
2009-12-05 22:11:50 +02:00
Jouni Malinen
631afd993f
Add rules for building src/crypto as a library
...
For now, this is hardcoded to support only the internal crypto
implementation.
2009-12-05 22:03:46 +02:00
Jouni Malinen
841b52b403
Include needed header files to avoid compiler warnings
2009-12-05 21:40:44 +02:00
Jouni Malinen
6a230ba274
Add build rules for building a library from src/utils files
...
This is an initial step on providing an alternative build system that
uses libraries from src subdirectories.
2009-12-05 21:39:41 +02:00
Jouni Malinen
953f83439b
Move Milenage test code into the new tests directory
2009-12-05 21:14:08 +02:00
Jouni Malinen
8ad733d5ea
Use auto-generated dependency files and clean them
2009-12-05 20:44:12 +02:00
Jouni Malinen
1801bd7fae
Move base64 test code into a new tests subdirectory
2009-12-05 20:43:07 +02:00