Skip to content

Commit

Permalink
Merge pull request #42 from ahkok/makecheck
Browse files Browse the repository at this point in the history
Add `make check` - testing.
  • Loading branch information
yaoj authored May 7, 2018
2 parents 1651ad1 + 3cf8c27 commit 2c27fec
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
*.lo
*.o
*.log
*.trs
.deps
.dirstamp
.libs
Expand All @@ -21,3 +23,4 @@ missing
numatop
numatop-*.tar.*
stamp-h1
test-driver
4 changes: 3 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ EXTRA_DIST = \
README.md \
AUTHORS \
COPYING \
kernel_patches/0001-perf-x86-Widen-Haswell-OFFCORE-mask.patch
kernel_patches/0001-perf-x86-Widen-Haswell-OFFCORE-mask.patch \
$(TESTS)

dist_man_MANS = \
numatop.8
Expand Down Expand Up @@ -110,3 +111,4 @@ mgen_SOURCES += \
test/mgen/intel/util.c
endif

TESTS = test/mgen.01.sh test/mgen.02.sh
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ and then `make`. Otherwise, use `./configure && make`.

To install, run `sudo make install`.

To run the test program, run `make check` after compilation or check
the `mgen` program for help information.


## Build Dependencies

Expand Down
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ AC_PROG_INSTALL
AC_CHECK_LIB([numa], [numa_free])
AC_CHECK_LIB([pthread], [pthread_create])

PKG_CHECK_MODULES([CHECK], [check])

PKG_CHECK_MODULES([NCURSES], [ncursesw ncurses], [LIBS="$LIBS $ncurses_LIBS"], [
AC_SEARCH_LIBS([delwin], [ncursesw ncurses], [], [
AC_MSG_ERROR([ncurses is required but was not found])
Expand Down
2 changes: 2 additions & 0 deletions test/mgen.01.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
exec ./mgen -a 1 -c 1 -t 10
3 changes: 3 additions & 0 deletions test/mgen.02.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

exec ./mgen -a 0 -c 1 -t 10

0 comments on commit 2c27fec

Please sign in to comment.