#!/bin/sh
if test $# -lt 2
then
echo "USAGE: $0 <OUTPUT> <SUITE>..." 2>&1
exit 1
fi
OUTPUT="$1"
shift
for suite in "$@"
do
sed -ne "s/^\(void test_$(basename "${suite%.c}")__[a-zA-Z_0-9][a-zA-Z_0-9]*(void)\)$/extern \1;/p" "$suite" ||
done >"$OUTPUT"