procps/testsuite/Makefile.am
Craig Small 2e1e8fcc85 slabtop: Check for bad d and o option combination
If you run slabtop with the -d option and then -o option the
delay gets set to zero and it runs forever. slabtop now checks
for this combination and errors.

Adding a DEJAGNU test also found that none of the slabtop
checks were running so they got added to the list and only the
ones that need /proc/slabinfo (if not readable) are skipped.

References:
 #160
2021-03-11 22:10:37 +11:00

64 lines
1.2 KiB
Makefile

AUTOMAKE_OPTIONS = dejagnu
export DEJAGNU
# Programs that are expected across the board.
DEJATOOL =
noinst_PROGRAMS = test-schedbatch
test_schedbatch_SOURCES = ps.test/test-schedbatch.c
if LINUX
# These should be in defined in 'across the board' scope, but are
# temporarily disabled on other than linux systems, see commit
# 3d807ae853b8b4264da156065b34f1447658a8ba
DEJATOOL += \
pmap
if !CYGWIN
DEJATOOL += \
slabtop \
sysctl
endif
if BUILD_KILL
DEJATOOL += kill
endif
DEJATOOL += \
free \
lib \
pgrep \
pkill \
ps \
pwdx \
slabtop \
uptime \
vmstat \
w
endif
EXTRA_DIST = \
config/unix.exp \
free.test/free.exp \
kill.test/kill.exp \
lib.test/fileutils.exp \
lib.test/fileutils_badfd.sh \
lib.test/fileutils_full.sh \
lib.test/strutils.exp \
pgrep.test/pgrep.exp \
pkill.test/pkill.exp \
pmap.test/pmap.exp \
ps.test/ps_output.exp \
ps.test/ps_personality.exp \
ps.test/ps_sched_batch.exp \
pwdx.test/pwdx.exp \
slabtop.test/slabtop.exp \
uptime.test/uptime.exp \
vmstat.test/vmstat.exp \
w.test/w.exp
if !CYGWIN
EXTRA_DIST += \
slabtop.test/slabtop.exp \
sysctl.test/sysctl_read.exp
endif