Move test_x509v3 into the new tests subdirectory
authorJouni Malinen <j@w1.fi>
Sun, 6 Dec 2009 16:10:52 +0000 (18:10 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 6 Dec 2009 16:10:52 +0000 (18:10 +0200)
tests/.gitignore
tests/Makefile
tests/test-x509v3.c [moved from wpa_supplicant/tests/test_x509v3.c with 100% similarity]
tests/test_x509v3_nist.sh [moved from wpa_supplicant/tests/test_x509v3_nist.sh with 99% similarity]
tests/test_x509v3_nist2.sh [moved from wpa_supplicant/tests/test_x509v3_nist2.sh with 98% similarity]
wpa_supplicant/Makefile

index 6d6d575..9c64aa6 100644 (file)
@@ -8,3 +8,4 @@ test-ms_funcs
 test-sha1
 test-sha256
 test-x509
+test-x509v3
index 3e46951..dcb9a2d 100644 (file)
@@ -1,5 +1,5 @@
 TESTS=test-base64 test-md4 test-md5 test-milenage test-ms_funcs test-sha1 \
-       test-sha256 test-aes test-asn1 test-x509
+       test-sha256 test-aes test-asn1 test-x509 test-x509v3
 
 all: $(TESTS)
 
@@ -66,6 +66,9 @@ test-sha256: test-sha256.o $(LIBS)
 test-x509: test-x509.o $(LIBS)
        $(LDO) $(LDFLAGS) -o $@ $< $(LLIBS)
 
+test-x509v3: test-x509v3.o $(LIBS)
+       $(LDO) $(LDFLAGS) -o $@ $< $(LLIBS)
+
 
 run-tests: $(TESTS)
        ./test-aes
@@ -80,5 +83,7 @@ run-tests: $(TESTS)
 clean:
        $(MAKE) -C ../src clean
        rm -f $(TESTS) *~ *.o *.d
+       rm -f test_x509v3_nist.out.*
+       rm -f test_x509v3_nist2.out.*
 
 -include $(OBJS:%.o=%.d)
similarity index 99%
rename from wpa_supplicant/tests/test_x509v3_nist.sh
rename to tests/test_x509v3_nist.sh
index c33e362..d3f94bb 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 # X.509 Path Validation Test Suite, Version 1.07
 # http://csrc.nist.gov/pki/testing/x509paths_old.html
@@ -16,7 +16,7 @@ if [ ! -d $TESTS ]; then
     exit 1
 fi
 
-X509TEST="./test_x509v3 -v"
+X509TEST="./test-x509v3 -v"
 TMPOUT=test_x509v3_nist.out
 
 # TODO: add support for validating CRLs
similarity index 98%
rename from wpa_supplicant/tests/test_x509v3_nist2.sh
rename to tests/test_x509v3_nist2.sh
index 0be29b7..572bd9d 100755 (executable)
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
 
 # Public Key Interoperability Test Suite (PKITS)
 # http://csrc.nist.gov/pki/testing/x509paths.html
-# http://csrc.nist.gov/pki/testing/PKITS_data.zip
+# http://csrc.nist.gov/groups/ST/crypto_apps_infra/documents/PKITS_data.zip
 
 if [ -z "$1" ]; then
     echo "usage: $0 <path to root test directory>"
@@ -16,7 +16,7 @@ if [ ! -d $TESTS ]; then
     exit 1
 fi
 
-X509TEST="$PWD/test_x509v3 -v"
+X509TEST="$PWD/test-x509v3 -v"
 TMPOUT="$PWD/test_x509v3_nist2.out"
 
 # TODO: add support for validating CRLs
index 266644e..c38851f 100644 (file)
@@ -1240,15 +1240,6 @@ link_test: $(OBJS) $(OBJS_h) tests/link_test.o
 test_wpa: $(OBJS_wpa) $(OBJS_h)
        $(LDO) $(LDFLAGS) -o test_wpa $(OBJS_wpa) $(LIBS)
 
-OBJSx=tests/test_x509v3.o ../src/tls/asn1.o ../src/tls/x509v3.o \
-       ../src/utils/common.o ../src/utils/wpa_debug.o ../src/utils/os_unix.o \
-       ../src/crypto/crypto_$(CONFIG_CRYPTO).o \
-       $(MD5OBJS) $(SHA1OBJS) $(AESOBJS) \
-       ../src/crypto/rc4.o $(DESOBJS) $(SHA256OBJS) \
-       ../src/tls/bignum.o ../src/tls/rsa.o
-test_x509v3: $(OBJSx)
-       $(LDO) $(LDFLAGS) -o test_x509v3 $(OBJSx)
-
 win_if_list: win_if_list.c
        $(LDO) $(LDFLAGS) -o $@ win_if_list.c $(CFLAGS) $(LIBS_w)