X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.git;a=blobdiff_plain;f=libeap%2Ftests%2FMakefile;h=782396a377ceadd08b584b8b4177992cf443b607;hp=210a1b4d789f2368449f4448f7338e57c6937ced;hb=4f319dde67a76fe0aaf33f6d2788968012584ada;hpb=ed09b5e64dd485851310307979d5eed14678087b diff --git a/libeap/tests/Makefile b/libeap/tests/Makefile index 210a1b4..782396a 100644 --- a/libeap/tests/Makefile +++ b/libeap/tests/Makefile @@ -1,5 +1,7 @@ -TESTS=test-base64 test-md4 test-md5 test-milenage test-ms_funcs test-sha1 \ - test-sha256 test-aes test-asn1 test-x509 test-x509v3 test-list +TESTS=test-base64 test-md4 test-milenage \ + test-rsa-sig-ver \ + test-sha1 \ + test-sha256 test-aes test-asn1 test-x509 test-x509v3 test-list test-rc4 all: $(TESTS) @@ -26,6 +28,9 @@ DLIBS = ../src/crypto/libcrypto.a \ LIBS = $(SLIBS) $(DLIBS) LLIBS = -Wl,--start-group $(DLIBS) -Wl,--end-group $(SLIBS) +# glibc < 2.17 needs -lrt for clock_gettime() +LLIBS += -lrt + ../src/utils/libutils.a: $(MAKE) -C ../src/utils @@ -37,34 +42,37 @@ LLIBS = -Wl,--start-group $(DLIBS) -Wl,--end-group $(SLIBS) test-aes: test-aes.o $(LIBS) - $(LDO) $(LDFLAGS) -o $@ $^ + $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS) test-asn1: test-asn1.o $(LIBS) - $(LDO) $(LDFLAGS) -o $@ $^ + $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS) test-base64: test-base64.o $(LIBS) - $(LDO) $(LDFLAGS) -o $@ $^ + $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS) + +test-https: test-https.o $(LIBS) + $(LDO) $(LDFLAGS) -o $@ $< $(LLIBS) test-list: test-list.o $(LIBS) - $(LDO) $(LDFLAGS) -o $@ $^ + $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS) test-md4: test-md4.o $(LIBS) - $(LDO) $(LDFLAGS) -o $@ $^ - -test-md5: test-md5.o $(LIBS) - $(LDO) $(LDFLAGS) -o $@ $^ + $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS) test-milenage: test-milenage.o $(LIBS) - $(LDO) $(LDFLAGS) -o $@ $^ + $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS) + +test-rc4: test-rc4.o $(LIBS) + $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS) -test-ms_funcs: test-ms_funcs.o $(LIBS) - $(LDO) $(LDFLAGS) -o $@ $^ +test-rsa-sig-ver: test-rsa-sig-ver.o $(LIBS) + $(LDO) $(LDFLAGS) -o $@ $< $(LLIBS) test-sha1: test-sha1.o $(LIBS) - $(LDO) $(LDFLAGS) -o $@ $^ + $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS) test-sha256: test-sha256.o $(LIBS) - $(LDO) $(LDFLAGS) -o $@ $^ + $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS) test-x509: test-x509.o $(LIBS) $(LDO) $(LDFLAGS) -o $@ $< $(LLIBS) @@ -77,8 +85,8 @@ run-tests: $(TESTS) ./test-aes ./test-list ./test-md4 - ./test-md5 ./test-milenage + ./test-rsa-sig-ver ./test-sha1 ./test-sha256 @echo @@ -87,6 +95,7 @@ run-tests: $(TESTS) clean: $(MAKE) -C ../src clean rm -f $(TESTS) *~ *.o *.d + rm -f test-https rm -f test_x509v3_nist.out.* rm -f test_x509v3_nist2.out.*