xref: /freebsd/tools/test/stress2/misc/avx_sig.sh (revision 8296d2f9a3bf8e68de2f8e3f98f911b9b9542dad)
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