Ignore:
Timestamp:
Apr 3, 2011, 5:14:46 PM (13 years ago)
Author:
Peter
Message:

Always detect '--help' (fixes #637). Change CommandLine::parse so the
entire commandline is parsed. When an error is detected it is stored
and _after_ commandline has been parsed, the exception is thrown. New
tests 'help.test' and 'help_test.sh'; latter calls former with
'--help' and invalid arguments to check that '--help' is always
detected. Added a function 'run' in 'common_defs.sh.in'. Remove test
case from commandline.cc because OptionHelp? calls exit and the
remaining tests (in commandline) were not run.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/Makefile.am

    r2452 r2458  
    4646  dna.test ensemble.test feature_selection.test fileutil.test \
    4747  fisher.test genomic_position.test getline_iterator.test \
    48   gff.test histogram.test \
     48  gff.test help.test histogram.test \
    4949  igp.test index.test inputranker.test interpolation.test \
    5050  iterator.test kernel_lookup.test kernel_pca.test kernel.test \
     
    7070
    7171DISTRIBUTED_TESTS = \
     72help_test.sh \
    7273static_test.sh \
    7374yat_config_test.sh \
     
    9697
    9798# dependencies for lazycheck
     99help_test.log: help.test common_defs.sh
    98100static_test.log: $(top_srcdir)/m4/yat.m4 common_defs.sh
    99101yat_config_test.log: $(top_builddir)/build_support/yat-config \
Note: See TracChangeset for help on using the changeset viewer.