5739N/A#!/bin/bash
5739N/A# CDDL HEADER START
5739N/A#
5739N/A# The contents of this file are subject to the terms of the
5739N/A# Common Development and Distribution License (the "License").
5739N/A# You may not use this file except in compliance with the License.
5739N/A#
5739N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5739N/A# or http://www.opensolaris.org/os/licensing.
5739N/A# See the License for the specific language governing permissions
5739N/A# and limitations under the License.
5739N/A#
5739N/A# When distributing Covered Code, include this CDDL HEADER in each
5739N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5739N/A# If applicable, add the following below this CDDL HEADER, with the
5739N/A# fields enclosed by brackets "[]" replaced with your own identifying
5739N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5739N/A#
5739N/A# CDDL HEADER END
5739N/A#
5739N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
5739N/A
5739N/A# TODO: save old Kerberos configuration?
5739N/A
5739N/A./setup_testsuite
5739N/A
5739N/Aexport MACH32 MACH64
5739N/Acase `uname -p` in
5739N/A i386)
5739N/A MACH32="i86"
5739N/A MACH64="amd64"
5739N/A ;;
5739N/A
5739N/A sparc) MACH32="sparcv7"
5739N/A MACH64="sparcv9"
5739N/A ;;
5739N/A
5739N/A *) echo "Architecture unknown"
5739N/A exit 1
5739N/A ;;
5739N/Aesac
5739N/A
5739N/A
5739N/ARAW_FILE_BASE=cyrus-sasl.$$
5739N/ARESULTS_FILE=test-cyrus-sasl.$$
5739N/A ./testsuite 2>&1 | tee $RAW_FILE_BASE.64
5739N/A32/testsuite 2>&1 | tee $RAW_FILE_BASE.32
5739N/A
5739N/A
5739N/AEXITVAL=0
5739N/Afor i in 64 32 ; do
5739N/A ./transform-results $RAW_FILE_BASE.$i
5739N/A DIFF=`diff $RESULTS_FILE.$i results.master-all`
5739N/A
5739N/A if [ -n "$DIFF" ] ; then
5739N/A echo "TEST $RESULTS_FILE.$i FAILED"
5739N/A EXITVAL=1
5739N/A fi
5739N/Adone
5739N/Aif (( $EXITVAL == 0 ))
5739N/Athen
5739N/A echo "Test PASSED"
5739N/A exit 0
5739N/Afi
5739N/Aexit 1