45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens#!/usr/bin/ksh
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens#
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens# This file and its contents are supplied under the terms of the
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens# Common Development and Distribution License ("CDDL"), version 1.0.
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens# You may only use this file in accordance with the terms of version
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens# 1.0 of the CDDL.
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens#
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens# A full copy of the text of the CDDL should have accompanied this
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens# source. A copy of the CDDL is also available via the Internet at
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens# http://www.illumos.org/license/CDDL.
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens#
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens#
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren Kennedy# Copyright (c) 2015, 2016 by Delphix. All rights reserved.
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens#
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens. $STF_SUITE/include/libtest.shlib
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens#
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens# Description:
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens# Run the tests for the Skein hash algorithm.
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens#
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrenslog_assert "Run the tests for the Skein hash algorithm."
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrensfreq=$(get_cpu_freq)
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren Kennedyfor isa in $(isainfo); do
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens log_must $STF_SUITE/tests/functional/checksum/skein_test.$isa $freq
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrensdone
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrenslog_pass "Skein tests passed."