Changeset View
Changeset View
Standalone View
Standalone View
crypto/libcrypto/t_ciphers.sh
Property | Old Value | New Value |
---|---|---|
File Mode | 100755 | 100644 |
# $NetBSD: t_ciphers.sh,v 1.4 2012/07/14 16:04:06 spz Exp $ | # $NetBSD: t_ciphers.sh,v 1.8 2019/03/27 21:14:54 gson Exp $ | ||||
# | # | ||||
# Copyright (c) 2008, 2009, 2010 The NetBSD Foundation, Inc. | # Copyright (c) 2008, 2009, 2010 The NetBSD Foundation, Inc. | ||||
# All rights reserved. | # All rights reserved. | ||||
# | # | ||||
# Redistribution and use in source and binary forms, with or without | # Redistribution and use in source and binary forms, with or without | ||||
# modification, are permitted provided that the following conditions | # modification, are permitted provided that the following conditions | ||||
# are met: | # are met: | ||||
# 1. Redistributions of source code must retain the above copyright | # 1. Redistributions of source code must retain the above copyright | ||||
▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
atf_check -o ignore -e ignore "$(atf_get_srcdir)/h_destest" | atf_check -o ignore -e ignore "$(atf_get_srcdir)/h_destest" | ||||
} | } | ||||
atf_test_case evp | atf_test_case evp | ||||
evp_head() | evp_head() | ||||
{ | { | ||||
atf_set "descr" "Checks EVP cipher" | atf_set "descr" "Checks EVP cipher" | ||||
atf_set "timeout" "1200" | |||||
} | } | ||||
evp_body() | evp_body() | ||||
{ | { | ||||
atf_check -o ignore -e ignore $(atf_get_srcdir)/h_evp_test $(atf_get_srcdir)/evptests.txt | for i in $(atf_get_srcdir)/evp*.txt; do | ||||
atf_check -o ignore -e ignore $(atf_get_srcdir)/h_evp_test $i | |||||
done | |||||
} | } | ||||
atf_test_case rc2 | atf_test_case rc2 | ||||
rc2_head() | rc2_head() | ||||
{ | { | ||||
atf_set "descr" "Checks RC2 cipher" | atf_set "descr" "Checks RC2 cipher" | ||||
} | } | ||||
rc2_body() | rc2_body() | ||||
Show All 23 Lines | |||||
atf_test_case rc5 | atf_test_case rc5 | ||||
rc5_head() | rc5_head() | ||||
{ | { | ||||
atf_set "descr" "Checks RC5 cipher" | atf_set "descr" "Checks RC5 cipher" | ||||
} | } | ||||
rc5_body() | rc5_body() | ||||
{ | { | ||||
[ -x "$(atf_get_srcdir)/h_rc5test" ] \ | |||||
|| atf_skip "RC5 support not available; system built" \ | |||||
"with MKCRYPTO_RC5=no" | |||||
atf_check -o ignore -e ignore "$(atf_get_srcdir)/h_rc5test" | atf_check -o ignore -e ignore "$(atf_get_srcdir)/h_rc5test" | ||||
} | } | ||||
atf_init_test_cases() | atf_init_test_cases() | ||||
{ | { | ||||
atf_add_test_case bf | atf_add_test_case bf | ||||
atf_add_test_case cast | atf_add_test_case cast | ||||
atf_add_test_case des | atf_add_test_case des | ||||
atf_add_test_case evp | atf_add_test_case evp | ||||
atf_add_test_case rc2 | atf_add_test_case rc2 | ||||
atf_add_test_case rc4 | atf_add_test_case rc4 | ||||
atf_add_test_case idea | atf_add_test_case idea | ||||
atf_add_test_case rc5 | atf_add_test_case rc5 | ||||
} | } |