From e65912f8b2a6fa966b1ba45360070cf9f25568b4 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 28 Oct 2016 18:43:57 +0200 Subject: rework most tests to work as standalone package --- test/crypt/Makefile.in | 9 +-------- test/crypt/sha256c-test.c | 3 +++ test/crypt/sha512c-test.c | 3 +++ 3 files changed, 7 insertions(+), 8 deletions(-) (limited to 'test/crypt') diff --git a/test/crypt/Makefile.in b/test/crypt/Makefile.in index f852219..28aeb54 100644 --- a/test/crypt/Makefile.in +++ b/test/crypt/Makefile.in @@ -1,15 +1,8 @@ -# uClibc crypt tests +# uClibc-ng crypt tests # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. EXTRA_LDFLAGS := -lcrypt OPTS_crypt = < crypt.input -ifneq ($(UCLIBC_HAS_SHA512_CRYPT_IMPL),y) -TESTS_DISABLED += sha512c-test -endif -ifneq ($(UCLIBC_HAS_SHA256_CRYPT_IMPL),y) -TESTS_DISABLED += sha256c-test -endif - WRAPPER := env TIMEOUTFACTOR=50 diff --git a/test/crypt/sha256c-test.c b/test/crypt/sha256c-test.c index 357f0d8..5334cc8 100644 --- a/test/crypt/sha256c-test.c +++ b/test/crypt/sha256c-test.c @@ -40,6 +40,8 @@ static int do_test (void) { int result = 0; + +#if __UCLIBC_HAS_SHA256_CRYPT_IMPL__ int i; for (i = 0; i < ntests; ++i) @@ -53,6 +55,7 @@ do_test (void) result = 1; } } +#endif return result; } diff --git a/test/crypt/sha512c-test.c b/test/crypt/sha512c-test.c index c829242..be55b59 100644 --- a/test/crypt/sha512c-test.c +++ b/test/crypt/sha512c-test.c @@ -41,6 +41,8 @@ static int do_test (void) { int result = 0; + +#if __UCLIBC_HAS_SHA512_CRYPT_IMPL__ int i; for (i = 0; i < ntests; ++i) @@ -54,6 +56,7 @@ do_test (void) result = 1; } } +#endif return result; } -- cgit v1.2.3