diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-10-28 18:43:57 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-10-28 18:43:57 +0200 |
commit | e65912f8b2a6fa966b1ba45360070cf9f25568b4 (patch) | |
tree | 7fd84c87041f86ba24c03cacd0aa0c656ef88d33 /test/crypt | |
parent | 7988979a722b4cdf287b2093956a76a3f19b9897 (diff) |
rework most tests to work as standalone package
Diffstat (limited to 'test/crypt')
-rw-r--r-- | test/crypt/Makefile.in | 9 | ||||
-rw-r--r-- | test/crypt/sha256c-test.c | 3 | ||||
-rw-r--r-- | test/crypt/sha512c-test.c | 3 |
3 files changed, 7 insertions, 8 deletions
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; } |