On Tue, 23 Jan 2007, Hugh Sasse wrote:
> Thanks, I'll give that a go.
> >
> > I will go spend some time figuring out how to ensure that the configure
> > shell is used for running tests. Thanks - Bruce
>
> I found with (I think) GCC that I had to set CONFIG_SHELL as well as SHELL
> to get it to work. However, configure discovers the correct thing to
> do so often I forgot to try that.
> >
>
> Thank you.
> Hugh
This resulted in two failures (below).
(I've not noticed failure output being sent to a file. Is this
how you like them reported, or should I be doing something else?)
Hugh
Making check in compat
gmake[1]: Entering directory `/export/home/Scratch/hgs/autogen-5.8.8/compat'
gmake[1]: Nothing to be done for `check'.
gmake[1]: Leaving directory `/export/home/Scratch/hgs/autogen-5.8.8/compat'
Making check in snprintfv
gmake[1]: Entering directory `/export/home/Scratch/hgs/autogen-5.8.8/snprintfv'
gmake[1]: Nothing to be done for `check'.
gmake[1]: Leaving directory `/export/home/Scratch/hgs/autogen-5.8.8/snprintfv'
Making check in autoopts
gmake[1]: Entering directory `/export/home/Scratch/hgs/autogen-5.8.8/autoopts'
Making check in test
gmake[2]: Entering directory
`/export/home/Scratch/hgs/autogen-5.8.8/autoopts/test'
gmake check-TESTS
gmake[3]: Entering directory
`/export/home/Scratch/hgs/autogen-5.8.8/autoopts/test'
PASS: nested.test
PASS: argument.test
PASS: cond.test
PASS: config.test
PASS: enums.test
PASS: equiv.test
PASS: errors.test
PASS: getopt.test
PASS: guile.test
PASS: handler.test
lo_dir=/export/home/Scratch/hgs/autogen-5.8.8/autoopts
+ test -d /export/home/Scratch/hgs/autogen-5.8.8/autoopts/.libs
lo_dir=/export/home/Scratch/hgs/autogen-5.8.8/autoopts/.libs
LD_LIBRARY_PATH=/export/home/Scratch/hgs/autogen-5.8.8/autoopts/.libs:/usr/local/lib:/progs/SUNWspro/lib:/usr/local/lib:/usr/local/lib/sparcv9:/usr/lib:/usr/share/lib:/usr/dt/lib:/usr/openwin/lib:/opt/panorama/lib:/opt/sfw/lib
+ echo /export/home/Scratch/hgs/autogen-5.8.8/autoopts/.libs/libopts.a
/export/home/Scratch/hgs/autogen-5.8.8/autoopts/.libs/libguileopts.a -Wl,-R
-D_REENTRANT -pthreads -lguile -lltdl -L/usr/local/lib -lrt -lgmp -lsocket
-lnsl -lm -lltdl -lgen
LIB=/export/home/Scratch/hgs/autogen-5.8.8/autoopts/.libs/libopts.a
/export/home/Scratch/hgs/autogen-5.8.8/autoopts/.libs/libguileopts.a -Wl,-R
-D_REENTRANT -pthreads -lguile -lltdl -L/usr/local/lib -lrt -lgmp -lsocket
-lnsl -lm -lltdl -lgen
+ export LD_LIBRARY_PATH
+ cd testdir
+ pwd
testsubdir=/export/home/Scratch/hgs/autogen-5.8.8/autoopts/test/testdir
+ sed s/^/-I/
+ cd /export/home/Scratch/hgs/autogen-5.8.8/.
+ pwd
+ sort -u
+ cd /export/home/Scratch/hgs/autogen-5.8.8/autoopts
+ pwd
+ cd /export/home/Scratch/hgs/autogen-5.8.8/agen5
+ pwd
+ cd /export/home/Scratch/hgs/autogen-5.8.8/.
+ pwd
+ cd /export/home/Scratch/hgs/autogen-5.8.8/autoopts
+ pwd
+ cd /export/home/Scratch/hgs/autogen-5.8.8/agen5
+ pwd
dirs=-I/export/home/Scratch/hgs/autogen-5.8.8
-I/export/home/Scratch/hgs/autogen-5.8.8/agen5
-I/export/home/Scratch/hgs/autogen-5.8.8/autoopts
+ echo -I/export/home/Scratch/hgs/autogen-5.8.8
-I/export/home/Scratch/hgs/autogen-5.8.8/agen5
-I/export/home/Scratch/hgs/autogen-5.8.8/autoopts
INC=-I/export/home/Scratch/hgs/autogen-5.8.8
-I/export/home/Scratch/hgs/autogen-5.8.8/agen5
-I/export/home/Scratch/hgs/autogen-5.8.8/autoopts -I/usr/local/include
-D_REENTRANT -pthreads
+ cd /usr/local/lib/../bin
+ pwd
f=/usr/local/bin
PATH=/export/home/Scratch/hgs/autogen-5.8.8/columns:/usr/local/bin:/bin:/usr/bin:/progs/SUNWspro/bin:/usr/local/bin:/apps/jdk1.2/bin:/usr/ucb:/usr/sbin:/usr/ccs/bin:/etc:/opt/sfw/bin:/usr/local/mysql/bin:/opt/Info-ZIP/IZzip/bin:/users/bin:/scs/gdt/ind/bin:/scs/lsim/ind/bin:/usr/openwin/bin:/home/hgs/bin:/home/hgs/SUN/bin:/idea/mgc/mgls/bin:/opt/gnu/bin:/ansys50/bin:/micro_stripes_3.0.2/bin:/usr/local/pvm3/lib:/usr/local/pvm3/bin/SUN4SOL2:/home/hgs/RUBY-SNAPSHOT/bin:/opt/ws/bin:.
stdopts=/export/home/Scratch/hgs/autogen-5.8.8/autoopts/test/stdopts.def
+ cd /export/home/Scratch/hgs/autogen-5.8.8/autoopts/test/..
+ pwd
AG_L=/export/home/Scratch/hgs/autogen-5.8.8/agen5/autogen
-L/export/home/Scratch/hgs/autogen-5.8.8/autoopts
test_main=yes
use_flags=true
+ : === Running immediate.test for immediate using /bin/ksh ===
+ chmod +w immediate.log
+ export SHELL
SHELLX=/bin/ksh -x
+ pwd
+ echo creating immediate.def in
/export/home/Scratch/hgs/autogen-5.8.8/autoopts/test/testdir
creating immediate.def in
/export/home/Scratch/hgs/autogen-5.8.8/autoopts/test/testdir
+ cat
AutoGen definitions options;
prog-name = "test_immediate";
prog-title = "Test AutoOpts for immediate";
include = "#include <stdio.h>\nint invocation_ct = 0;";
config-header = 'config.h';
version = '1.0';
copyright = {
date = "1992-2006";
owner = "Bruce Korb";
eaddr = "[email protected]";
type = gpl;
};
flag = {
name = "second";
descrip = "The second option descrip";
immediate = also;
immed-disable = also;
disable = not;
arg-type = string;
flag-code = " invocation_ct++;";
};
main = {
main-type = main;
main-text = ' printf( "invocation_ct = %d\n", invocation_ct );';
};
+ echo -I/export/home/Scratch/hgs/autogen-5.8.8
-I/export/home/Scratch/hgs/autogen-5.8.8/agen5
-I/export/home/Scratch/hgs/autogen-5.8.8/autoopts -I/usr/local/include
-D_REENTRANT -pthreads
+ sed s/-lguile//;s/-lqthreads//
INC=-I/export/home/Scratch/hgs/autogen-5.8.8
-I/export/home/Scratch/hgs/autogen-5.8.8/agen5
-I/export/home/Scratch/hgs/autogen-5.8.8/autoopts -I/usr/local/include
-D_REENTRANT -pthreads
+ echo -DHAVE_CONFIG_H -g -O2
+ sed s,-O2,,;s/-g//
CFLAGS=-g -DHAVE_CONFIG_H
+ echo /export/home/Scratch/hgs/autogen-5.8.8/agen5/autogen
-L/export/home/Scratch/hgs/autogen-5.8.8/autoopts immediate.def
/export/home/Scratch/hgs/autogen-5.8.8/agen5/autogen
-L/export/home/Scratch/hgs/autogen-5.8.8/autoopts immediate.def
+ /export/home/Scratch/hgs/autogen-5.8.8/agen5/autogen
-L/export/home/Scratch/hgs/autogen-5.8.8/autoopts immediate.def
+ compile help
+ :
+ test X = X
Csrc=immediate
+ test X = X
Cexe=immediate
+ test X = X
Dnam=immediate
+ echo TEST_TEST_immediate_OPTS
+ tr [a-z]- [A-Z]_
d=TEST_TEST_IMMEDIATE_OPTS
cc_cmd=gcc -std=gnu99 -g -DHAVE_CONFIG_H -DTEST_TEST_IMMEDIATE_OPTS
-I/export/home/Scratch/hgs/autogen-5.8.8
-I/export/home/Scratch/hgs/autogen-5.8.8/agen5
-I/export/home/Scratch/hgs/autogen-5.8.8/autoopts -I/usr/local/include
-D_REENTRANT -pthreads -o immediate immediate.c
/export/home/Scratch/hgs/autogen-5.8.8/autoopts/.libs/libopts.a
/export/home/Scratch/hgs/autogen-5.8.8/autoopts/.libs/libguileopts.a -Wl,-R
-D_REENTRANT -pthreads -lguile -lltdl -L/usr/local/lib -lrt -lgmp -lsocket
-lnsl -lm -lltdl -lgen
+ eval gcc -std=gnu99 -g -DHAVE_CONFIG_H -DTEST_TEST_IMMEDIATE_OPTS
-I/export/home/Scratch/hgs/autogen-5.8.8
-I/export/home/Scratch/hgs/autogen-5.8.8/agen5
-I/export/home/Scratch/hgs/autogen-5.8.8/autoopts -I/usr/local/include
-D_REENTRANT -pthreads -o immediate immediate.c
/export/home/Scratch/hgs/autogen-5.8.8/autoopts/.libs/libopts.a
/export/home/Scratch/hgs/autogen-5.8.8/autoopts/.libs/libguileopts.a -Wl,-R
-D_REENTRANT -pthreads -lguile -lltdl -L/usr/local/lib -lrt -lgmp -lsocket
-lnsl -lm -lltdl -lgen
+ gcc -std=gnu99 -g -DHAVE_CONFIG_H -DTEST_TEST_IMMEDIATE_OPTS
-I/export/home/Scratch/hgs/autogen-5.8.8
-I/export/home/Scratch/hgs/autogen-5.8.8/agen5
-I/export/home/Scratch/hgs/autogen-5.8.8/autoopts -I/usr/local/include
-D_REENTRANT -pthreads -o immediate immediate.c
/export/home/Scratch/hgs/autogen-5.8.8/autoopts/.libs/libopts.a
/export/home/Scratch/hgs/autogen-5.8.8/autoopts/.libs/libguileopts.a -Wl,-R
-D_REENTRANT -pthreads -lguile -lltdl -L/usr/local/lib -lrt -lgmp -lsocket
-lnsl -lm -lltdl -lgen
+ test 1 -gt 0
+ ./immediate help
Dnam= Cexe= Csrc=
+ echo creating immediate.hlp
creating immediate.hlp
+ cat
+ cmp -s immediate.help immediate.hlp
+ ./immediate second=hand
f=invocation_ct = 2
+ test invocation_ct = 2 = invocation_ct = 2
+ ./immediate not-second
f=invocation_ct = 2
+ test invocation_ct = 2 = invocation_ct = 2
+ ./immediate help version=c
+ fgrep USAGE:
grep: illegal option -- F
Usage: grep -hblcnsviw pattern file . . .
f=
+ test -z
+ failure no USAGE: in help text
+ :
+ test -d ../FAILURES
+ cd ../FAILURES
+ purge -rf immediate immediate.c immediate.def immediate.h immediate.help
immediate.hlp immediate.log .*immediate*
+ rm -rf -rf immediate immediate.c immediate.def immediate.h immediate.help
immediate.hlp immediate.log .*immediate*
bad=
+ test -f -rf -o -d -rf
+ test -f immediate -o -d immediate
+ test -f immediate.c -o -d immediate.c
+ test -f immediate.def -o -d immediate.def
+ test -f immediate.h -o -d immediate.h
+ test -f immediate.help -o -d immediate.help
+ test -f immediate.hlp -o -d immediate.hlp
+ test -f immediate.log -o -d immediate.log
+ test -f .*immediate* -o -d .*immediate*
+ test -z
+ return 0
+ set +x
FAILURE: no USAGE: in help text
FAIL: immediate.test
lo_dir=/export/home/Scratch/hgs/autogen-5.8.8/autoopts
+ test -d /export/home/Scratch/hgs/autogen-5.8.8/autoopts/.libs
lo_dir=/export/home/Scratch/hgs/autogen-5.8.8/autoopts/.libs
LD_LIBRARY_PATH=/export/home/Scratch/hgs/autogen-5.8.8/autoopts/.libs:/usr/local/lib:/progs/SUNWspro/lib:/usr/local/lib:/usr/local/lib/sparcv9:/usr/lib:/usr/share/lib:/usr/dt/lib:/usr/openwin/lib:/opt/panorama/lib:/opt/sfw/lib
+ echo /export/home/Scratch/hgs/autogen-5.8.8/autoopts/.libs/libopts.a
/export/home/Scratch/hgs/autogen-5.8.8/autoopts/.libs/libguileopts.a -Wl,-R
-D_REENTRANT -pthreads -lguile -lltdl -L/usr/local/lib -lrt -lgmp -lsocket
-lnsl -lm -lltdl -lgen
LIB=/export/home/Scratch/hgs/autogen-5.8.8/autoopts/.libs/libopts.a
/export/home/Scratch/hgs/autogen-5.8.8/autoopts/.libs/libguileopts.a -Wl,-R
-D_REENTRANT -pthreads -lguile -lltdl -L/usr/local/lib -lrt -lgmp -lsocket
-lnsl -lm -lltdl -lgen
+ export LD_LIBRARY_PATH
+ cd testdir
+ pwd
testsubdir=/export/home/Scratch/hgs/autogen-5.8.8/autoopts/test/testdir
+ sed s/^/-I/
+ cd /export/home/Scratch/hgs/autogen-5.8.8/.
+ pwd
+ sort -u
+ cd /export/home/Scratch/hgs/autogen-5.8.8/autoopts
+ pwd
+ cd /export/home/Scratch/hgs/autogen-5.8.8/agen5
+ pwd
+ cd /export/home/Scratch/hgs/autogen-5.8.8/.
+ pwd
+ cd /export/home/Scratch/hgs/autogen-5.8.8/autoopts
+ pwd
+ cd /export/home/Scratch/hgs/autogen-5.8.8/agen5
+ pwd
dirs=-I/export/home/Scratch/hgs/autogen-5.8.8
-I/export/home/Scratch/hgs/autogen-5.8.8/agen5
-I/export/home/Scratch/hgs/autogen-5.8.8/autoopts
+ echo -I/export/home/Scratch/hgs/autogen-5.8.8
-I/export/home/Scratch/hgs/autogen-5.8.8/agen5
-I/export/home/Scratch/hgs/autogen-5.8.8/autoopts
INC=-I/export/home/Scratch/hgs/autogen-5.8.8
-I/export/home/Scratch/hgs/autogen-5.8.8/agen5
-I/export/home/Scratch/hgs/autogen-5.8.8/autoopts -I/usr/local/include
-D_REENTRANT -pthreads
+ cd /usr/local/lib/../bin
+ pwd
f=/usr/local/bin
PATH=/export/home/Scratch/hgs/autogen-5.8.8/columns:/usr/local/bin:/bin:/usr/bin:/progs/SUNWspro/bin:/usr/local/bin:/apps/jdk1.2/bin:/usr/ucb:/usr/sbin:/usr/ccs/bin:/etc:/opt/sfw/bin:/usr/local/mysql/bin:/opt/Info-ZIP/IZzip/bin:/users/bin:/scs/gdt/ind/bin:/scs/lsim/ind/bin:/usr/openwin/bin:/home/hgs/bin:/home/hgs/SUN/bin:/idea/mgc/mgls/bin:/opt/gnu/bin:/ansys50/bin:/micro_stripes_3.0.2/bin:/usr/local/pvm3/lib:/usr/local/pvm3/bin/SUN4SOL2:/home/hgs/RUBY-SNAPSHOT/bin:/opt/ws/bin:.
stdopts=/export/home/Scratch/hgs/autogen-5.8.8/autoopts/test/stdopts.def
+ cd /export/home/Scratch/hgs/autogen-5.8.8/autoopts/test/..
+ pwd
AG_L=/export/home/Scratch/hgs/autogen-5.8.8/agen5/autogen
-L/export/home/Scratch/hgs/autogen-5.8.8/autoopts
test_main=yes
use_flags=true
+ : === Running keyword.test for keyword using /bin/ksh ===
+ chmod +w keyword.log
+ export SHELL
SHELLX=/bin/ksh -x
+ pwd
+ echo creating keyword.def in
/export/home/Scratch/hgs/autogen-5.8.8/autoopts/test/testdir
creating keyword.def in
/export/home/Scratch/hgs/autogen-5.8.8/autoopts/test/testdir
+ /bin/ksh -x /export/home/Scratch/hgs/autogen-5.8.8/autoopts/test/stdopts.def
option:opt init
long_opts=yes argument= test_main= testname=keyword
+ exec
+ 5> keyword.def
+ cat
+ 1>& 5 0<<
AutoGen definitions options;
config-header = 'config.h';
prog-name = "test_keyword";
prog-title = "Test AutoOpts for keyword";
+ echo test_main
test_main
+ echo argument
argument
+ echo long_opts yes
long_opts yes
+ test -n
+ test -n
+ test -n yes
+ echo long-opts;
+ 1>& 5
+ 1>& 5
+ + echo option:opt init
+ sed s/.*://
arg=opt init
+ + echo option:opt init
+ sed s/:.*//
flag=option
+ arg= arg-type = string; arg_default = 'opt init';
+ cat
+ 0<<
flag = {
name = "option";
descrip = "The option option descrip";
+ + echo option
+ sed s/\(.\).*/\1/
flag=o
+ echo value = 'o';
+ test -n arg-type = string; arg_default = 'opt init';
+ echo arg-type = string; arg_default = 'opt init';
+ echo };
+ echo
+ exec
+ + cat
help_value = X;
homerc = '.';
rcfile = keyword.cfg;
flag = {
name = trace;
arg-type = keyword;
arg-default = nothing;
arg-name = level;
descrip = "tracing level of detail";
keyword = nothing, templates, block-macros, expressions,
explanations;
};
flag = {
name = sets;
arg-type = set-members;
arg-default = second, fourth;
arg-name = member-list;
descrip = "set membership testing";
keyword = first, second, third, fourth, fifth,
sixth, seventh, eighth, ninth, tenth,
eleventh, twelfth, thirteenth, fourteenth, fifteenth,
sixteenth, seventeenth, eighteenth;
};
main = { main-type = shell-process; };
+ echo /export/home/Scratch/hgs/autogen-5.8.8/agen5/autogen
-L/export/home/Scratch/hgs/autogen-5.8.8/autoopts keyword.def
/export/home/Scratch/hgs/autogen-5.8.8/agen5/autogen
-L/export/home/Scratch/hgs/autogen-5.8.8/autoopts keyword.def
+ /export/home/Scratch/hgs/autogen-5.8.8/agen5/autogen
-L/export/home/Scratch/hgs/autogen-5.8.8/autoopts keyword.def
+ compile -X
+ :
+ test X = X
Csrc=keyword
+ test X = X
Cexe=keyword
+ test X = X
Dnam=keyword
+ echo TEST_TEST_keyword_OPTS
+ tr [a-z]- [A-Z]_
d=TEST_TEST_KEYWORD_OPTS
cc_cmd=gcc -std=gnu99 -DHAVE_CONFIG_H -g -O2 -DTEST_TEST_KEYWORD_OPTS
-I/export/home/Scratch/hgs/autogen-5.8.8
-I/export/home/Scratch/hgs/autogen-5.8.8/agen5
-I/export/home/Scratch/hgs/autogen-5.8.8/autoopts -I/usr/local/include
-D_REENTRANT -pthreads -o keyword keyword.c
/export/home/Scratch/hgs/autogen-5.8.8/autoopts/.libs/libopts.a
/export/home/Scratch/hgs/autogen-5.8.8/autoopts/.libs/libguileopts.a -Wl,-R
-D_REENTRANT -pthreads -lguile -lltdl -L/usr/local/lib -lrt -lgmp -lsocket
-lnsl -lm -lltdl -lgen
+ eval gcc -std=gnu99 -DHAVE_CONFIG_H -g -O2 -DTEST_TEST_KEYWORD_OPTS
-I/export/home/Scratch/hgs/autogen-5.8.8
-I/export/home/Scratch/hgs/autogen-5.8.8/agen5
-I/export/home/Scratch/hgs/autogen-5.8.8/autoopts -I/usr/local/include
-D_REENTRANT -pthreads -o keyword keyword.c
/export/home/Scratch/hgs/autogen-5.8.8/autoopts/.libs/libopts.a
/export/home/Scratch/hgs/autogen-5.8.8/autoopts/.libs/libguileopts.a -Wl,-R
-D_REENTRANT -pthreads -lguile -lltdl -L/usr/local/lib -lrt -lgmp -lsocket
-lnsl -lm -lltdl -lgen
+ gcc -std=gnu99 -DHAVE_CONFIG_H -g -O2 -DTEST_TEST_KEYWORD_OPTS
-I/export/home/Scratch/hgs/autogen-5.8.8
-I/export/home/Scratch/hgs/autogen-5.8.8/agen5
-I/export/home/Scratch/hgs/autogen-5.8.8/autoopts -I/usr/local/include
-D_REENTRANT -pthreads -o keyword keyword.c
/export/home/Scratch/hgs/autogen-5.8.8/autoopts/.libs/libopts.a
/export/home/Scratch/hgs/autogen-5.8.8/autoopts/.libs/libguileopts.a -Wl,-R
-D_REENTRANT -pthreads -lguile -lltdl -L/usr/local/lib -lrt -lgmp -lsocket
-lnsl -lm -lltdl -lgen
+ test 1 -gt 0
+ ./keyword -X
Dnam= Cexe= Csrc=
+ echo creating keyword.res-help
creating keyword.res-help
+ cat
+ pwd -P
dir=/export/home/Scratch/hgs/autogen-5.8.8/autoopts/test/testdir
+ sed s#/export/home/Scratch/hgs/autogen-5.8.8/autoopts/test/testdir/##
keyword.help
+ cmp -s keyword.bas-help keyword.res-help
+ ./keyword --trace=exp
+ ./keyword --trace=expr --set=thirteen,ninth,third
+ ./keyword --trace=expr --set=thirteen,ninth,third --save=keyword.cfg
+ egrep -v ^# keyword.cfg
grep: illegal option -- E
Usage: grep -hblcnsviw pattern file . . .
+ failure keyword could not create keyword.cfg
+ :
+ test -d ../FAILURES
+ cd ../FAILURES
+ purge -rf keyword.def keyword.log .*keyword*
+ rm -rf -rf keyword.def keyword.log .*keyword*
bad=
+ test -f -rf -o -d -rf
+ test -f keyword.def -o -d keyword.def
+ test -f keyword.log -o -d keyword.log
+ test -f .*keyword* -o -d .*keyword*
+ test -z
+ return 0
+ set +x
FAILURE: keyword could not create keyword.cfg
FAIL: keyword.test
PASS: library.test
PASS: main.test
PASS: nls.test
PASS: rc.test
PASS: shell.test
PASS: stdopts.test
PASS: usage.test
PASS: vers.test
====================================================
2 of 20 tests failed
Please report to [email protected]
====================================================
gmake[3]: *** [check-TESTS] Error 1
gmake[3]: Leaving directory
`/export/home/Scratch/hgs/autogen-5.8.8/autoopts/test'
gmake[2]: *** [check-am] Error 2
gmake[2]: Leaving directory
`/export/home/Scratch/hgs/autogen-5.8.8/autoopts/test'
gmake[1]: *** [check-recursive] Error 1
gmake[1]: Leaving directory `/export/home/Scratch/hgs/autogen-5.8.8/autoopts'
gmake: *** [check-recursive] Error 1
$
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Autogen-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/autogen-users