Move MD4 test from wpa_supplicant/tests into tests
authorJouni Malinen <j@w1.fi>
Sat, 5 Dec 2009 20:11:50 +0000 (22:11 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 5 Dec 2009 20:11:50 +0000 (22:11 +0200)
tests/.gitignore
tests/Makefile
tests/test-md4.c [moved from wpa_supplicant/tests/test_md4.c with 100% similarity]
wpa_supplicant/Makefile

index d5e1318..460b76c 100644 (file)
@@ -1,2 +1,3 @@
 test-base64
+test-md4
 test-milenage
index eb5b0ee..381998e 100644 (file)
@@ -1,4 +1,4 @@
-TESTS=test-base64 test-milenage
+TESTS=test-base64 test-md4 test-milenage
 
 all: $(TESTS)
 
@@ -32,6 +32,8 @@ BASE64_OBJS=test-base64.o \
 test-base64: $(BASE64_OBJS)
        $(LDO) $(LDFLAGS) -o $@ $(BASE64_OBJS)
 
+test-md4: test-md4.o $(LIBS)
+       $(LDO) $(LDFLAGS) -o $@ $^
 
 MILENAGE_OBJS=test-milenage.o \
        $(LIBS)
@@ -41,6 +43,7 @@ test-milenage: $(MILENAGE_OBJS)
 
 
 run-tests: $(TESTS)
+       ./test-md4
        ./test-milenage
 
 clean:
index abd2076..79da19c 100644 (file)
@@ -1363,19 +1363,13 @@ test-eap_sim_common: $(TEST_EAP_SIM_COMMON_OBJS)
        ./test-eap_sim_common
        rm test-eap_sim_common
 
-TEST_MD4_OBJS = ../src/crypto/md4-internal.o tests/test_md4.o #../src/crypto/crypto_openssl.o
-test-md4: $(TEST_MD4_OBJS)
-       $(LDO) $(LDFLAGS) -o $@ $(TEST_MD4_OBJS) $(LIBS)
-       ./test-md4
-       rm test-md4
-
 TEST_MD5_OBJS = $(MD5OBJS) tests/test_md5.o #../src/crypto/crypto_openssl.o
 test-md5: $(TEST_MD5_OBJS)
        $(LDO) $(LDFLAGS) -o $@ $(TEST_MD5_OBJS) $(LIBS)
        ./test-md5
        rm test-md5
 
-tests: test-ms_funcs test-sha1 test-aes test-eap_sim_common test-md4 test-md5
+tests: test-ms_funcs test-sha1 test-aes test-eap_sim_common test-md5
 
 clean:
        $(MAKE) -C ../src clean