add osmo-auc-gen_test

Add test for osmo-auc-gen invocations to ensure stability across upcoming SQN
increment scheme changes.

The test comprises of a shell script that invokes the osmo-auc-gen binary with
various milenage parameters, of which the stdout/stderr are verified.

More osmo-auc-gen invocations could be added, but my main focus is on the SEQ
changes. Instead of manually testing that it still works for each SQN patch, I
want this test to do it for me.

To make sure that osmo-auc-gen is build before the tests are launched, place
'utils' before 'tests' in the root Makefile.am.

Related: OS#1968
Change-Id: Ib4af34201cd2e7d76037bcd31dd89ef18c1a9aec
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 51050f0..64df724 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -249,3 +249,10 @@
 touch experr
 AT_CHECK([$abs_top_builddir/tests/socket/socket_test], [0], [expout], [experr])
 AT_CLEANUP
+
+AT_SETUP([osmo-auc-gen])
+AT_KEYWORDS([osmo-auc-gen])
+cat $abs_srcdir/osmo-auc-gen/osmo-auc-gen_test.ok > expout
+cat $abs_srcdir/osmo-auc-gen/osmo-auc-gen_test.err > experr
+AT_CHECK([$abs_top_srcdir/tests/osmo-auc-gen/osmo-auc-gen_test.sh $abs_top_builddir/utils/osmo-auc-gen], [0], [expout], [experr])
+AT_CLEANUP