aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Makefile
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-06 14:45:36 (GMT)
committerJouni Malinen <j@w1.fi>2009-12-06 14:45:36 (GMT)
commitab7ddc74ad39ab11de2b3082fc78a3549781aa24 (patch)
tree5dbb629b43a63d9cc5f3353fa50eabed5a53448d /tests/Makefile
parent0e574b07f83c0595a71267e273de28c64187b1b6 (diff)
downloadhostap-ab7ddc74ad39ab11de2b3082fc78a3549781aa24.zip
hostap-ab7ddc74ad39ab11de2b3082fc78a3549781aa24.tar.gz
hostap-ab7ddc74ad39ab11de2b3082fc78a3549781aa24.tar.bz2
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.
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 7c0a6ff..b40ff1c 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -1,5 +1,5 @@
TESTS=test-base64 test-md4 test-md5 test-milenage test-ms_funcs test-sha1 \
- test-sha256 test-aes
+ test-sha256 test-aes test-asn1 test-x509
all: $(TESTS)
@@ -19,7 +19,8 @@ CFLAGS += -I../src
CFLAGS += -I../src/utils
LIBS = ../src/utils/libutils.a \
- ../src/crypto/libcrypto.a
+ ../src/crypto/libcrypto.a \
+ ../src/tls/libtls.a
../src/utils/libutils.a:
$(MAKE) -C ../src/utils
@@ -27,10 +28,16 @@ LIBS = ../src/utils/libutils.a \
../src/crypto/libcrypto.a:
$(MAKE) -C ../src/crypto
+../src/tls/libtls.a:
+ $(MAKE) -C ../src/tls
+
test-aes: test-aes.o $(LIBS)
$(LDO) $(LDFLAGS) -o $@ $^
+test-asn1: test-asn1.o $(LIBS)
+ $(LDO) $(LDFLAGS) -o $@ $^
+
test-base64: test-base64.o $(LIBS)
$(LDO) $(LDFLAGS) -o $@ $^
@@ -52,6 +59,9 @@ test-sha1: test-sha1.o $(LIBS)
test-sha256: test-sha256.o $(LIBS)
$(LDO) $(LDFLAGS) -o $@ $^
+test-x509: test-x509.o $(LIBS)
+ $(LDO) $(LDFLAGS) -o $@ $^
+
run-tests: $(TESTS)
./test-aes