P2P: Verify that forced channel is suitable for autonomous GO
[libeap.git] / tests / Makefile
index 7c0a6ff..210a1b4 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-sha256 test-aes test-asn1 test-x509 test-x509v3 test-list
 
 all: $(TESTS)
 
@@ -18,8 +18,13 @@ endif
 CFLAGS += -I../src
 CFLAGS += -I../src/utils
 
-LIBS = ../src/utils/libutils.a \
-       ../src/crypto/libcrypto.a
+SLIBS = ../src/utils/libutils.a
+
+DLIBS = ../src/crypto/libcrypto.a \
+       ../src/tls/libtls.a
+
+LIBS = $(SLIBS) $(DLIBS)
+LLIBS = -Wl,--start-group $(DLIBS) -Wl,--end-group $(SLIBS)
 
 ../src/utils/libutils.a:
        $(MAKE) -C ../src/utils
@@ -27,13 +32,22 @@ 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 $@ $^
 
+test-list: test-list.o $(LIBS)
+       $(LDO) $(LDFLAGS) -o $@ $^
+
 test-md4: test-md4.o $(LIBS)
        $(LDO) $(LDFLAGS) -o $@ $^
 
@@ -52,9 +66,16 @@ test-sha1: test-sha1.o $(LIBS)
 test-sha256: test-sha256.o $(LIBS)
        $(LDO) $(LDFLAGS) -o $@ $^
 
+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
+       ./test-list
        ./test-md4
        ./test-md5
        ./test-milenage
@@ -66,5 +87,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)