#!/bin/bash set -e cd $(dirname $0) echo -n "Testing $(basename -s .sh $0) ... " t=$(pwd)/tmp/$(basename -s .sh $0) mkdir -p $t cat < $t/log || false fgrep -q 'relocation R_X86_64_16 against foo out of range' $t/log echo OK