[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
make distcheck fails with 'does not support --help'
From: |
Dr. David Kirkby |
Subject: |
make distcheck fails with 'does not support --help' |
Date: |
Fri, 18 Apr 2003 23:23:31 +0100 |
I have a suite of 86 tests for a program. 85 are shell scripts, but
one (MPI_16a_PI) is a binary program, compiled from a c source file.
Running 'make distcheck' results in all the tests passing, but
finally, after 'make distcheck' does its install, it fails with:
MPI_16a_PI does not support --help
MPI_16a_PI does not support --version
Surely I'm not expected to make a test program to be that clever and
understand those command line arguments ???
I've put the last bit of the 'make distcheck' output below, but only
the last 8 lines look significant to me - I'm including the rest just
in case someone can see something.
The C program really does do nothing, since configure was not built
with an appropriate option, so most is between #ifdef blocks, which
don't do anything. So effectively all the c code does is:
main()
{
exit 77
}
Is that not sufficient ?? Surely I can't be expected to make the test
handle --help and --version???
My $top_srcdir/tests/Makefile.am is:
AUTOMAKE_OPTIONS = gnits
bin_PROGRAMS = MPI_16a_PI
MPI_16a_PI_SOURCES = MPI_16a_PI.c
MPI_16a_PI_LDADD = @MPILIBS@ @LIBS@
check_PROGRAMS = MPI_16a_PI
TESTS_ENVIRONMENT = \
top_builddir=$(top_builddir) \
top_srcdir=$(top_srcdir) \
built_with_posix_threads=$(built_with_posix_threads)
TESTS = \
1a-create_bmp_for_symmetrical_stripline.bmp.test etc etc
etc etc.
EXTRA_DIST = \
10a-create-lots-of-examples-check-last-one.test etc etc
CLEANFILES = \
test.E.bin etc etc.
DISTCLEANFILES = tests.log test.txt
Here's the output of 'make distcheck'. Only the last few lines looks
interesting.
/usr/local/bin/install -c -m 644 ../../examples/twin-wire2.bmp
/export/home/davek/atlc/atlc-4.3.1/=inst/share/atlc/examples/twin-wire2.bmp
/usr/local/bin/install -c -m 644 ../../examples/twin-wire2.bmp.txt
/export/home/davek/atlc/atlc-4.3.1/=inst/share/atlc/examples/twin-wire2.bmp.txt
/usr/local/bin/install -c -m 644 ../../examples/twin-wire3.bmp
/export/home/davek/atlc/atlc-4.3.1/=inst/share/atlc/examples/twin-wire3.bmp
/usr/local/bin/install -c -m 644 ../../examples/twin-wire3.bmp.txt
/export/home/davek/atlc/atlc-4.3.1/=inst/share/atlc/examples/twin-wire3.bmp.txt
/usr/local/bin/install -c -m 644 ../../examples/twin-wire4.bmp
/export/home/davek/atlc/atlc-4.3.1/=inst/share/atlc/examples/twin-wire4.bmp
/usr/local/bin/install -c -m 644 ../../examples/twin-wire4.bmp.txt
/export/home/davek/atlc/atlc-4.3.1/=inst/share/atlc/examples/twin-wire4.bmp.txt
/usr/local/bin/install -c -m 644 ../../examples/ushape.bmp
/export/home/davek/atlc/atlc-4.3.1/=inst/share/atlc/examples/ushape.bmp
/usr/local/bin/install -c -m 644 ../../examples/ushape.bmp.txt
/export/home/davek/atlc/atlc-4.3.1/=inst/share/atlc/examples/ushape.bmp.txt
/usr/local/bin/install -c -m 644 ../../examples/very-odd.bmp
/export/home/davek/atlc/atlc-4.3.1/=inst/share/atlc/examples/very-odd.bmp
/usr/local/bin/install -c -m 644 ../../examples/very-odd.bmp.txt
/export/home/davek/atlc/atlc-4.3.1/=inst/share/atlc/examples/very-odd.bmp.txt
/usr/local/bin/install -c -m 644 ../../examples/wide-9pixel.bmp
/export/home/davek/atlc/atlc-4.3.1/=inst/share/atlc/examples/wide-9pixel.bmp
/usr/local/bin/install -c -m 644 ../../examples/wide-9pixel.bmp.txt
/export/home/davek/atlc/atlc-4.3.1/=inst/share/atlc/examples/wide-9pixel.bmp.txt
make[3]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/examples'
make[2]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/examples'
Making install in tools
make[2]: Entering directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/tools'
Making install in src
make[3]: Entering directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/tools/src'
make[4]: Entering directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/tools/src'
/bin/bash ../../../mkinstalldirs
/export/home/davek/atlc/atlc-4.3.1/=inst/bin
/usr/local/bin/install -c mymd5sum
/export/home/davek/atlc/atlc-4.3.1/=inst/bin/mymd5sum
/usr/local/bin/install -c myfilelength
/export/home/davek/atlc/atlc-4.3.1/=inst/bin/myfilelength
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/tools/src'
make[3]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/tools/src'
make[3]: Entering directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/tools'
make[4]: Entering directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/tools'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/tools'
make[3]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/tools'
make[2]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/tools'
Making install in tests
make[2]: Entering directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/tests'
make[3]: Entering directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/tests'
/bin/bash ../../mkinstalldirs
/export/home/davek/atlc/atlc-4.3.1/=inst/bin
/usr/local/bin/install -c MPI_16a_PI
/export/home/davek/atlc/atlc-4.3.1/=inst/bin/MPI_16a_PI
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/tests'
make[2]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/tests'
make[1]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build'
make[1]: Entering directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build'
Making installcheck in .
make[2]: Entering directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build'
make[2]: Nothing to be done for `installcheck-am'.
make[2]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build'
Making installcheck in src
make[2]: Entering directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/src'
Making installcheck in non_gui
make[3]: Entering directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/src/non_gui'
make[3]: Nothing to be done for `installcheck'.
make[3]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/src/non_gui'
make[3]: Entering directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/src'
make[3]: Nothing to be done for `installcheck-am'.
make[3]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/src'
make[2]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/src'
Making installcheck in m4
make[2]: Entering directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/m4'
make[2]: Nothing to be done for `installcheck'.
make[2]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/m4'
Making installcheck in man
make[2]: Entering directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/man'
Making installcheck in man1
make[3]: Entering directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/man/man1'
make[3]: Nothing to be done for `installcheck'.
make[3]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/man/man1'
make[3]: Entering directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/man'
make[3]: Nothing to be done for `installcheck-am'.
make[3]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/man'
make[2]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/man'
Making installcheck in docs
make[2]: Entering directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/docs'
Making installcheck in html-docs
make[3]: Entering directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/docs/html-docs'
Making installcheck in jpgs
make[4]: Entering directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/docs/html-docs/jpgs'
make[4]: Nothing to be done for `installcheck'.
make[4]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/docs/html-docs/jpgs'
make[4]: Entering directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/docs/html-docs'
make[4]: Nothing to be done for `installcheck-am'.
make[4]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/docs/html-docs'
make[3]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/docs/html-docs'
Making installcheck in qex-december-1996
make[3]: Entering directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/docs/qex-december-1996'
make[3]: Nothing to be done for `installcheck'.
make[3]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/docs/qex-december-1996'
Making installcheck in theory
make[3]: Entering directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/docs/theory'
make[3]: Nothing to be done for `installcheck'.
make[3]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/docs/theory'
make[3]: Entering directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/docs'
make[3]: Nothing to be done for `installcheck-am'.
make[3]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/docs'
make[2]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/docs'
Making installcheck in examples
make[2]: Entering directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/examples'
make[2]: Nothing to be done for `installcheck'.
make[2]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/examples'
Making installcheck in tools
make[2]: Entering directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/tools'
Making installcheck in src
make[3]: Entering directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/tools/src'
make[3]: Nothing to be done for `installcheck'.
make[3]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/tools/src'
make[3]: Entering directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/tools'
make[3]: Nothing to be done for `installcheck-am'.
make[3]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/tools'
make[2]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/tools'
Making installcheck in tests
make[2]: Entering directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/tests'
bad=0; pid=$$; list="MPI_16a_PI"; for p in $list; do \
case ' ' in \
*" $p "* | *" ../../tests/$p "*) continue;; \
esac; \
f=`echo "$p" | \
sed 's,^.*/,,;s/$//;s,x,x,;s/$//'`; \
for opt in --help --version; do \
if /export/home/davek/atlc/atlc-4.3.1/=inst/bin/$f $opt >
c${pid}_.out 2> c${pid}_.err \
&& test -n "`cat c${pid}_.out`" \
&& test -z "`cat c${pid}_.err`"; then :; \
else echo "$f does not support $opt" 1>&2; bad=1; fi; \
done; \
done; rm -f c${pid}_.???; exit $bad
MPI_16a_PI does not support --help
MPI_16a_PI does not support --version
make[2]: *** [installcheck-binPROGRAMS] Error 1
make[2]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build/tests'
make[1]: *** [installcheck-recursive] Error 1
make[1]: Leaving directory
`/export/home/davek/sources/sources/atlc-4.3.1/=build'
make: *** [distcheck] Error 2
--
Dr. David Kirkby,
Senior Research Fellow,
Department of Medical Physics,
University College London,
11-20 Capper St, London, WC1E 6JA.
Tel: 020 7679 6408 Fax: 020 7679 6269
Internal telephone: ext 46408
e-mail address@hidden
- make distcheck fails with 'does not support --help',
Dr. David Kirkby <=