VirtualBox

Changeset 1973 in kBuild for trunk/src/kmk/tests


Ignore:
Timestamp:
Oct 26, 2008 10:47:16 PM (16 years ago)
Author:
bird
Message:

tests: added a -fast option to indicate kmk_fgmake.

Location:
trunk/src/kmk/tests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/tests/run_make_tests.pl

    r1970 r1973  
    145145  if ($options) {
    146146    $command .= " $options";
    147   } elsif ($is_kmk) {
    148 #    $command .= " -j1";
    149147  }
    150148
  • trunk/src/kmk/tests/scripts/targets/INTERMEDIATE

    r1966 r1973  
    5656
    5757# TEST #3
    58 # kmk: differs because of different hashing.
     58# kmk+fast: differs because of different hashing.
    5959
    6060&run_make_with_options($makefile,'foo.c',&get_logfile);
    6161$answer = "cp foo.f foo.e\ncp bar.f bar.e\ncat foo.e bar.e > foo.c\n"
    62         . (!$is_kmk ? "rm bar.e foo.e\n" : "rm foo.e bar.e\n");
     62        . (!$is_kmk && !$is_fast ? "rm bar.e foo.e\n" : "rm foo.e bar.e\n");
    6363&compare_output($answer, &get_logfile(1));
    6464
     
    7070
    7171# TEST #5
    72 # kmk: differs because of different hashing.
     72# kmk+fast: differs because of different hashing.
    7373
    7474&utouch(-10, 'foo.c');
     
    7777&run_make_with_options($makefile,'foo.c',&get_logfile);
    7878$answer = "cp foo.f foo.e\ncp bar.f bar.e\ncat foo.e bar.e > foo.c\n"
    79         . (!$is_kmk ? "rm bar.e foo.e\n" : "rm foo.e bar.e\n");
     79        . (!$is_kmk && !$is_fast ? "rm bar.e foo.e\n" : "rm foo.e bar.e\n");
    8080&compare_output($answer, &get_logfile(1));
    8181
  • trunk/src/kmk/tests/test_driver.pl

    r1953 r1973  
    118118  $cwdslash = "";             # $cwd . $pathsep, but "" rather than "./"
    119119  $is_kmk = 0;                # kmk flag.
     120  $is_fast = 0;               # kmk_fgmake flag.
    120121
    121122  &get_osname;  # sets $osname, $vos, $pathsep, $short_filenames,
     
    356357    {
    357358      $is_kmk = 1;
     359    }
     360    elsif ($option =~ /^-fast/i)
     361    {
     362      $is_fast = 1;
    358363    }
    359364    elsif (&valid_option($option))
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette