bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [1/3] BIGTOP-1342. Make TestCLI usable for both HDFS and HCFS
Date Sun, 13 Jul 2014 01:25:38 GMT
Repository: bigtop
Updated Branches:
  refs/heads/master 3daaf982c -> f0bab0355


http://git-wip-us.apache.org/repos/asf/bigtop/blob/f0bab035/bigtop-tests/test-artifacts/hadoop/src/main/resources/clitest_data/testHDFSConf.xml
----------------------------------------------------------------------
diff --git a/bigtop-tests/test-artifacts/hadoop/src/main/resources/clitest_data/testHDFSConf.xml b/bigtop-tests/test-artifacts/hadoop/src/main/resources/clitest_data/testHDFSConf.xml
index d9bb51e..a1257a8 100644
--- a/bigtop-tests/test-artifacts/hadoop/src/main/resources/clitest_data/testHDFSConf.xml
+++ b/bigtop-tests/test-artifacts/hadoop/src/main/resources/clitest_data/testHDFSConf.xml
@@ -22,7 +22,7 @@
   <!-- Normal mode is test. To run just the commands and dump the output
        to the log, set it to nocompare -->
   <mode>test</mode>
-  
+
   <!--  Comparator types:
            ExactComparator
            SubstringComparator
@@ -37,59 +37,16 @@
     test-id not renumbered after test removal.
            -->
   <tests>
-    <!-- Tests for ls -->
-    <test> <!-- TESTED test-id=1 -->
-      <description>ls: file using absolute path</description>
-      <test-commands>
-        <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command>
-        <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/file1</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/file1</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>TokenComparator</type>
-          <expected-output>Found 1 items</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file1</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <test> <!-- TESTED test-id=2 -->
-      <description>ls: file using relative path</description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir -p dir</command>
-        <command>-fs NAMENODE -touchz file1</command>
-        <command>-fs NAMENODE -ls file1</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm file1</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>TokenComparator</type>
-          <expected-output>Found 1 items</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file1</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <test> <!-- TESTED test-id=3 -->
-      <description>ls: files using globbing</description>
+
+    <test> <!-- TESTEDtest-id=242 -->
+      <description>checksum: checksum of files(relative path) using globbing</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir -p dir</command>
-        <command>-fs NAMENODE -touchz file1</command>
-        <command>-fs NAMENODE -touchz file2</command>
-        <command>-fs NAMENODE -touchz file3</command>
-        <command>-fs NAMENODE -touchz file4</command>
-        <command>-fs NAMENODE -ls file*</command>
+        <command>-fs NAMENODE -mkdir -p dir0</command>
+        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes dir0/data15bytes</command>
+        <command>-fs NAMENODE -put CLITEST_DATA/data30bytes dir0/data30bytes</command>
+        <command>-fs NAMENODE -put CLITEST_DATA/data60bytes dir0/data60bytes</command>
+        <command>-fs NAMENODE -put CLITEST_DATA/data120bytes dir0/data120bytes</command>
+        <command>-fs NAMENODE -checksum dir0/data*</command>
       </test-commands>
       <cleanup-commands>
         <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command>
@@ -97,12545 +54,243 @@
       <comparators>
         <comparator>
           <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file2</expected-output>
+          <expected-output>^dir0/data120bytes\tMD5-of-0MD5-of-512CRC32C\t000002000000000000000000a58cdc3c0967fc8cddb7fed5960d06f2</expected-output>
         </comparator>
         <comparator>
           <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file3</expected-output>
+          <expected-output>^dir0/data15bytes\tMD5-of-0MD5-of-512CRC32C\t0000020000000000000000007267e9528002723a30939aefc238d665</expected-output>
         </comparator>
         <comparator>
           <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file4</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <test> <!-- TESTED test-id=4 -->
-      <description>ls: directory using absolute path</description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir1</command>
-        <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir1</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>TokenComparator</type>
-          <expected-output>Found 1 items</expected-output>
+          <expected-output>^dir0/data30bytes\tMD5-of-0MD5-of-512CRC32C\t000002000000000000000000fc09371298117c4943cf089b4bd79c96</expected-output>
         </comparator>
         <comparator>
           <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir1</expected-output>
+          <expected-output>^dir0/data60bytes\tMD5-of-0MD5-of-512CRC32C\t000002000000000000000000009476431d851dd7b0a8d057a404d7b9</expected-output>
         </comparator>
       </comparators>
     </test>
-    
-    <test> <!-- TESTED test-id=5 -->
-      <description>ls: directory using relative path</description>
+
+    <test> <!-- TESTEDtest-id=294 -->
+      <description>stat: statistics about directory(absolute path)</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir -p dir1</command>
-        <command>-fs NAMENODE -ls </command>
+        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dirtest</command>
+        <command>-fs NAMENODE -stat "%n-%b-%o" TEST_DIR_ABSOLUTE/dirtest</command>
       </test-commands>
       <cleanup-commands>
-        <command>-fs NAMENODE -rm -r /user/USER_NAME/dir1</command>
+        <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dirtest</command>
       </cleanup-commands>
       <comparators>
         <comparator>
           <type>TokenComparator</type>
-          <expected-output>Found 1 items</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir1</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <test> <!-- TESTED test-id=6 -->
-      <description>ls: directory using globbing</description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir -p dir1</command>
-        <command>-fs NAMENODE -mkdir -p dir2</command>
-        <command>-fs NAMENODE -mkdir -p dir3</command>
-        <command>-fs NAMENODE -mkdir -p dir4</command>
-        <command>-fs NAMENODE -ls </command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir3</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir4</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <test> <!-- TESTED test-id=7 -->
-      <description>ls: file/directory that does not exist in TEST_DIR_ABSOLUTE</description>
-      <test-commands>
-        <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/file1</command>
-      </test-commands>
-      <cleanup-commands>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^ls: `TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <test> <!-- TESTED test-id=8 xxx -->
-      <description>ls: file/directory that does not exist in home directory (/user/username)</description>
-      <test-commands>
-        <!--<command>-fs NAMENODE -ls file1</command>-->
-        <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/file1</command>
-      </test-commands>
-      <cleanup-commands>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^ls: `TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output>
+          <expected-output>dirtest-0-0</expected-output>
         </comparator>
       </comparators>
     </test>
 
-    <test> <!-- TESTED test-id=9 -->
-      <description>ls: Non-URI input file at Namenode's path</description>
+    <test> <!-- TESTEDtest-id=295 -->
+      <description>stat: statistics about directory(relative path)</description>
       <test-commands>
-        <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command>
-        <command>-fs NAMENODE -ls NAMENODETEST_DIR_ABSOLUTE/file1</command>
+        <command>-fs NAMENODE -mkdir -p dirtest</command>
+        <command>-fs NAMENODE -stat "%n-%b-%o" dirtest</command>
       </test-commands>
       <cleanup-commands>
-        <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/file1</command>
+        <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command>
       </cleanup-commands>
       <comparators>
         <comparator>
           <type>TokenComparator</type>
-          <expected-output>Found 1 items</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file1</expected-output>
+          <expected-output>dirtest-0-0</expected-output>
         </comparator>
       </comparators>
     </test>
 
-    <test> <!-- TESTED test-id=10 -->
-      <description>ls: file at hdfs:// path</description>
+    <test> <!-- TESTEDtest-id=296 -->
+      <description>stat: statistics about files (absolute path) using globbing</description>
       <test-commands>
-        <command>-fs NAMENODE -touchz hdfs://TEST_DIR_ABSOLUTE/file1</command>
-        <command>-fs NAMENODE -ls hdfs://TEST_DIR_ABSOLUTE/file1</command>
+        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command>
+        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/dir0/data15bytes</command>
+        <command>-fs NAMENODE -put CLITEST_DATA/data30bytes TEST_DIR_ABSOLUTE/dir0/data30bytes</command>
+        <command>-fs NAMENODE -put CLITEST_DATA/data60bytes TEST_DIR_ABSOLUTE/dir0/data60bytes</command>
+        <command>-fs NAMENODE -put CLITEST_DATA/data120bytes TEST_DIR_ABSOLUTE/dir0/data120bytes</command>
+        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/datadir</command>
+        <command>-fs NAMENODE -stat "%n-%b" TEST_DIR_ABSOLUTE/dir0/data*</command>
       </test-commands>
       <cleanup-commands>
-        <command>-fs NAMENODE -rm hdfs://TEST_DIR_ABSOLUTE/file1</command>
+        <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command>
       </cleanup-commands>
       <comparators>
         <comparator>
           <type>TokenComparator</type>
-          <expected-output>Found 1 items</expected-output>
+          <expected-output>"data15bytes-15"</expected-output>
         </comparator>
         <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*hdfs://TEST_DIR_ABSOLUTE/file1</expected-output>
+          <type>TokenComparator</type>
+          <expected-output>"data30bytes-30"</expected-output>
         </comparator>
-      </comparators>
-    </test>
-
-    <test> <!-- TESTED test-id=11 -->
-      <description>ls: Non-URI input file at Namenode's path using globing</description>
-      <test-commands>
-        <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command>
-        <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file2</command>
-        <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file3</command>
-        <command>-fs NAMENODE -ls NAMENODETEST_DIR_ABSOLUTE/file*</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/file*</command>
-      </cleanup-commands>
-      <comparators>
         <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file1</expected-output>
+          <type>TokenComparator</type>
+          <expected-output>"data60bytes-60"</expected-output>
         </comparator>
         <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file2</expected-output>
+          <type>TokenComparator</type>
+          <expected-output>"data120bytes-120"</expected-output>
         </comparator>
         <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file3</expected-output>
+          <type>TokenComparator</type>
+          <expected-output>"datadir-0"</expected-output>
         </comparator>
       </comparators>
     </test>
 
-    <test> <!-- TESTED test-id=12 -->
-      <description>ls: file at hdfs:// path using globing</description>
+    <test> <!-- TESTEDtest-id=297 -->
+      <description>stat: statistics about files (relative path) using globbing</description>
       <test-commands>
-        <command>-fs NAMENODE -touchz hdfs://TEST_DIR_ABSOLUTE/file1</command>
-        <command>-fs NAMENODE -touchz hdfs://TEST_DIR_ABSOLUTE/file2</command>
-        <command>-fs NAMENODE -touchz hdfs://TEST_DIR_ABSOLUTE/file3</command>
-        <command>-fs NAMENODE -ls hdfs://TEST_DIR_ABSOLUTE/file*</command>
+        <command>-fs NAMENODE -mkdir -p dir</command>
+        <command>-fs NAMENODE -touchz test</command>
+        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes data15bytes</command>
+        <command>-fs NAMENODE -put CLITEST_DATA/data30bytes data30bytes</command>
+        <command>-fs NAMENODE -put CLITEST_DATA/data60bytes data60bytes</command>
+        <command>-fs NAMENODE -put CLITEST_DATA/data120bytes data120bytes</command>
+        <command>-fs NAMENODE -mkdir -p datadir</command>
+        <command>-fs NAMENODE -stat "%n-%b" data*</command>
       </test-commands>
       <cleanup-commands>
-        <command>-fs NAMENODE -rm hdfs://TEST_DIR_ABSOLUTE/file*</command>
+        <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command>
       </cleanup-commands>
       <comparators>
         <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*hdfs://TEST_DIR_ABSOLUTE/file1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*hdfs://TEST_DIR_ABSOLUTE/file2</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*hdfs://TEST_DIR_ABSOLUTE/file3</expected-output>
+          <type>TokenComparator</type>
+          <expected-output>"data15bytes-15"</expected-output>
         </comparator>
-      </comparators>
-    </test>
-
-    <test> <!-- TESTED test-id=13 xxx -->
-      <description>ls: Non-URI input dir at Namenode's path</description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir -p NAMENODE/user/USER_NAME/dir1</command>
-        <command>-fs NAMENODE -ls hdfs:///user/USER_NAME</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm hdfs:///user/USER_NAME/dir1</command>
-      </cleanup-commands>
-      <comparators>
         <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>Found [0-9] items</expected-output>
+          <type>TokenComparator</type>
+          <expected-output>"data30bytes-30"</expected-output>
         </comparator>
         <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*hdfs:///user/USER_NAME/dir1</expected-output>
+          <type>TokenComparator</type>
+          <expected-output>"data60bytes-60"</expected-output>
         </comparator>
-      </comparators>
-    </test>
-
-    <test> <!-- TESTED test-id=14 -->
-      <description>ls: dir at hdfs:// path</description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir -p hdfs:///user/USER_NAME/dir1</command>
-        <command>-fs NAMENODE -ls hdfs:///user/USER_NAME</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm hdfs:///user/USER_NAME/dir1</command>
-      </cleanup-commands>
-      <comparators>
         <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>Found [0-9] items</expected-output>
+          <type>TokenComparator</type>
+          <expected-output>"data120bytes-120"</expected-output>
         </comparator>
         <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*hdfs:///user/USER_NAME/dir1</expected-output>
+          <type>TokenComparator</type>
+          <expected-output>"datadir-0"</expected-output>
         </comparator>
       </comparators>
     </test>
 
-    <test> <!-- TESTED test-id=15 -->
-      <description>ls: Non-URI input dir at Namenode's path using globing</description>
+    <test> <!-- TESTEDtest-id=301 -->
+      <description>stat: Test for HCFS_SCHEME// path - statistics about directory</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir -p NAMENODE/user/USER_NAME/dir1</command>
-        <command>-fs NAMENODE -mkdir -p NAMENODE/user/USER_NAME/dir2</command>
-        <command>-fs NAMENODE -mkdir -p NAMENODE/user/USER_NAME/dir3</command>
-        <command>-fs NAMENODE -ls hdfs:///user/USER_NAME</command>
+        <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dirtest</command>
+        <command>-fs NAMENODE -stat "%n-%b-%o" HCFS_SCHEME//TEST_DIR_ABSOLUTE/dirtest</command>
       </test-commands>
       <cleanup-commands>
-        <command>-fs NAMENODE -rm hdfs:///user/USER_NAME/dir*</command>
+        <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dirtest</command>
       </cleanup-commands>
       <comparators>
         <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>Found [0-9] items</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*hdfs:///user/USER_NAME/dir1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*hdfs:///user/USER_NAME/dir2</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*hdfs:///user/USER_NAME/dir3</expected-output>
+          <type>TokenComparator</type>
+          <expected-output>dirtest-0-0</expected-output>
         </comparator>
       </comparators>
     </test>
 
-    <test> <!-- TESTED test-id=16 -->
-      <description>ls: dir at hdfs:// path using globing</description>
+    <test> <!-- TESTEDtest-id=302 -->
+      <description>stat: Test for HCFS_SCHEME// path - statistics about files using globbing</description>
       <test-commands>
-        <command>-fs NAMENODE -mkdir -p hdfs:///user/USER_NAME/dir1</command>
-        <command>-fs NAMENODE -mkdir -p hdfs:///user/USER_NAME/dir2</command>
-        <command>-fs NAMENODE -mkdir -p hdfs:///user/USER_NAME/dir3</command>
-        <command>-fs NAMENODE -ls hdfs:///user/USER_NAME</command>
+        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command>
+        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data15bytes</command>
+        <command>-fs NAMENODE -put CLITEST_DATA/data30bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data30bytes</command>
+        <command>-fs NAMENODE -put CLITEST_DATA/data60bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data60bytes</command>
+        <command>-fs NAMENODE -put CLITEST_DATA/data120bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data120bytes</command>
+        <command>-fs NAMENODE -mkdir -p HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/datadir</command>
+        <command>-fs NAMENODE -stat "%n-%b" HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data*</command>
       </test-commands>
       <cleanup-commands>
-        <command>-fs NAMENODE -rm hdfs:///user/USER_NAMEdir*</command>
+        <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command>
       </cleanup-commands>
       <comparators>
         <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>Found [0-9] items</expected-output>
+          <type>TokenComparator</type>
+          <expected-output>"data15bytes-15"</expected-output>
         </comparator>
         <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*hdfs:///user/USER_NAME/dir1</expected-output>
+          <type>TokenComparator</type>
+          <expected-output>"data30bytes-30"</expected-output>
         </comparator>
         <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*hdfs:///user/USER_NAME/dir2</expected-output>
+          <type>TokenComparator</type>
+          <expected-output>"data60bytes-60"</expected-output>
         </comparator>
         <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*hdfs:///user/USER_NAME/dir3</expected-output>
+          <type>TokenComparator</type>
+          <expected-output>"data120bytes-120"</expected-output>
         </comparator>
-      </comparators>
-    </test>
-
-    <test> <!-- TESTED test-id=17 -->
-      <description>ls:  non-existent file/directory at hdfs:// path </description>
-      <test-commands>
-        <command>-fs NAMENODE -ls hdfs://TEST_DIR_ABSOLUTE/file1</command>
-      </test-commands>
-      <cleanup-commands>
-        <!-- no cleanup -->
-      </cleanup-commands>
-      <comparators>
         <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^ls: `hdfs://TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output>
+          <type>TokenComparator</type>
+          <expected-output>"datadir-0"</expected-output>
         </comparator>
       </comparators>
     </test>
 
-    <test> <!-- TESTED test-id=18 -->
-      <description>ls:  non-existent file/directory in Namenode's path </description>
+    <test> <!-- TESTEDtest-id=305 -->
+      <description>stat: Test for Namenode's path - statistics about directory</description>
       <test-commands>
-        <command>-fs NAMENODE -ls NAMENODETEST_DIR_ABSOLUTE/file1</command>
+        <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dirtest</command>
+        <command>-fs NAMENODE -stat "%n-%b-%o" NAMENODETEST_DIR_ABSOLUTE/dirtest</command>
       </test-commands>
       <cleanup-commands>
-        <!-- no cleanup -->
+        <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dirtest</command>
       </cleanup-commands>
       <comparators>
         <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^ls: `hdfs://\w+[-.a-z0-9]*(:[0-9]+)?TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output>
+          <type>TokenComparator</type>
+          <expected-output>dirtest-0-0</expected-output>
         </comparator>
       </comparators>
     </test>
 
-    <!-- Tests for ls -R -->
-    <test> <!-- TESTED test-id=19 -->
-      <description>ls: files/directories using absolute path</description>
+    <test> <!-- TESTEDtest-id=306 -->
+      <description>stat: Test for Namenode's path - statistics about files using globbing</description>
       <test-commands>
         <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1</command>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1/dir1</command>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1/dir2</command>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir2</command>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir2/dir1</command>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir2/dir2</command>
-        <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command>
-        <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file1</command>
-        <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file2</command>
-        <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir2/file1</command>
-        <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir2/file2</command>
-        <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/dir1/file1</command>
-        <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/dir1/file2</command>
-        <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir2/dir2/file1</command>
-        <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir2/dir2/file2</command>
-        <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/dir0</command>
+        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data15bytes</command>
+        <command>-fs NAMENODE -put CLITEST_DATA/data30bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data30bytes</command>
+        <command>-fs NAMENODE -put CLITEST_DATA/data60bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data60bytes</command>
+        <command>-fs NAMENODE -put CLITEST_DATA/data120bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data120bytes</command>
+        <command>-fs NAMENODE -mkdir -p NAMENODETEST_DIR_ABSOLUTE/dir0/datadir</command>
+        <command>-fs NAMENODE -stat "%n-%b" NAMENODETEST_DIR_ABSOLUTE/dir0/data*</command>
       </test-commands>
       <cleanup-commands>
-        <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command>
+        <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0</command>
       </cleanup-commands>
       <comparators>
         <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1</expected-output>
+          <type>TokenComparator</type>
+          <expected-output>"data15bytes-15"</expected-output>
         </comparator>
         <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir2</expected-output>
+          <type>TokenComparator</type>
+          <expected-output>"data30bytes-30"</expected-output>
         </comparator>
         <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/dir1</expected-output>
+          <type>TokenComparator</type>
+          <expected-output>"data60bytes-60"</expected-output>
         </comparator>
         <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/dir2</expected-output>
+          <type>TokenComparator</type>
+          <expected-output>"data120bytes-120"</expected-output>
         </comparator>
         <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir2/dir1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir2/dir2</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file0</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir2/file1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir2/file2</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/dir1/file1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/dir1/file2</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir2/dir2/file1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir2/dir2/file2</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <test> <!-- TESTED test-id=20 -->
-      <description>ls: files/directories using relative path</description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir -p dir0</command>
-        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
-        <command>-fs NAMENODE -mkdir -p dir0/dir1/dir1</command>
-        <command>-fs NAMENODE -mkdir -p dir0/dir1/dir2</command>
-        <command>-fs NAMENODE -mkdir -p dir0/dir2</command>
-        <command>-fs NAMENODE -mkdir -p dir0/dir2/dir1</command>
-        <command>-fs NAMENODE -mkdir -p dir0/dir2/dir2</command>
-        <command>-fs NAMENODE -touchz dir0/file0</command>
-        <command>-fs NAMENODE -touchz dir0/dir1/file1</command>
-        <command>-fs NAMENODE -touchz dir0/dir1/file2</command>
-        <command>-fs NAMENODE -touchz dir0/dir2/file1</command>
-        <command>-fs NAMENODE -touchz dir0/dir2/file2</command>
-        <command>-fs NAMENODE -touchz dir0/dir1/dir1/file1</command>
-        <command>-fs NAMENODE -touchz dir0/dir1/dir1/file2</command>
-        <command>-fs NAMENODE -touchz dir0/dir2/dir2/file1</command>
-        <command>-fs NAMENODE -touchz dir0/dir2/dir2/file2</command>
-        <command>-fs NAMENODE -ls -R dir0</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir2</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/dir1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/dir2</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir2/dir1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir2/dir2</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/file0</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file2</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir2/file1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir2/file2</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/dir1/file1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/dir1/file2</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir2/dir2/file1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir2/dir2/file2</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <test> <!-- TESTED test-id=21 -->
-      <description>ls: files/directories using globbing</description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir -p dir0</command>
-        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
-        <command>-fs NAMENODE -mkdir -p dir0/dir1/dir1</command>
-        <command>-fs NAMENODE -mkdir -p dir0/dir1/dir2</command>
-        <command>-fs NAMENODE -mkdir -p dir0/dir2</command>
-        <command>-fs NAMENODE -mkdir -p dir0/dir2/dir1</command>
-        <command>-fs NAMENODE -mkdir -p dir0/dir2/dir2</command>
-        <command>-fs NAMENODE -touchz dir0/file0</command>
-        <command>-fs NAMENODE -touchz dir0/dir1/file1</command>
-        <command>-fs NAMENODE -touchz dir0/dir1/file2</command>
-        <command>-fs NAMENODE -touchz dir0/dir2/file1</command>
-        <command>-fs NAMENODE -touchz dir0/dir2/file2</command>
-        <command>-fs NAMENODE -touchz dir0/dir1/dir1/file1</command>
-        <command>-fs NAMENODE -touchz dir0/dir1/dir1/file2</command>
-        <command>-fs NAMENODE -touchz dir0/dir2/dir2/file1</command>
-        <command>-fs NAMENODE -touchz dir0/dir2/dir2/file2</command>
-        <command>-fs NAMENODE -ls -R dir0/*</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/user</command>
-      </cleanup-commands>
-      <comparators>
-        <!-- JIRA?
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^/user/[a-z]*TEST_DIR_ABSOLUTE/dir0/dir1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^/user/[a-z]*TEST_DIR_ABSOLUTE/dir0/dir2</expected-output>
-        </comparator>
-       -->
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/dir1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/dir2</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir2/dir1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir2/dir2</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/file0</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file2</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir2/file1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir2/file2</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/dir1/file1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/dir1/file2</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir2/dir2/file1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir2/dir2/file2</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <test> <!-- TESTED test-id=22 -->
-      <description>ls: file/directory that does not exist in /</description>
-      <test-commands>
-        <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/file1</command>
-      </test-commands>
-      <cleanup-commands>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^ls: `TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <test> <!-- TESTED test-id=23 -->
-      <description>ls: file/directory that does not exist in home directory (/user/username)</description>
-      <test-commands>
-        <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/user</command>
-      </test-commands>
-      <cleanup-commands>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^ls: `TEST_DIR_ABSOLUTE/user': No such file or directory</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <test> <!-- TESTED test-id=24 -->
-      <description>ls: dir at hdfs:// path</description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir hdfs://TEST_DIR_ABSOLUTE/dir0</command>
-        <command>-fs NAMENODE -mkdir hdfs://TEST_DIR_ABSOLUTE/dir0/dir1</command>
-        <command>-fs NAMENODE -touchz hdfs://TEST_DIR_ABSOLUTE/file1</command>
-        <command>-fs NAMENODE -touchz hdfs://TEST_DIR_ABSOLUTE/dir0/file1</command>
-        <command>-fs NAMENODE -touchz hdfs://TEST_DIR_ABSOLUTE/dir0/dir1/file1</command>
-        <command>-fs NAMENODE -ls -R hdfs://TEST_DIR_ABSOLUTE/</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm hdfs://TEST_DIR_ABSOLUTE/dir0</command>
-        <command>-fs NAMENODE -rm hdfs://TEST_DIR_ABSOLUTE/file1</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*hdfs://TEST_DIR_ABSOLUTE/dir0</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*hdfs://TEST_DIR_ABSOLUTE/dir0/dir1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*hdfs://TEST_DIR_ABSOLUTE/file1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*hdfs://TEST_DIR_ABSOLUTE/dir0/file1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*hdfs://TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-
-    <test> <!-- TESTED test-id=25 -->
-      <description>ls: files/directories in hdfs:// path using globbing</description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir hdfs://TEST_DIR_ABSOLUTE/dir0</command>
-        <command>-fs NAMENODE -mkdir hdfs://TEST_DIR_ABSOLUTE/dir0/dir1</command>
-        <command>-fs NAMENODE -touchz hdfs://TEST_DIR_ABSOLUTE/dir0/file1</command>
-        <command>-fs NAMENODE -touchz hdfs://TEST_DIR_ABSOLUTE/dir0/dir1/file1</command>
-        <command>-fs NAMENODE -ls -R hdfs://TEST_DIR_ABSOLUTE/dir0/*</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm -r hdfs://TEST_DIR_ABSOLUTE/dir0</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*hdfs://TEST_DIR_ABSOLUTE/dir0/file1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*hdfs://TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-     
-    <test> <!-- TESTED test-id=26 -->
-      <description>ls: Non-existent file/directory in hdfs:// path</description>
-      <test-commands>
-        <command>-fs NAMENODE -ls -R hdfs://TEST_DIR_ABSOLUTE/file1</command>
-      </test-commands>
-      <cleanup-commands>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^ls: `hdfs://TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <test> <!-- TESTED test-id=27 -->
-      <description>ls: dir at Namenode's path</description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command>
-        <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command>
-        <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command>
-        <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file1</command>
-        <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</command>
-        <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm hdfs://TEST_DIR_ABSOLUTE/dir0</command>
-        <command>-fs NAMENODE -rm hdfs://TEST_DIR_ABSOLUTE/file1</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-
-    <test> <!-- TESTED test-id=28 -->
-      <description>ls: Non-URI input files/directories in Namenode's path </description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command>
-        <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command>
-        <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file1</command>
-        <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</command>
-        <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/dir0/*</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-
-    <test> <!-- TESTED test-id=29 -->
-      <description>ls: Non-URI input for non-existent file/directory in Namenode's path </description>
-      <test-commands>
-        <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/file1</command>
-      </test-commands>
-      <cleanup-commands>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^ls: `hdfs://\w+[-.a-z0-9]*(:[0-9]+)?TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-
-    <test> <!-- TESTED test-id=30 -->
-      <description>ls: Negative test for quoted /*/* globbing </description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1</command>
-        <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file1</command>
-        <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/\*/\*</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>TokenComparator</type>
-          <expected-output>ls: `TEST_DIR_ABSOLUTE/*/*': No such file or directory</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-
-    <test> <!-- TESTED test-id=31 -->
-      <description>ls: Test for quoted globbing </description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/\*</command>
-        <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/\*/file</command>
-        <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file1</command>
-        <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/dir0/\*</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/\*/file</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-
-    <test> <!-- TESTED test-id=32 -->
-      <description>rm: Test for quoted globbing </description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/\*</command>
-        <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/\*/file</command>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1/</command>
-        <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file1</command>
-        <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0/\*</command>
-        <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/dir0</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-
-    <!-- Tests for du -->
-    <test> <!-- TESTED test-id=33 -->
-      <description>du: file using absolute path</description>
-      <test-commands>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/data15bytes</command>
-        <command>-fs NAMENODE -du TEST_DIR_ABSOLUTE/data15bytes</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/data15bytes</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^15\s+TEST_DIR_ABSOLUTE/data15bytes</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <test> <!-- TESTED test-id=34 -->
-      <description>du: file using relative path</description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists -->
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes data15bytesZZ</command>
-        <command>-fs NAMENODE -du data15bytesZZ</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm data15bytesZZ</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^15\s+data15bytesZZ</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <test> <!-- TESTED test-id=35 -->
-      <description>du: files using globbing</description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir -p CLITEST_DATA</command> 
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes data15bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data30bytes data30bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data60bytes data60bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data120bytes data120bytes</command>
-        <command>-fs NAMENODE -du data*</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm data*bytes</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^120\s+data120bytes</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^15\s+data15bytes</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^30\s+data30bytes</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^60\s+data60bytes</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <test> <!-- TESTED test-id=36 -->
-      <description>du: directory using absolute path</description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/dir0/data15bytes</command>
-        <command>-fs NAMENODE -du TEST_DIR_ABSOLUTE/dir0</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^15\s+TEST_DIR_ABSOLUTE/dir0/data15bytes</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <test> <!-- TESTED test-id=37 -->
-      <description>du: directory using relative path</description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir -p dir0</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes dir0/data15bytes</command>
-        <command>-fs NAMENODE -du dir0</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^15\s+dir0/data15bytes</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <test> <!-- TESTED test-id=38 -->
-      <description>du: directory using globbing</description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/dir0/data15bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data30bytes TEST_DIR_ABSOLUTE/dir0/data30bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data60bytes TEST_DIR_ABSOLUTE/dir0/data60bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data120bytes TEST_DIR_ABSOLUTE/dir0/data120bytes</command>
-        <command>-fs NAMENODE -du TEST_DIR_ABSOLUTE/dir0/*</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^15( |\t)*TEST_DIR_ABSOLUTE/dir0/data15bytes</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^30( |\t)*TEST_DIR_ABSOLUTE/dir0/data30bytes</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^60( |\t)*TEST_DIR_ABSOLUTE/dir0/data60bytes</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^120( |\t)*TEST_DIR_ABSOLUTE/dir0/data120bytes</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-   
-    <test> <!-- TESTED test-id=39 -->
-      <description>du: Test for hdfs:// path - file</description>
-      <test-commands>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes hdfs://TEST_DIR_ABSOLUTE/data15bytes</command>
-        <command>-fs NAMENODE -du hdfs://TEST_DIR_ABSOLUTE/data15bytes</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm hdfs://TEST_DIR_ABSOLUTE/data15bytes</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^15\s+hdfs://TEST_DIR_ABSOLUTE/data15bytes</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <test> <!-- TESTED test-id=40 -->
-      <description>du: Test for hdfs:// path - files using globbing</description>
-      <test-commands>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes hdfs://TEST_DIR_ABSOLUTE/data15bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data30bytes hdfs://TEST_DIR_ABSOLUTE/data30bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data60bytes hdfs://TEST_DIR_ABSOLUTE/data60bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data120bytes hdfs://TEST_DIR_ABSOLUTE/data120bytes</command>
-        <command>-fs NAMENODE -du hdfs://TEST_DIR_ABSOLUTE/data*</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm -r hdfs://TEST_DIR_ABSOLUTE/*</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^120\s+hdfs://TEST_DIR_ABSOLUTE/data120bytes</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^15\s+hdfs://TEST_DIR_ABSOLUTE/data15bytes</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^30\s+hdfs://TEST_DIR_ABSOLUTE/data30bytes</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^60\s+hdfs://TEST_DIR_ABSOLUTE/data60bytes</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <test> <!-- TESTED test-id=41 -->
-      <description>du: Test for hdfs:// path - directory</description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir hdfs://TEST_DIR_ABSOLUTE/dir0</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes hdfs://TEST_DIR_ABSOLUTE/dir0/data15bytes</command>
-        <command>-fs NAMENODE -du hdfs://TEST_DIR_ABSOLUTE/dir0</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm -r hdfs://TEST_DIR_ABSOLUTE/dir0</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^15\s+hdfs://TEST_DIR_ABSOLUTE/dir0/data15bytes</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-
-    <test> <!-- TESTED test-id=42 -->
-      <description>duh: Test for hdfs:// path - directory</description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir hdfs://TEST_DIR_ABSOLUTE/dir0</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes hdfs://TEST_DIR_ABSOLUTE/dir0/data15bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data1k hdfs://TEST_DIR_ABSOLUTE/dir0/data1k</command>
-        <command>-fs NAMENODE -du -h hdfs://TEST_DIR_ABSOLUTE/dir0</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm -r hdfs://TEST_DIR_ABSOLUTE/dir0</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^15\s+hdfs://TEST_DIR_ABSOLUTE/dir0/data15bytes</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^1\.0 K\s+hdfs://TEST_DIR_ABSOLUTE/dir0/data1k</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <test> <!-- TESTED test-id=43 -->
-      <description>du: Test for hdfs:// path - directory using globbing</description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir hdfs://TEST_DIR_ABSOLUTE/dir0</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes hdfs://TEST_DIR_ABSOLUTE/dir0/data15bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data30bytes hdfs://TEST_DIR_ABSOLUTE/dir0/data30bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data60bytes hdfs://TEST_DIR_ABSOLUTE/dir0/data60bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data120bytes hdfs://TEST_DIR_ABSOLUTE/dir0/data120bytes</command>
-        <command>-fs NAMENODE -du hdfs://TEST_DIR_ABSOLUTE/dir0/*</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm -r hdfs://TEST_DIR_ABSOLUTE/dir0</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^15( |\t)*hdfs://TEST_DIR_ABSOLUTE/dir0/data15bytes</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^30( |\t)*hdfs://TEST_DIR_ABSOLUTE/dir0/data30bytes</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^60( |\t)*hdfs://TEST_DIR_ABSOLUTE/dir0/data60bytes</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^120( |\t)*hdfs://TEST_DIR_ABSOLUTE/dir0/data120bytes</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <test> <!-- TESTED test-id=44 -->
-      <description>du: Test for Namenode's path - file</description>
-      <test-commands>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/data15bytes</command>
-        <command>-fs NAMENODE -du NAMENODETEST_DIR_ABSOLUTE/data15bytes</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/data15bytes</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^15( |\t)*NAMENODETEST_DIR_ABSOLUTE/data15bytes</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <test> <!-- TESTED test-id=45 -->
-      <description>du: Test for Namenode's path - files using globbing</description>
-      <test-commands>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/data15bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data30bytes NAMENODETEST_DIR_ABSOLUTE/data30bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data60bytes NAMENODETEST_DIR_ABSOLUTE/data60bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data120bytes NAMENODETEST_DIR_ABSOLUTE/data120bytes</command>
-        <command>-fs NAMENODE -du NAMENODETEST_DIR_ABSOLUTE/data*</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/*</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^15( |\t)*NAMENODETEST_DIR_ABSOLUTE/data15bytes</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^30( |\t)*NAMENODETEST_DIR_ABSOLUTE/data30bytes</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^60( |\t)*NAMENODETEST_DIR_ABSOLUTE/data60bytes</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^120( |\t)*NAMENODETEST_DIR_ABSOLUTE/data120bytes</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <test> <!-- TESTED test-id=46 -->
-      <description>du: Test for Namenode's path - directory</description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data15bytes</command>
-        <command>-fs NAMENODE -du NAMENODETEST_DIR_ABSOLUTE/dir0</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^15( |\t)*NAMENODETEST_DIR_ABSOLUTE/dir0/data15bytes</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <test> <!-- TESTED test-id=47 -->
-      <description>du: Test for Namenode's path - directory using globbing</description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data15bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data30bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data30bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data60bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data60bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data120bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data120bytes</command>
-        <command>-fs NAMENODE -du NAMENODETEST_DIR_ABSOLUTE/dir0/*</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^15( |\t)*NAMENODETEST_DIR_ABSOLUTE/dir0/data15bytes</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^30( |\t)*NAMENODETEST_DIR_ABSOLUTE/dir0/data30bytes</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^60( |\t)*NAMENODETEST_DIR_ABSOLUTE/dir0/data60bytes</expected-output>
-        </comparator>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^120( |\t)*NAMENODETEST_DIR_ABSOLUTE/dir0/data120bytes</expected-output>
-        </comparator>
-      </comparators>
-    </test>
- 
-    <!-- Tests for dus -->
-    <test> <!-- TESTED test-id=48 -->
-      <description>dus: directories/files using absolute path</description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1</command>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1/dir1</command>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1/dir2</command>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir2</command>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir2/dir1</command>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir2/dir2</command>
-        <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/dir0/dir1/data15bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data30bytes TEST_DIR_ABSOLUTE/dir0/dir1/data30bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/dir0/dir2/data15bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data30bytes TEST_DIR_ABSOLUTE/dir0/dir2/data30bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data60bytes TEST_DIR_ABSOLUTE/dir0/dir1/dir1/data60bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data120bytes TEST_DIR_ABSOLUTE/dir0/dir1/dir2/data120bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data60bytes TEST_DIR_ABSOLUTE/dir0/dir2/dir1/data60bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data120bytes TEST_DIR_ABSOLUTE/dir0/dir2/dir2/data120bytes</command>
-        <command>-fs NAMENODE -du -s TEST_DIR_ABSOLUTE/dir0</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^450\s+TEST_DIR_ABSOLUTE/dir0</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <test> <!-- TESTED test-id=49 -->
-      <description>dus: directories/files using relative path</description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir -p dir0</command>
-        <command>-fs NAMENODE -mkdir -p dir0/dir1</command>
-        <command>-fs NAMENODE -mkdir -p dir0/dir1/dir1</command>
-        <command>-fs NAMENODE -mkdir -p dir0/dir1/dir2</command>
-        <command>-fs NAMENODE -mkdir -p dir0/dir2</command>
-        <command>-fs NAMENODE -mkdir -p dir0/dir2/dir1</command>
-        <command>-fs NAMENODE -mkdir -p dir0/dir2/dir2</command>
-        <command>-fs NAMENODE -touchz dir0/file0</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes dir0/dir1/data15bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data30bytes dir0/dir1/data30bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes dir0/dir2/data15bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data30bytes dir0/dir2/data30bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data60bytes dir0/dir1/dir1/data60bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data120bytes dir0/dir1/dir2/data120bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data60bytes dir0/dir2/dir1/data60bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data120bytes dir0/dir2/dir2/data120bytes</command>
-        <command>-fs NAMENODE -du -s dir0</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^450\s+dir0</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <test> <!-- TESTED test-id=50 -->
-      <description>dus: directories/files using globbing</description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1</command>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1/dir1</command>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1/dir2</command>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir2</command>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir2/dir1</command>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir2/dir2</command>
-        <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/dir0/dir1/data15bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data30bytes TEST_DIR_ABSOLUTE/dir0/dir1/data30bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/dir0/dir2/data15bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data30bytes TEST_DIR_ABSOLUTE/dir0/dir2/data30bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data60bytes TEST_DIR_ABSOLUTE/dir0/dir1/dir1/data60bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data120bytes TEST_DIR_ABSOLUTE/dir0/dir1/dir2/data120bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data60bytes TEST_DIR_ABSOLUTE/dir0/dir2/dir1/data60bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data120bytes TEST_DIR_ABSOLUTE/dir0/dir2/dir2/data120bytes</command>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/donotcountdir0</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/donotcountdir0/data15bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/donotcountdir0/data15bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/donotcountdir0/data15bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/donotcountdir0/data15bytes</command>
-        <command>-fs NAMENODE -du -s TEST_DIR_ABSOLUTE/dir*</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command>
-        <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/donotcountdir0</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^450\s+TEST_DIR_ABSOLUTE/dir0</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <!-- Tests for dus -->
-    <test> <!-- TESTED test-id=51 -->
-      <description>dus: Test for hdfs:// path - directories/files</description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir hdfs://TEST_DIR_ABSOLUTE/dir0</command>
-        <command>-fs NAMENODE -mkdir hdfs://TEST_DIR_ABSOLUTE/dir0/dir1</command>
-        <command>-fs NAMENODE -mkdir hdfs://TEST_DIR_ABSOLUTE/dir0/dir1/dir1</command>
-        <command>-fs NAMENODE -mkdir hdfs://TEST_DIR_ABSOLUTE/dir0/dir1/dir2</command>
-        <command>-fs NAMENODE -mkdir hdfs://TEST_DIR_ABSOLUTE/dir0/dir2</command>
-        <command>-fs NAMENODE -mkdir hdfs://TEST_DIR_ABSOLUTE/dir0/dir2/dir1</command>
-        <command>-fs NAMENODE -mkdir hdfs://TEST_DIR_ABSOLUTE/dir0/dir2/dir2</command>
-        <command>-fs NAMENODE -touchz hdfs://TEST_DIR_ABSOLUTE/dir0/file0</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes hdfs://TEST_DIR_ABSOLUTE/dir0/dir1/data15bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data30bytes hdfs://TEST_DIR_ABSOLUTE/dir0/dir1/data30bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes hdfs://TEST_DIR_ABSOLUTE/dir0/dir2/data15bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data30bytes hdfs://TEST_DIR_ABSOLUTE/dir0/dir2/data30bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data60bytes hdfs://TEST_DIR_ABSOLUTE/dir0/dir1/dir1/data60bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data120bytes hdfs://TEST_DIR_ABSOLUTE/dir0/dir1/dir2/data120bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data60bytes hdfs://TEST_DIR_ABSOLUTE/dir0/dir2/dir1/data60bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data120bytes hdfs://TEST_DIR_ABSOLUTE/dir0/dir2/dir2/data120bytes</command>
-        <command>-fs NAMENODE -du -s hdfs://TEST_DIR_ABSOLUTE/dir0</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm -r hdfs://TEST_DIR_ABSOLUTE/dir0</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^450\s+hdfs://TEST_DIR_ABSOLUTE/dir0</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <test> <!-- TESTED test-id=52 -->
-      <description>dus: Test for hdfs:// path - directories/files using globbing</description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir hdfs://TEST_DIR_ABSOLUTE/dir0</command>
-        <command>-fs NAMENODE -mkdir hdfs://TEST_DIR_ABSOLUTE/dir0/dir1</command>
-        <command>-fs NAMENODE -mkdir hdfs://TEST_DIR_ABSOLUTE/dir0/dir1/dir1</command>
-        <command>-fs NAMENODE -mkdir hdfs://TEST_DIR_ABSOLUTE/dir0/dir1/dir2</command>
-        <command>-fs NAMENODE -mkdir hdfs://TEST_DIR_ABSOLUTE/dir0/dir2</command>
-        <command>-fs NAMENODE -mkdir hdfs://TEST_DIR_ABSOLUTE/dir0/dir2/dir1</command>
-        <command>-fs NAMENODE -mkdir hdfs://TEST_DIR_ABSOLUTE/dir0/dir2/dir2</command>
-        <command>-fs NAMENODE -touchz hdfs://TEST_DIR_ABSOLUTE/dir0/file0</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes hdfs://TEST_DIR_ABSOLUTE/dir0/dir1/data15bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data30bytes hdfs://TEST_DIR_ABSOLUTE/dir0/dir1/data30bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes hdfs://TEST_DIR_ABSOLUTE/dir0/dir2/data15bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data30bytes hdfs://TEST_DIR_ABSOLUTE/dir0/dir2/data30bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data60bytes hdfs://TEST_DIR_ABSOLUTE/dir0/dir1/dir1/data60bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data120bytes hdfs://TEST_DIR_ABSOLUTE/dir0/dir1/dir2/data120bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data60bytes hdfs://TEST_DIR_ABSOLUTE/dir0/dir2/dir1/data60bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data120bytes hdfs://TEST_DIR_ABSOLUTE/dir0/dir2/dir2/data120bytes</command>
-        <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/donotcountdir0</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes hdfs://TEST_DIR_ABSOLUTE/donotcountdir0/data15bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes hdfs://TEST_DIR_ABSOLUTE/donotcountdir0/data15bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes hdfs://TEST_DIR_ABSOLUTE/donotcountdir0/data15bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes hdfs://TEST_DIR_ABSOLUTE/donotcountdir0/data15bytes</command>
-        <command>-fs NAMENODE -du -s hdfs://TEST_DIR_ABSOLUTE/dir*</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm -r hdfs://TEST_DIR_ABSOLUTE/dir0</command>
-        <command>-fs NAMENODE -rm -r hdfs://TEST_DIR_ABSOLUTE/donotcountdir0</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^450\s+hdfs://TEST_DIR_ABSOLUTE/dir0</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-
-    <test> <!-- TESTED test-id=53 -->
-      <description>dus: Test for Namenode's path - directories/files</description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command>
-        <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command>
-        <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/dir1</command>
-        <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/dir2</command>
-        <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir2</command>
-        <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir2/dir1</command>
-        <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir2/dir2</command>
-        <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file0</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/data15bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data30bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/data30bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir2/data15bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data30bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir2/data30bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data60bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/dir1/data60bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data120bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/dir2/data120bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data60bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir2/dir1/data60bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data120bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir2/dir2/data120bytes</command>
-        <command>-fs NAMENODE -du -s NAMENODETEST_DIR_ABSOLUTE/dir0</command>
-      </test-commands>
-      <cleanup-commands>
-        <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0</command>
-      </cleanup-commands>
-      <comparators>
-        <comparator>
-          <type>RegexpComparator</type>
-          <expected-output>^450\s+NAMENODETEST_DIR_ABSOLUTE/dir0</expected-output>
-        </comparator>
-      </comparators>
-    </test>
-    
-    <test> <!-- TESTED test-id=54 -->
-      <description>dus: Test for Namenode's path - directories/files using globbing</description>
-      <test-commands>
-        <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command>
-        <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command>
-        <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/dir1</command>
-        <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/dir2</command>
-        <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir2</command>
-        <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir2/dir1</command>
-        <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir2/dir2</command>
-        <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file0</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/data15bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data30bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/data30bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir2/data15bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data30bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir2/data30bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data60bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/dir1/data60bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data120bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/dir2/data120bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data60bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir2/dir1/data60bytes</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data120bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir2/dir2/data120bytes</command>
-        <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/donotcountdir0</command>
-        <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/donotcountdir0/

<TRUNCATED>

Mime
View raw message