From 93707439c56276690e06160788dd6af7c72e3d68 Mon Sep 17 00:00:00 2001
From: Andre Noll <maan@tuebingen.mpg.de>
Date: Sun, 16 Jul 2017 14:06:58 +0200
Subject: [PATCH] autogen: Run make check after a successful build.

This helps to run the test suite more often, so bugs get caught
earlier.
---
 NEWS.md    | 1 +
 autogen.sh | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/NEWS.md b/NEWS.md
index 5e034215..931ddbb8 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -6,6 +6,7 @@ current master branch
 
 - New sort order for the ls command: -s=h sorts the ls output by hash
   value of the audio file.
+- autogen.sh now runs the test suite after a successful build.
 - The contents of overview.pdf have been integrated into the user
   manual.
 - The doxygen source browser has been disabled temporarily. The
diff --git a/autogen.sh b/autogen.sh
index 708602e7..caf1401d 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -25,4 +25,4 @@ echo configuring...
 ./configure $@ > /dev/null
 echo compiling...
 make clean > /dev/null 2>&1
-make -j $n > /dev/null
+make -j $n > /dev/null && make check
-- 
2.39.5