#!/bin/bash set -e cd $(dirname $0) mold=`pwd`/../../mold echo -n "Testing $(basename -s .sh $0) ... " t=$(pwd)/../..//out/test/elf/$(basename -s .sh $0) mkdir -p $t cat < $t/log fgrep -q 'NOTYPE GLOBAL DEFAULT 6 bar' $t/log fgrep -q 'NOTYPE GLOBAL DEFAULT 6 _start' $t/log echo OK