1#!/usr/bin/ksh 2# 3# 4# This file and its contents are supplied under the terms of the 5# Common Development and Distribution License ("CDDL"), version 1.0. 6# You may only use this file in accordance with the terms of version 7# 1.0 of the CDDL. 8# 9# A full copy of the text of the CDDL should have accompanied this 10# source. A copy of the CDDL is also available via the Internet at 11# http://www.illumos.org/license/CDDL. 12# 13 14# 15# Copyright 2026 Oxide Computer Company 16# 17 18# 19# This runs the agent_destroy tests against targets of each data model. 20# 21 22unalias -a 23set -o pipefail 24 25at_arg0=$(basename $0) 26at_dir=$(dirname $0) 27at_prog32="$at_dir/agent_destroy.32" 28at_prog64="$at_dir/agent_destroy.64" 29at_targ32="$at_dir/agent_target.32" 30at_targ64="$at_dir/agent_target.64" 31at_exit=0 32 33printf "Running 32-bit controller against 32-bit target\n" 34if ! $at_prog32 $at_targ32; then 35 at_exit=1 36fi 37 38printf "\nRunning 64-bit controller against 32-bit target\n" 39if ! $at_prog64 $at_targ32; then 40 at_exit=1 41fi 42 43printf "\nRunning 64-bit controller against 64-bit target\n" 44if ! $at_prog64 $at_targ64; then 45 at_exit=1 46fi 47 48if (( at_exit == 0 )); then 49 printf "All variants passed successfully\n" 50fi 51 52exit $at_exit 53