#!/bin/sh

autoreconf -fi
./configure

# copied from .github/workflows/testsuite.yml, lines 42-56
if ! make check; then
    for dir in tests/testsuite.dir/*
    do
        echo "Test $(basename $dir)"
        for file in testsuite.log xscript.log pound.log pound.cfi pound.cfg input
        do
            if test -f $dir/$file; then
                echo "File $file"
                echo "File $file"|sed -e 's/./=/g'
                cat $dir/$file
            fi
        done
    done
    false
fi
