Subversion Repositories DevTools

Rev

Rev 4699 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4699 Rev 4700
Line 9173... Line 9173...
9173
#
9173
#
9174
    MakeHeader ("Automated tests");
9174
    MakeHeader ("Automated tests");
9175
 
9175
 
9176
    my $idx = 0;
9176
    my $idx = 0;
9177
    my @copy_set = ();
9177
    my @copy_set = ();
-
 
9178
    
-
 
9179
    # 
-
 
9180
    #   Insert the three rules that surround test execution:
-
 
9181
    #    - preprocess_tests runs before any test has run
-
 
9182
    #    - postprocess_tests runs after all tests have run
-
 
9183
    #    - collate_test_results runs after all postprocess_tests have run
-
 
9184
    #
-
 
9185
    $if->PreprocessTests();
-
 
9186
    $if->PostprocessTests();
-
 
9187
    $if->CollateTestResults();
9178
 
9188
 
9179
    foreach my $pEntry ( @TESTS_TO_RUN )
9189
    foreach my $pEntry ( @TESTS_TO_RUN )
9180
    {                                           # Foreach test
9190
    {                                           # Foreach test
9181
        $idx++;
9191
        $idx++;
9182
        $pEntry->{'index'} = $idx;
9192
        $pEntry->{'index'} = $idx;
Line 9725... Line 9735...
9725
my @unprogact;
9735
my @unprogact;
9726
push @unprogact, RmFilesCmd( 'PROGS' )        if ( @PROGS );
9736
push @unprogact, RmFilesCmd( 'PROGS' )        if ( @PROGS );
9727
push @unprogact, RmFilesCmd( 'TOOLSETPROGS' ) if ( @TOOLSETPROGS );
9737
push @unprogact, RmFilesCmd( 'TOOLSETPROGS' ) if ( @TOOLSETPROGS );
9728
 
9738
 
9729
#
9739
#
9730
#   Dependencies for 'run_tests'
9740
#   Dependencies for 'exec_tests'
9731
#
9741
#
9732
my @testprogdep;
9742
my @testprogdep;
9733
push @testprogdep, '$(GBE_OBJDIR)', '$(GBE_BINDIR)', '$(TESTPROGS)' if ( @TESTPROGS );
9743
push @testprogdep, '$(GBE_OBJDIR)', '$(GBE_BINDIR)', '$(TESTPROGS)' if ( @TESTPROGS );
9734
 
9744
 
9735
my @autoruntestdep;
9745
my @autoruntestdep;
Line 9739... Line 9749...
9739
push @runtestdep, 'makefile.pl'      if ( @TESTPROJECT_TO_URUN || @TESTPROJECT_TO_ARUN);
9749
push @runtestdep, 'makefile.pl'      if ( @TESTPROJECT_TO_URUN || @TESTPROJECT_TO_ARUN);
9740
push @runtestdep, '$(UNITTESTS)'     if ( @TESTPROJECT_TO_URUN);
9750
push @runtestdep, '$(UNITTESTS)'     if ( @TESTPROJECT_TO_URUN);
9741
push @runtestdep, '$(AUTOUNITTESTS)' if ( @TESTPROJECT_TO_ARUN);
9751
push @runtestdep, '$(AUTOUNITTESTS)' if ( @TESTPROJECT_TO_ARUN);
9742
 
9752
 
9743
#
9753
#
9744
#   Dependencies for 'run_tests' and friends
9754
#   Dependencies for 'exec_tests' and friends
9745
#
9755
#
9746
my @untestprogact;
9756
my @untestprogact;
9747
push @untestprogact ,RmFilesCmd( 'TESTPROGS' ) if ( @TESTPROGS );
9757
push @untestprogact ,RmFilesCmd( 'TESTPROGS' ) if ( @TESTPROGS );
9748
 
9758
 
9749
#
9759
#
Line 9816... Line 9826...
9816
PrintPhonyRule ('make_script',    "@scriptdep" );
9826
PrintPhonyRule ('make_script',    "@scriptdep" );
9817
PrintPhonyRule ('unmake_script',  "", \@unscriptact );
9827
PrintPhonyRule ('unmake_script',  "", \@unscriptact );
9818
PrintPhonyRule ('make_prog',      "make_script @progdep @projectdep" );
9828
PrintPhonyRule ('make_prog',      "make_script @progdep @projectdep" );
9819
PrintPhonyRule ('unmake_prog',    "unmake_script @projectcleandep", \@unprogact );
9829
PrintPhonyRule ('unmake_prog',    "unmake_script @projectcleandep", \@unprogact );
9820
PrintPhonyRule ('lint_prog',      "@proglintdep" );
9830
PrintPhonyRule ('lint_prog',      "@proglintdep" );
9821
PrintPhonyRule ('run_tests',      "make_script @testprogdep @runtestdep" );
9831
PrintPhonyRule ('exec_tests',     "make_script @testprogdep @runtestdep" );
9822
PrintPhonyRule ('run_unit_tests', "make_script @testprogdep @autoruntestdep" );
9832
PrintPhonyRule ('exec_unit_tests',"make_script @testprogdep @autoruntestdep" );
9823
PrintPhonyRule ('make_test',      "make_script @testprogdep" );
9833
PrintPhonyRule ('make_test',      "make_script @testprogdep" );
9824
PrintPhonyRule ('unmake_test',    "unmake_script", \@untestprogact );
9834
PrintPhonyRule ('unmake_test',    "unmake_script", \@untestprogact );
9825
 
9835
 
9826
#-------------------------------------------------------------------------------
9836
#-------------------------------------------------------------------------------
9827
#   Package and Installation Summary
9837
#   Package and Installation Summary
Line 9955... Line 9965...
9955
    Maketag( "make_mlib",           @mlibdep );
9965
    Maketag( "make_mlib",           @mlibdep );
9956
    Maketag( "make_install_shlib",  %INSTALL_SHLIBS || @shlibdep);
9966
    Maketag( "make_install_shlib",  %INSTALL_SHLIBS || @shlibdep);
9957
    Maketag( "make_script",         @scriptdep );
9967
    Maketag( "make_script",         @scriptdep );
9958
    Maketag( "make_prog",           @progdep || @projectdep );
9968
    Maketag( "make_prog",           @progdep || @projectdep );
9959
    Maketag( "make_test",           @testprogdep );
9969
    Maketag( "make_test",           @testprogdep );
9960
    Maketag( "run_tests",           $TESTS_TO_RUN     || @TESTPROJECT_TO_URUN || $TESTS_TO_AUTORUN || @TESTPROJECT_TO_ARUN );
9970
    Maketag( "exec_tests",          $TESTS_TO_RUN     || @TESTPROJECT_TO_URUN || $TESTS_TO_AUTORUN || @TESTPROJECT_TO_ARUN );
9961
    Maketag( "run_unit_tests",      $TESTS_TO_AUTORUN || @TESTPROJECT_TO_ARUN );
9971
    Maketag( "exec_unit_tests",     $TESTS_TO_AUTORUN || @TESTPROJECT_TO_ARUN );
9962
    Maketag( "install_hdr",         %INSTALL_HDRS );
9972
    Maketag( "install_hdr",         %INSTALL_HDRS );
9963
    Maketag( "install_class",       %INSTALL_CLSS );
9973
    Maketag( "install_class",       %INSTALL_CLSS );
9964
    Maketag( "install_lib",         %INSTALL_LIBS );
9974
    Maketag( "install_lib",         %INSTALL_LIBS );
9965
    Maketag( "install_prog",        %INSTALL_PROGS );
9975
    Maketag( "install_prog",        %INSTALL_PROGS );
9966
    Maketag( "deploy",              %DEPLOYPACKAGE );
9976
    Maketag( "deploy",              %DEPLOYPACKAGE );