xref: /freebsd/tools/test/stress2/misc/avx_sig.sh (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1#!/bin/sh
2
3# Test AVX context integrity under ctx switches and signals (amd64)
4
5src=/usr/src/tools/test/avx_sig/avx_sig.c
6[ -f $src ] || exit 0
7[ `uname -p` != "amd64" ] && exit 0
8
9cd /tmp
10cc -Wall -Wextra -O -g -o avx_sig $src -lpthread || exit 1
11
12timeout 1m /tmp/avx_sig; s=$?
13[ $s -eq 124 ] && s=0
14
15rm /tmp/avx_sig
16exit $s
17