Subversion Repositories DevTools

Rev

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

Rev 3967 Rev 4095
Line 9081... Line 9081...
9081
#   Automated tests
9081
#   Automated tests
9082
#
9082
#
9083
    MakeHeader ("Automated tests");
9083
    MakeHeader ("Automated tests");
9084
 
9084
 
9085
    my $idx = 0;
9085
    my $idx = 0;
9086
    my @test_set = ("makefile.pl");
9086
    my @test_set;
9087
    my @test_set_auto = ("makefile.pl");
9087
    my @test_set_auto;
9088
    my @copy_set = ();
9088
    my @copy_set = ();
9089
 
9089
 
9090
    foreach my $pEntry ( @TESTS_TO_RUN )
9090
    foreach my $pEntry ( @TESTS_TO_RUN )
9091
    {                                           # Foreach test
9091
    {                                           # Foreach test
9092
        $idx++;
9092
        $idx++;
Line 9154... Line 9154...
9154
 
9154
 
9155
        $me->AddShellRecipe ( "cd $tdir" );
9155
        $me->AddShellRecipe ( "cd $tdir" );
9156
        $me->AddShellRecipe ( ["GBE_TYPE=\$(GBE_TYPE)",
9156
        $me->AddShellRecipe ( ["GBE_TYPE=\$(GBE_TYPE)",
9157
                               "GBE_HOST=\$(GBE_HOST)",
9157
                               "GBE_HOST=\$(GBE_HOST)",
9158
                               "GBE_ROOT=\$(GBE_ROOT_ABS)",
9158
                               "GBE_ROOT=\$(GBE_ROOT_ABS)",
9159
                    		   "PATH=.\\$::ScmPathSep\$(BINDIR_LOCAL_PATH)\\$::ScmPathSep\$\$PATH",
9159
                               "PATH=.\\$::ScmPathSep\$(BINDIR_LOCAL_PATH)\\$::ScmPathSep\$\$PATH",
9160
                               $pEntry->{'command'},
9160
                               $pEntry->{'command'},
9161
                               @{$pEntry->{'args'}},
9161
                               @{$pEntry->{'args'}},
9162
                               ] );
9162
                               ] );
9163
        $me->Print();
9163
        $me->Print();
9164
 
9164
 
Line 9184... Line 9184...
9184
    #   Generate a target that specifies the tests to be run
9184
    #   Generate a target that specifies the tests to be run
9185
    #   Each test is provided with a dummy name
9185
    #   Each test is provided with a dummy name
9186
    #
9186
    #
9187
    push @test_set, @TESTPROJECT_TO_ARUN;
9187
    push @test_set, @TESTPROJECT_TO_ARUN;
9188
    push @test_set, @TESTPROJECT_TO_URUN;
9188
    push @test_set, @TESTPROJECT_TO_URUN;
-
 
9189
    if (@test_set)
-
 
9190
    {
-
 
9191
        unshift @test_set, 'makefile.pl';
9189
    MakeEntry3("\nrun_tests", ":", \@test_set )
9192
        MakeEntry3("\nrun_tests", ":", \@test_set );
9190
        if (@test_set);
9193
    }
9191
 
9194
 
9192
    push @test_set_auto, @TESTPROJECT_TO_ARUN;
9195
    push @test_set_auto, @TESTPROJECT_TO_ARUN;
-
 
9196
    if (@test_set_auto)
-
 
9197
    {
-
 
9198
        unshift @test_set_auto, 'makefile.pl';
9193
    MakeEntry3("\nrun_unit_tests", ":", \@test_set_auto )
9199
        MakeEntry3("\nrun_unit_tests", ":", \@test_set_auto );
9194
        if (@test_set_auto);
9200
    }
9195
 
9201
 
9196
    #
9202
    #
9197
    #   Generate sanity test for each copyin script
9203
    #   Generate sanity test for each copyin script
9198
    #   Simply to provide a nice error message for generated scripts
9204
    #   Simply to provide a nice error message for generated scripts
9199
    #   that do not exist at run-time
9205
    #   that do not exist at run-time