#!/bin/sh
-cp $srcdir/Makefile.am bogus.ged
+cp $srcdir/input/bogus.ged bogus.ged
$srcdir/src/test_script -2 -b minimal.ged bogus 0
result=$?
rm bogus.ged
--- /dev/null
+## Process this file with automake to produce Makefile.in
+# $Id$
+# $Name$
+
+SUBDIRS=src input output .
+
+DMALLOC_LOG = dmalloc.log
+TESTS := $(wildcard $(srcdir)/*.test)
+
+EXTRA_DIST=$(TESTS)
+
+TESTS_ENVIRONMENT=ICONV_PATH=@ICONV_PATH@
+
+all-local:
+ @rm -f *.out $(DMALLOC_LOG)
+
+check-% : %.test all-local
+ @srcdir=$(srcdir); export srcdir; \
+ if $(TESTS_ENVIRONMENT) ./$<; then \
+ echo "Test succeeded"; \
+ else \
+ echo "Test failed"; \
+ fi
+
+check-dmalloc-%: %.test all-local
+ @if [ "@EXTRA_PROGS@" = "" ]; then \
+ echo "Please run './configure --with-dmalloc' first"; \
+ exit; \
+ fi; \
+ srcdir=$(srcdir); export srcdir; \
+ GOM_DMALLOC_TEST=$(DMALLOC_LOG); export GOM_DMALLOC_TEST; \
+ if $(TESTS_ENVIRONMENT) ./$<; then \
+ echo "Test succeeded"; \
+ else \
+ echo "Test failed"; \
+ fi
+
WARNING: Warning on line 1: Unknown encoding, falling back to one-byte
ERROR: Error: parse error
ERROR: Error: GEDCOM level number is 2 higher than previous
-ERROR: Error on line 1: '@' character should be written as '@@' in values
-ERROR: Error on line 1: '@' character should be written as '@@' in values
-ERROR: Error on line 1: '@' character should be written as '@@' in values
+ERROR: Error on line 2: '@' character should be written as '@@' in values
+ERROR: Error on line 2: '@' character should be written as '@@' in values
+ERROR: Error on line 2: '@' character should be written as '@@' in values
=== Parsing file minimal.ged
Header start