Skip to content

Commit

Permalink
Add --with-* package enable knobs via automake.
Browse files Browse the repository at this point in the history
Now people can enable the open_posix_testsuite and realtime testsuite.
These are disabled by default.

Signed-off-by: Garrett Cooper <[email protected]>
  • Loading branch information
Garrett Cooper committed Nov 17, 2010
1 parent 88f9967 commit 92dfd5b
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 10 deletions.
27 changes: 27 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,35 @@ AC_CHECK_HEADERS([ \

AC_CONFIG_SUBDIRS([ \
testcases/kernel/syscalls/libevent \
])

AC_ARG_WITH([open-posix-testsuite],
[AC_HELP_STRING([--with-open-posix-testsuite],
[compile and install the open posix testsuite (default=no)])],
[with_open_posix_testsuite=yes]
)
if test "x$with_open_posix_testsuite" = xyes; then
AC_SUBST([WITH_OPEN_POSIX_TESTSUITE],["yes"])
else
AC_SUBST([WITH_OPEN_POSIX_TESTSUITE],["no"])
fi

AC_ARG_WITH([realtime-testsuite],
[AC_HELP_STRING([--with-realtime-testsuite],
[compile and install the realtime testsuite (default=no)])],
[with_realtime_testsuite=yes]
)
if test "x$with_realtime_testsuite" = xyes; then
AC_SUBST([WITH_REALTIME_TESTSUITE],["yes"])
else
AC_SUBST([WITH_REALTIME_TESTSUITE],["no"])
fi

if test "x$with_realtime_testsuite" = xyes; then
AC_CONFIG_SUBDIRS([ \
testcases/realtime \
])
fi

LTP_CHECK_CAPABILITY_SUPPORT
LTP_CHECK_CRYPTO
Expand Down
14 changes: 12 additions & 2 deletions include/mk/features.mk.default
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,17 @@
#

# Path to capset program
CAPSET :=
CAPSET :=

# Is securebits[.h], et all support available?
HAVE_SECUREBITS := no
HAVE_SECUREBITS := no

# Enable testcases/open_posix_testsuite's compile and install?
WITH_OPEN_POSIX_TESTSUITE := no

# Enable testcases/realtime's compile and install?
ifeq ($(UCLINUX),1)
WITH_REALTIME_TESTSUITE := no
else
WITH_REALTIME_TESTSUITE := no
endif
14 changes: 12 additions & 2 deletions include/mk/features.mk.in
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,17 @@
#

# Path to capset program
CAPSET := @CAPSET@
CAPSET := @CAPSET@

# Is securebits[.h], et all support available?
HAVE_SECUREBITS := @HAVE_SECUREBITS@
HAVE_SECUREBITS := @HAVE_SECUREBITS@

# Enable testcases/open_posix_testsuite's compile and install?
WITH_OPEN_POSIX_TESTSUITE := @WITH_OPEN_POSIX_TESTSUITE@

# Enable testcases/realtime's compile and install?
ifeq ($(UCLINUX),1)
WITH_REALTIME_TESTSUITE := no
else
WITH_REALTIME_TESTSUITE := @WITH_REALTIME_TESTSUITE@
endif
8 changes: 2 additions & 6 deletions testcases/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,10 @@ include $(top_srcdir)/include/mk/env_pre.mk
# WILL crash the build host (the tests need to be fixed to just build, not
# run).
# 3. mce-test doesn't fit cleanly in the build, yet.
# 4. pounder21 is just broken.
# 4. pounder21 isn't supposed to fit in the build.
FILTER_OUT_DIRS := ballista kdump mce-test open% pounder21

# XXX (garrcoop): Not sure why realtime is still in this list; this was the
# original list of disabled items...
# XXX (garrcoop): kdump was in this list.
# XXX (garrcoop): open_hpi_testsuite was in this list.
ifeq ($(UCLINUX),1)
ifneq ($(WITH_REALTIME_TESTSUITE),yes)
FILTER_OUT_DIRS += realtime
endif

Expand Down

0 comments on commit 92dfd5b

Please sign in to comment.