diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2008-03-19 14:38:56 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2008-03-19 14:38:56 +0000 |
commit | cab9440a671390e279228cd31ad56b055d611a21 (patch) | |
tree | e8f25fa0111183646243f8f3c121014e481dea2d | |
parent | a88ec0cc5ce716b0f739b6f1e855d705f49c8e31 (diff) | |
download | monitoring-plugins-cab9440a671390e279228cd31ad56b055d611a21.tar.gz |
Remove base64 tests, since base64 comes from gnulib now
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/new_threshold_syntax@1957 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | configure.in | 6 | ||||
-rw-r--r-- | lib/tests/Makefile.am | 9 |
2 files changed, 7 insertions, 8 deletions
diff --git a/configure.in b/configure.in index d0bd0efc..63ee56c3 100644 --- a/configure.in +++ b/configure.in | |||
@@ -156,7 +156,7 @@ AC_SUBST(MATHLIBS) | |||
156 | 156 | ||
157 | dnl Check for libtap, to run perl-like tests | 157 | dnl Check for libtap, to run perl-like tests |
158 | AC_CHECK_LIB(tap, plan_tests, | 158 | AC_CHECK_LIB(tap, plan_tests, |
159 | EXTRA_TEST="test_utils test_disk test_tcp test_cmd test_base64" | 159 | EXTRA_TEST="test_utils test_disk test_tcp test_cmd" |
160 | AC_SUBST(EXTRA_TEST) | 160 | AC_SUBST(EXTRA_TEST) |
161 | ) | 161 | ) |
162 | 162 | ||
@@ -566,6 +566,7 @@ then | |||
566 | ac_cv_ps_command="$PATH_TO_PS axwo 'stat uid pid ppid vsz rss pcpu comm args'" | 566 | ac_cv_ps_command="$PATH_TO_PS axwo 'stat uid pid ppid vsz rss pcpu comm args'" |
567 | ac_cv_ps_format="%s %d %d %d %d %d %f %s %n" | 567 | ac_cv_ps_format="%s %d %d %d %d %d %f %s %n" |
568 | ac_cv_ps_cols=9 | 568 | ac_cv_ps_cols=9 |
569 | ac_cv_ps_test="ps_axwo.debian" | ||
569 | AC_MSG_RESULT([$ac_cv_ps_command]) | 570 | AC_MSG_RESULT([$ac_cv_ps_command]) |
570 | 571 | ||
571 | dnl For OpenBSD 3.2 & 3.3. Must come before ps -weo | 572 | dnl For OpenBSD 3.2 & 3.3. Must come before ps -weo |
@@ -578,6 +579,7 @@ then | |||
578 | ac_cv_ps_command="$PATH_TO_PS -axwo 'stat uid pid ppid vsz rss pcpu comm args'" | 579 | ac_cv_ps_command="$PATH_TO_PS -axwo 'stat uid pid ppid vsz rss pcpu comm args'" |
579 | ac_cv_ps_format="%s %d %d %d %d %d %f %s %n" | 580 | ac_cv_ps_format="%s %d %d %d %d %d %f %s %n" |
580 | ac_cv_ps_cols=9 | 581 | ac_cv_ps_cols=9 |
582 | ac_cv_ps_test="ps-axwo.darwin" | ||
581 | AC_MSG_RESULT([$ac_cv_ps_command]) | 583 | AC_MSG_RESULT([$ac_cv_ps_command]) |
582 | 584 | ||
583 | dnl Some *BSDs have different format for ps. This is mainly to catch FreeBSD 4. | 585 | dnl Some *BSDs have different format for ps. This is mainly to catch FreeBSD 4. |
@@ -808,6 +810,8 @@ if test -n "$ac_cv_ps_varlist" ; then | |||
808 | [Format string for scanning ps output in check_procs]) | 810 | [Format string for scanning ps output in check_procs]) |
809 | AC_DEFINE_UNQUOTED(PS_COLS,$ac_cv_ps_cols, | 811 | AC_DEFINE_UNQUOTED(PS_COLS,$ac_cv_ps_cols, |
810 | [Number of columns in ps command]) | 812 | [Number of columns in ps command]) |
813 | AC_DEFINE_UNQUOTED(PS_TEST,$ac_cv_ps_test, | ||
814 | [Test file to check parsing]) | ||
811 | EXTRAS="$EXTRAS check_procs check_nagios" | 815 | EXTRAS="$EXTRAS check_procs check_nagios" |
812 | if echo "$ac_cv_ps_varlist" | grep "procetime" >/dev/null; then | 816 | if echo "$ac_cv_ps_varlist" | grep "procetime" >/dev/null; then |
813 | AC_DEFINE(PS_USES_PROCETIME,"yes", | 817 | AC_DEFINE(PS_USES_PROCETIME,"yes", |
diff --git a/lib/tests/Makefile.am b/lib/tests/Makefile.am index bd25ccfe..784447ea 100644 --- a/lib/tests/Makefile.am +++ b/lib/tests/Makefile.am | |||
@@ -7,9 +7,9 @@ check_PROGRAMS = @EXTRA_TEST@ | |||
7 | 7 | ||
8 | INCLUDES = -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/plugins | 8 | INCLUDES = -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/plugins |
9 | 9 | ||
10 | EXTRA_PROGRAMS = test_utils test_disk test_tcp test_cmd test_base64 | 10 | EXTRA_PROGRAMS = test_utils test_disk test_tcp test_cmd |
11 | 11 | ||
12 | EXTRA_DIST = test_utils.t test_disk.t test_tcp.t test_cmd.t test_base64.t | 12 | EXTRA_DIST = test_utils.t test_disk.t test_tcp.t test_cmd.t |
13 | 13 | ||
14 | LIBS = @LIBINTL@ | 14 | LIBS = @LIBINTL@ |
15 | 15 | ||
@@ -33,11 +33,6 @@ test_cmd_CFLAGS = -g -I.. | |||
33 | test_cmd_LDFLAGS = -L/usr/local/lib -ltap | 33 | test_cmd_LDFLAGS = -L/usr/local/lib -ltap |
34 | test_cmd_LDADD = ../utils_cmd.o ../utils_base.o | 34 | test_cmd_LDADD = ../utils_cmd.o ../utils_base.o |
35 | 35 | ||
36 | test_base64_SOURCES = test_base64.c | ||
37 | test_base64_CFLAGS = -g -I.. | ||
38 | test_base64_LDFLAGS = -L/usr/local/lib -ltap | ||
39 | test_base64_LDADD = $(top_srcdir)/gl/base64.o | ||
40 | |||
41 | test: ${noinst_PROGRAMS} | 36 | test: ${noinst_PROGRAMS} |
42 | perl -MTest::Harness -e '$$Test::Harness::switches=""; runtests(map {$$_ .= ".t"} @ARGV)' $(EXTRA_PROGRAMS) | 37 | perl -MTest::Harness -e '$$Test::Harness::switches=""; runtests(map {$$_ .= ".t"} @ARGV)' $(EXTRA_PROGRAMS) |
43 | 38 | ||