aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Makefile
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-05 19:14:08 (GMT)
committerJouni Malinen <j@w1.fi>2009-12-05 19:14:08 (GMT)
commit953f83439b2f0f22e0a0182de9e9fbc42ce09d13 (patch)
treeea3a2f83dfb03694506c9e29434423c7d44c8759 /tests/Makefile
parent43df4cc2ca684befd9dc08678cb93d2cf8257ca6 (diff)
downloadhostap-953f83439b2f0f22e0a0182de9e9fbc42ce09d13.zip
hostap-953f83439b2f0f22e0a0182de9e9fbc42ce09d13.tar.gz
hostap-953f83439b2f0f22e0a0182de9e9fbc42ce09d13.tar.bz2
Move Milenage test code into the new tests directory
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile25
1 files changed, 23 insertions, 2 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 5422f0d..67570bc 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -1,4 +1,4 @@
-TESTS=test-base64
+TESTS=test-base64 test-milenage
all: $(TESTS)
@@ -15,13 +15,34 @@ CFLAGS = -MMD -O2 -Wall -g
endif
CFLAGS += -I../src
+CFLAGS += -I../src/utils
+OS_OBJS=../src/utils/os_unix.o
-BASE64_OBJS=test-base64.o ../src/utils/base64.o ../src/utils/os_unix.o
+
+BASE64_OBJS=test-base64.o \
+ ../src/utils/base64.o \
+ $(OS_OBJS)
test-base64: $(BASE64_OBJS)
$(LDO) $(LDFLAGS) -o $@ $(BASE64_OBJS)
+
+MILENAGE_OBJS=test-milenage.o \
+ ../src/utils/wpa_debug.o \
+ ../src/crypto/aes-internal.o \
+ ../src/crypto/aes-internal-enc.o \
+ ../src/crypto/aes-encblock.o \
+ ../src/crypto/milenage.o \
+ $(OS_OBJS)
+
+test-milenage: $(MILENAGE_OBJS)
+ $(LDO) $(LDFLAGS) -o $@ $(MILENAGE_OBJS)
+
+
+run-tests: $(TESTS)
+ ./test-milenage
+
clean:
$(MAKE) -C ../src clean
rm -f $(TESTS) *~ *.o *.d