#!/bin/bash
set -e

endian=$(dpkg-architecture -qDEB_HOST_ARCH_ENDIAN)
if [ "${endian}" != "little" ]; then
  echo "Skipping test on ${endian}-endian archs"
  exit 0
fi

outfile=libc_s7.so

rm -f "${outfile}" || true
echo | snd.nox 2>&1
if ! [ -e "${outfile}" ]; then
	echo "'${outfile}' was not produced" 1>&2
	exit 1
fi
