From 962d2d2ce258e7ae7bbb3b7c2f4e69af3ae7f6c6 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 8 Apr 1999 12:36:07 +0000 Subject: [PATCH] * cond8.test: New file. * Makefile.am (TESTS): Added cond8.test. --- tests/ChangeLog | 5 +++ tests/Makefile.am | 44 ++++++++++++------------- tests/Makefile.in | 82 +++++------------------------------------------ tests/cond8.test | 19 +++++++++++ 4 files changed, 54 insertions(+), 96 deletions(-) create mode 100755 tests/cond8.test diff --git a/tests/ChangeLog b/tests/ChangeLog index b2ad32f3..01a3487b 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,8 @@ +1999-04-08 Tom Tromey + + * cond8.test: New file. + * Makefile.am (TESTS): Added cond8.test. + 1999-04-07 Alexandre Oliva * backsl2.test: New file. diff --git a/tests/Makefile.am b/tests/Makefile.am index 6013322f..74f384ae 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -7,28 +7,28 @@ TESTS = acinclude.test aclocal.test aclocali.test aclocalii.test \ acoutnoq.test acoutput.test acoutqnl.test acouttbs.test acsilent.test \ all.test alpha.test ammissing.test ansi.test ansi2.test ansi3.test \ auxdir.test backsl.test backsl2.test badline.test badprog.test \ -block.test canon.test canon2.test canon3.test canon4.test checkall.test \ -clean.test colneq.test colneq2.test colon.test colon2.test colon3.test \ -colon4.test colon5.test colon6.test colon7.test comment.test \ -comment2.test compile_f_c_cxx.test cond.test cond2.test cond3.test \ -cond4.test cond5.test cond6.test cond7.test condman.test condman2.test \ -conf2.test confdist.test confh.test confh2.test confh3.test \ -config.test confincl.test confsub.test confvar.test confvar2.test \ -copy.test cxxcpp.test cxxlibobj.test cxxlink.test cxxnoc.test \ -cxxo.test cygwin32.test defun.test defun2.test dejagnu.test \ -depacl.test depacl2.test depend.test depend2.test depend3.test \ -discover.test distdir.test dup.test dup2.test else.test empty.test \ -error.test exdir.test exdir2.test exsource.test ext.test extra.test \ -extra3.test extra4.test flibs.test fnoc.test fo.test fonly.test \ -fpinst2.test fpinstall.test gnits.test implicit.test include.test \ -info.test insh.test insh2.test install.test installsh.test \ -instdata.test instexec.test insthook.test instman.test interp.test \ -interp2.test java.test javaprim.test javasubst.test ldadd.test \ -lex.test lex2.test lex3.test libobj.test libobj2.test libobj3.test \ -libobj4.test libobj5.test libobj6.test libobj7.test libobj8.test \ -libobj9.test library.test link_c_cxx.test link_f_c.test \ -link_f_c_cxx.test link_f_cxx.test link_f_only.test lisp.test \ -mclean.test mdate.test mdate2.test mdate3.test mkinst2.test \ +block.test canon.test canon2.test canon3.test canon4.test \ +checkall.test clean.test colneq.test colneq2.test colon.test \ +colon2.test colon3.test colon4.test colon5.test colon6.test \ +colon7.test comment.test comment2.test compile_f_c_cxx.test cond.test \ +cond2.test cond3.test cond4.test cond5.test cond6.test cond7.test \ +cond8.test condman.test condman2.test conf2.test confdist.test \ +confh.test confh2.test confh3.test config.test confincl.test \ +confsub.test confvar.test confvar2.test copy.test cxxcpp.test \ +cxxlibobj.test cxxlink.test cxxnoc.test cxxo.test cygwin32.test \ +defun.test defun2.test dejagnu.test depacl.test depacl2.test \ +depend.test depend2.test depend3.test discover.test distdir.test \ +dup.test dup2.test else.test empty.test error.test exdir.test \ +exdir2.test exsource.test ext.test extra.test extra3.test extra4.test \ +flibs.test fnoc.test fo.test fonly.test fpinst2.test fpinstall.test \ +gnits.test implicit.test include.test info.test insh.test insh2.test \ +install.test installsh.test instdata.test instexec.test insthook.test \ +instman.test interp.test interp2.test java.test javaprim.test \ +javasubst.test ldadd.test lex.test lex2.test lex3.test libobj.test \ +libobj2.test libobj3.test libobj4.test libobj5.test libobj6.test \ +libobj7.test libobj8.test libobj9.test library.test link_c_cxx.test \ +link_f_c.test link_f_c_cxx.test link_f_cxx.test link_f_only.test \ +lisp.test mclean.test mdate.test mdate2.test mdate3.test mkinst2.test \ mkinstall.test nodep.test noinst.test number.test objc.test \ obsolete.test obsolete2.test order.test outdir.test output.test \ output2.test output3.test output4.test output5.test package.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index 0fb4725b..374584ea 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -68,47 +68,7 @@ VERSION = @VERSION@ AUTOMAKE_OPTIONS = gnits XFAIL_TESTS = confh.test -TESTS = acinclude.test aclocal.test aclocali.test aclocalii.test \ -acoutnoq.test acoutput.test acoutqnl.test acouttbs.test acsilent.test \ -all.test alpha.test ammissing.test ansi.test ansi2.test ansi3.test \ -auxdir.test backsl.test backsl2.test badline.test badprog.test \ -block.test canon.test canon2.test canon3.test canon4.test checkall.test \ -clean.test colneq.test colneq2.test colon.test colon2.test colon3.test \ -colon4.test colon5.test colon6.test colon7.test comment.test \ -comment2.test compile_f_c_cxx.test cond.test cond2.test cond3.test \ -cond4.test cond5.test cond6.test cond7.test condman.test condman2.test \ -conf2.test confdist.test confh.test confh2.test confh3.test \ -config.test confincl.test confsub.test confvar.test confvar2.test \ -copy.test cxxcpp.test cxxlibobj.test cxxlink.test cxxnoc.test \ -cxxo.test cygwin32.test defun.test defun2.test dejagnu.test \ -depacl.test depacl2.test depend.test depend2.test depend3.test \ -discover.test distdir.test dup.test dup2.test else.test empty.test \ -error.test exdir.test exdir2.test exsource.test ext.test extra.test \ -extra3.test extra4.test flibs.test fnoc.test fo.test fonly.test \ -fpinst2.test fpinstall.test gnits.test implicit.test include.test \ -info.test insh.test insh2.test install.test installsh.test \ -instdata.test instexec.test insthook.test instman.test interp.test \ -interp2.test java.test javaprim.test javasubst.test ldadd.test \ -lex.test lex2.test lex3.test libobj.test libobj2.test libobj3.test \ -libobj4.test libobj5.test libobj6.test libobj7.test libobj8.test \ -libobj9.test library.test link_c_cxx.test link_f_c.test \ -link_f_c_cxx.test link_f_cxx.test link_f_only.test lisp.test \ -mclean.test mdate.test mdate2.test mdate3.test mkinst2.test \ -mkinstall.test nodep.test noinst.test number.test objc.test \ -obsolete.test obsolete2.test order.test outdir.test output.test \ -output2.test output3.test output4.test output5.test package.test \ -parse.test pluseq.test pluseq2.test pluseq3.test pluseq4.test \ -pluseq5.test pluseq6.test pluseq7.test ppf77.test prefix.test \ -primary.test primary2.test proginst.test ranlib.test recurs.test \ -recurs2.test remake.test remake2.test req.test rulepat.test \ -scripts.test seenc.test sinclude.test spell.test spell2.test \ -spell3.test spelling.test stamph.test stdlib.test subdir.test \ -subdir2.test subdir3.test subst.test symlink.test syntax.test \ -tags.test tagsub.test target.test texinfo.test texinfo2.test \ -texinfo3.test texinfo4.test texinfo5.test texinfo6.test texinfo7.test \ -texinfo8.test unused.test version.test version2.test version3.test \ -vpath.test vtexi.test vtexi2.test whoami.test xsource.test yacc.test \ -yaccpp.test +TESTS = acinclude.test aclocal.test aclocali.test aclocalii.test acoutnoq.test acoutput.test acoutqnl.test acouttbs.test acsilent.test all.test alpha.test ammissing.test ansi.test ansi2.test ansi3.test auxdir.test backsl.test backsl2.test badline.test badprog.test block.test canon.test canon2.test canon3.test canon4.test checkall.test clean.test colneq.test colneq2.test colon.test colon2.test colon3.test colon4.test colon5.test colon6.test colon7.test comment.test comment2.test compile_f_c_cxx.test cond.test cond2.test cond3.test cond4.test cond5.test cond6.test cond7.test cond8.test condman.test condman2.test conf2.test confdist.test confh.test confh2.test confh3.test config.test confincl.test confsub.test confvar.test confvar2.test copy.test cxxcpp.test cxxlibobj.test cxxlink.test cxxnoc.test cxxo.test cygwin32.test defun.test defun2.test dejagnu.test depacl.test depacl2.test depend.test depend2.test depend3.test discover.test distdir.test dup.test dup2.test else.test empty.test error.test exdir.test exdir2.test exsource.test ext.test extra.test extra3.test extra4.test flibs.test fnoc.test fo.test fonly.test fpinst2.test fpinstall.test gnits.test implicit.test include.test info.test insh.test insh2.test install.test installsh.test instdata.test instexec.test insthook.test instman.test interp.test interp2.test java.test javaprim.test javasubst.test ldadd.test lex.test lex2.test lex3.test libobj.test libobj2.test libobj3.test libobj4.test libobj5.test libobj6.test libobj7.test libobj8.test libobj9.test library.test link_c_cxx.test link_f_c.test link_f_c_cxx.test link_f_cxx.test link_f_only.test lisp.test mclean.test mdate.test mdate2.test mdate3.test mkinst2.test mkinstall.test nodep.test noinst.test number.test objc.test obsolete.test obsolete2.test order.test outdir.test output.test output2.test output3.test output4.test output5.test package.test parse.test pluseq.test pluseq2.test pluseq3.test pluseq4.test pluseq5.test pluseq6.test pluseq7.test ppf77.test prefix.test primary.test primary2.test proginst.test ranlib.test recurs.test recurs2.test remake.test remake2.test req.test rulepat.test scripts.test seenc.test sinclude.test spell.test spell2.test spell3.test spelling.test stamph.test stdlib.test subdir.test subdir2.test subdir3.test subst.test symlink.test syntax.test tags.test tagsub.test target.test texinfo.test texinfo2.test texinfo3.test texinfo4.test texinfo5.test texinfo6.test texinfo7.test texinfo8.test unused.test version.test version2.test version3.test vpath.test vtexi.test vtexi2.test whoami.test xsource.test yacc.test yaccpp.test EXTRA_DIST = defs $(TESTS) @@ -154,50 +114,24 @@ distdir: $(DISTFILES) fi; \ done check-TESTS: $(TESTS) - @failed=0; all=0; xfail=0; xpass=0; \ + @failed=0; all=0; \ srcdir=$(srcdir); export srcdir; \ for tst in $(TESTS); do \ - if test -f ./$$tst; then dir=./; \ - elif test -f $$tst; then dir=; \ + if test -f $$tst; then dir=; \ else dir="$(srcdir)/"; fi; \ if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ all=`expr $$all + 1`; \ - case " $(XFAIL_TESTS) " in \ - *" $$tst "*) \ - xpass=`expr $$xpass + 1`; \ - failed=`expr $$failed + 1`; \ - echo "XPASS: $$tst"; \ - ;; \ - *) \ - echo "PASS: $$tst"; \ - ;; \ - esac; \ + echo "PASS: $$tst"; \ elif test $$? -ne 77; then \ all=`expr $$all + 1`; \ - case " $(XFAIL_TESTS) " in \ - *" $$tst "*) \ - xfail=`expr $$xfail + 1`; \ - echo "XFAIL: $$tst"; \ - ;; \ - *) \ - failed=`expr $$failed + 1`; \ - echo "FAIL: $$tst"; \ - ;; \ - esac; \ + failed=`expr $$failed + 1`; \ + echo "FAIL: $$tst"; \ fi; \ done; \ if test "$$failed" -eq 0; then \ - if test "$$xfail" -eq 0; then \ - banner="All $$all tests passed"; \ - else \ - banner="All $$all tests behaved as expected ($$xfail expected failures)"; \ - fi; \ + banner="All $$all tests passed"; \ else \ - if test "$$xpass" -eq 0; then \ - banner="$$failed of $$all tests failed"; \ - else \ - banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \ - fi; \ + banner="$$failed of $$all tests failed"; \ fi; \ dashes=`echo "$$banner" | sed s/./=/g`; \ echo "$$dashes"; \ diff --git a/tests/cond8.test b/tests/cond8.test new file mode 100755 index 00000000..43deacd1 --- /dev/null +++ b/tests/cond8.test @@ -0,0 +1,19 @@ +#! /bin/sh + +# Test to make sure _PROGRAMS conditionals can be written in a useful +# way. + +. $srcdir/defs || exit 1 + +echo 'AC_PROG_CC' >> configure.in +echo 'AM_CONDITIONAL(X, false)' >> configure.in + +cat > Makefile.am << 'END' +if X +bin_PROGRAMS = x y +else +noinst_PROGRAMS = x y +endif +END + +$AUTOMAKE -- 2.43.5