#!/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 fgrep -q '[21] .dynbss.rel.ro' $t/log fgrep -q '[24] .dynbss' $t/log fgrep -q '00000000002021e0 100 OBJECT GLOBAL DEFAULT 21 readonly' $t/log fgrep -q '0000000000203040 100 OBJECT GLOBAL DEFAULT 24 readwrite' $t/log echo OK