static int file_tests()
{
    STANZA s;
    int linesread = 0, result = 0;

    /* Read test file. */
    memset(&s, 0, sizeof(s));
    while (!feof(fp) && readstanza(&s, &linesread)) {
        if (s.numpairs == 0)
            continue;
        if (!file_test_run(&s)) {
            if (result == 0)
                fprintf(stderr, "Test at %d failed\n", s.start);
            goto err;
        }
        clearstanza(&s);
        s.start = linesread;
    }
    result = 1;

err:
    return result;
}