Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
nhorman authored and Neil Horman committed May 14, 2018
1 parent aeb1bbe commit 71bd666
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Makefile.am
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -81,7 +81,7 @@ AS_IF(
]
)

AC_OUTPUT(Makefile)
AC_OUTPUT(Makefile tests/Makefile)

AC_MSG_NOTICE()
AC_MSG_NOTICE([irqbalance Version: $VERSION])
Expand Down
2 changes: 2 additions & 0 deletions tests/Makefile.am
@@ -0,0 +1,2 @@
check_SCRIPTS = runoneshot.sh
TESTS = runoneshot.sh
4 changes: 4 additions & 0 deletions tests/runoneshot.sh
@@ -0,0 +1,4 @@
#!/bin/sh

exec ../irqbalance --debug --oneshot --foreground

0 comments on commit 71bd666

Please sign in to comment.