Add test.
authorBen Laurie <ben@openssl.org>
Sun, 31 Aug 2003 08:52:39 +0000 (08:52 +0000)
committerBen Laurie <ben@openssl.org>
Sun, 31 Aug 2003 08:52:39 +0000 (08:52 +0000)
fips/sha1/Makefile.ssl

index 4ea1e4bad32792d71680c0ef2ce8a5ab8f878cb4..373d11a5f30d6fda9722c7027fb814fc2d1eebe9 100644 (file)
@@ -73,6 +73,17 @@ tags:
 
 tests:
 
+top_fips_sha1test:
+       (cd ../..; $(MAKE) DIRS=fips FDIRS=$(DIR) TARGET=fips_sha1test sub_target)
+
+fips_sha1test: fips_sha1test.o ../../libcrypto.a
+       $(CC) $(CFLAGS) -o fips_sha1test fips_sha1test.o ../../libcrypto.a
+
+fips_test: top_fips_sha1test
+       -rm -rf ../testvectors/sha1/rsp
+       mkdir ../testvectors/sha1/rsp
+       ./fips_sha1test ../testvectors/sha1/req/sha.req  > ../testvectors/sha1/rsp/sha.rsp
+
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff