strace/tests/strace-V.test

18 lines
296 B
Plaintext
Raw Normal View History

#!/bin/sh
# Check -V option.
. "${srcdir=.}/init.sh"
run_strace -V > "$LOG"
getval()
{
sed -r -n 's/#define[[:space:]]*'"$1"'[[:space:]]*"([^"]*)".*/\1/p' ../config.h
}
printf "%s -- version %s\n" "$(getval PACKAGE_NAME)" "$(getval VERSION)" > "$EXP"
match_diff "$EXP" "$LOG"
rm -f "$EXP"