#!/bin/sh
-# Copyright (C) 2004-2012 Free Software Foundation, Inc.
+# Copyright (C) 2004-2013 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Check conditional local rules.
# Report from Simon Josefsson.
-. ./defs || Exit 1
+. test-init.sh
cat >>configure.ac <<'EOF'
AM_CONDITIONAL([CASE_A], [test -n "$case_A"])
$AUTOMAKE
./configure
-$MAKE check >stdout || { cat stdout; Exit 1; }
-cat stdout
-grep GrepMe1 stdout && Exit 1
-$MAKE install >stdout || { cat stdout; Exit 1; }
-cat stdout
+run_make -O check
+grep GrepMe1 stdout && exit 1
+run_make -O install
grep GrepMe2 stdout
./configure case_A=1
-$MAKE check >stdout || { cat stdout; Exit 1; }
-cat stdout
+run_make -O check
grep GrepMe1 stdout
-$MAKE install >stdout || { cat stdout; Exit 1; }
-cat stdout
-grep GrepMe2 stdout && Exit 1
+run_make -O install
+grep GrepMe2 stdout && exit 1
: