Permalink
Browse files

Add make check targets

lets add some built in self testing to the make files.  Currently lets
just run irqbalance in foreground/oneshot/debug mode to capture the log
and ensure that nothing crashes

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
  • Loading branch information...
Neil Horman Neil Horman
Neil Horman authored and Neil Horman committed May 14, 2018
1 parent aeb1bbe commit 71bd666e0590765cef7a6bcd97d8c0a69adae917
Showing with 9 additions and 1 deletion.
  1. +2 −0 Makefile.am
  2. +1 −1 configure.ac
  3. +2 −0 tests/Makefile.am
  4. +4 −0 tests/runoneshot.sh
@@ -24,6 +24,8 @@ AUTOMAKE_OPTIONS = no-dependencies
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = COPYING autogen.sh misc/irqbalance.service misc/irqbalance.env
SUBDIRS = tests
UI_DIR = ui
AM_CFLAGS = $(LIBCAP_NG_CFLAGS) $(GLIB2_CFLAGS)
AM_CPPFLAGS = -I${top_srcdir} -W -Wall -Wshadow -Wformat -Wundef -D_GNU_SOURCE
@@ -81,7 +81,7 @@ AS_IF(
]
)
AC_OUTPUT(Makefile)
AC_OUTPUT(Makefile tests/Makefile)
AC_MSG_NOTICE()
AC_MSG_NOTICE([irqbalance Version: $VERSION])
@@ -0,0 +1,2 @@
check_SCRIPTS = runoneshot.sh
TESTS = runoneshot.sh
@@ -0,0 +1,4 @@
#!/bin/sh
exec ../irqbalance --debug --oneshot --foreground

0 comments on commit 71bd666

Please sign in to comment.