Ignore:
Timestamp:
2013-05-27T12:27:31+12:00 (11 years ago)
Author:
jmt12
Message:

Adding makeAllDirectories() (which I'd only implemented in LocalFS) to FileUtils (which in turn calls the Driver specific makeDirectory() recursively) and added test for this function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/parallel-building/trunk/src/bin/script/test_fileutils.pl

    r27480 r27481  
    1010my $display_errors = 0;
    1111
    12 my $test_localfs = 1;
     12my $test_localfs = 0;
    1313my $test_hdthriftfs = 1;
    14 my $test_hdfsshell = 1;
     14my $test_hdfsshell = 0;
    1515
    1616# Globals
     
    467467  $pass_count += &testAction(\$test_count, 'makeDirectory() to create a new directory', 1, &FileUtils::makeDirectory($path));
    468468  $pass_count += &testAction(\$test_count, 'makeDirectory() for an existing directory', 1, &FileUtils::makeDirectory($path));
     469
     470  my $multiple_dirs_path = $path . '/foo/bar/wibble';
     471  $pass_count += &testAction(\$test_count, 'makeAllDirectories() to create several nested directories', 1, &FileUtils::makeAllDirectories($multiple_dirs_path));
     472  &FileUtils::removeFilesRecursive($path . '/foo');
    469473}
    470474
Note: See TracChangeset for help on using the changeset viewer.