Repository: bigtop Updated Branches: refs/heads/master 785902193 -> aecc2244d
http://git-wip-us.apache.org/repos/asf/bigtop/blob/aecc2244/bigtop-tests/test-artifacts/hadoop/src/main/resources/clitest_data/testConf.xml ---------------------------------------------------------------------- diff --git a/bigtop-tests/test-artifacts/hadoop/src/main/resources/clitest_data/testConf.xml b/bigtop-tests/test-artifacts/hadoop/src/main/resources/clitest_data/testConf.xml deleted file mode 100644 index d49677a..0000000 --- a/bigtop-tests/test-artifacts/hadoop/src/main/resources/clitest_data/testConf.xml +++ /dev/null @@ -1,3112 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<?xml-stylesheet type="text/xsl" href="testConf.xsl"?> - -<!-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<configuration> - <!-- 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 - RegexpComparator - TokenComparator - --> - <tests> - <!-- Tests for ls --> - <test> <!-- TESTED --> - <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 --> - <description>ls: file using relative path</description> - <test-commands> - <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 --> - <description>ls: files using globbing</description> - <test-commands> - <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> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr 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,}( )*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> - </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> - </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 --> - <description>ls: directory using absolute path</description> - <test-commands> - <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir1/dir2</command> - <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/dir1</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr TEST_DIR_ABSOLUTE/dir1/dir2</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,}( )*TEST_DIR_ABSOLUTE/dir1/dir2</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>ls: directory using relative path</description> - <test-commands> - <command>-fs NAMENODE -mkdir dir0/dir1</command> - <command>-fs NAMENODE -ls dir0</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr dir0</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,}( )*dir0/dir1</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>ls: directory using globbing</description> - <test-commands> - <command>-fs NAMENODE -mkdir dir1</command> - <command>-fs NAMENODE -mkdir dir2</command> - <command>-fs NAMENODE -mkdir dir3</command> - <command>-fs NAMENODE -mkdir dir4</command> - <command>-fs NAMENODE -ls </command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr dir*</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 --> - <description>ls: file/directory that does not exist in /</description> - <test-commands> - <command>-fs NAMENODE -ls /file1</command> - </test-commands> - <cleanup-commands> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^ls: `/file1': No such file or directory</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>ls: file/directory that does not exist in home directory (/user/username)</description> - <test-commands> - <command>-fs NAMENODE -ls /user/username</command> - </test-commands> - <cleanup-commands> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^ls: `/user/username': No such file or directory</expected-output> - </comparator> - </comparators> - </test> - - <!-- Tests for lsr --> - <test> <!-- TESTED --> - <description>lsr: files/directories 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 -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 -lsr TEST_DIR_ABSOLUTE/dir0</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr 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>^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> - </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> - </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> - </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 --> - <description>lsr: files/directories using relative path</description> - <test-commands> - <command>-fs NAMENODE -mkdir dir0</command> - <command>-fs NAMENODE -mkdir dir0/dir1</command> - <command>-fs NAMENODE -mkdir dir0/dir1/dir1</command> - <command>-fs NAMENODE -mkdir dir0/dir1/dir2</command> - <command>-fs NAMENODE -mkdir dir0/dir2</command> - <command>-fs NAMENODE -mkdir dir0/dir2/dir1</command> - <command>-fs NAMENODE -mkdir 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 -lsr dir0</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr 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,}( )*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 --> - <description>lsr: files/directories using globbing</description> - <test-commands> - <command>-fs NAMENODE -mkdir dir0</command> - <command>-fs NAMENODE -mkdir dir0/dir1</command> - <command>-fs NAMENODE -mkdir dir0/dir1/dir1</command> - <command>-fs NAMENODE -mkdir dir0/dir1/dir2</command> - <command>-fs NAMENODE -mkdir dir0/dir2</command> - <command>-fs NAMENODE -mkdir dir0/dir2/dir1</command> - <command>-fs NAMENODE -mkdir 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 -lsr dir0/*</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr dir0</command> - </cleanup-commands> - <comparators> - <!-- JIRA? - <comparator> - <type>RegexpComparator</type> - <expected-output>^dir0/dir1</expected-output> - </comparator> - <comparator> - <type>RegexpComparator</type> - <expected-output>^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 --> - <description>lsr: file/directory that does not exist in TEST_DIR_ABSOLUTE/</description> - <test-commands> - <command>-fs NAMENODE -lsr TEST_DIR_ABSOLUTE/file1</command> - </test-commands> - <cleanup-commands> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^lsr: `TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>lsr: file/directory that does not exist in home directory (/user/username)</description> - <test-commands> - <command>-fs NAMENODE -lsr /user/username</command> - </test-commands> - <cleanup-commands> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^lsr: `/user/username': No such file or directory</expected-output> - </comparator> - </comparators> - </test> - - <!-- Tests for du --> - <test> <!-- TESTED --> - <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( |\t)*TEST_DIR_ABSOLUTE/data15bytes</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>du: file using relative path</description> - <test-commands> - <command>-fs NAMENODE -put CLITEST_DATA/data15bytes data15bytes</command> - <command>-fs NAMENODE -du data15bytes</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr data15bytes</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^15( |\t)*data15bytes</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>du: files using globbing</description> - <test-commands> - <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 -rmr data*</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^15( |\t)*data15bytes</expected-output> - </comparator> - <comparator> - <type>RegexpComparator</type> - <expected-output>^30( |\t)*data30bytes</expected-output> - </comparator> - <comparator> - <type>RegexpComparator</type> - <expected-output>^60( |\t)*data60bytes</expected-output> - </comparator> - <comparator> - <type>RegexpComparator</type> - <expected-output>^120( |\t)*data120bytes</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <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 -rmr TEST_DIR_ABSOLUTE/dir0</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^15( |\t)*TEST_DIR_ABSOLUTE/dir0/data15bytes</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>du: directory using relative path</description> - <test-commands> - <command>-fs NAMENODE -mkdir 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 -rmr dir0</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^15( |\t)*dir0/data15bytes</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <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 -rmr 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> - - <!-- Tests for dus --> - <test> <!-- TESTED --> - <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 -dus TEST_DIR_ABSOLUTE/dir0</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr TEST_DIR_ABSOLUTE/dir0</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^450( |\t)*TEST_DIR_ABSOLUTE/dir0</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>dus: directories/files using relative path</description> - <test-commands> - <command>-fs NAMENODE -mkdir dir0</command> - <command>-fs NAMENODE -mkdir dir0/dir1</command> - <command>-fs NAMENODE -mkdir dir0/dir1/dir1</command> - <command>-fs NAMENODE -mkdir dir0/dir1/dir2</command> - <command>-fs NAMENODE -mkdir dir0/dir2</command> - <command>-fs NAMENODE -mkdir dir0/dir2/dir1</command> - <command>-fs NAMENODE -mkdir 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 -dus dir0</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr dir0</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^450( |\t)*dir0</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <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 -dus TEST_DIR_ABSOLUTE/dir*</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr TEST_DIR_ABSOLUTE/dir0</command> - <command>-fs NAMENODE -rmr TEST_DIR_ABSOLUTE/donotcountdir0</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^450( |\t)*TEST_DIR_ABSOLUTE/dir0</expected-output> - </comparator> - </comparators> - </test> - - <!-- Tests for mv --> - <test> <!-- TESTED --> - <description>mv: file (absolute path) to file (absolute path)</description> - <test-commands> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> - <command>-fs NAMENODE -mv TEST_DIR_ABSOLUTE/file1 TEST_DIR_ABSOLUTE/file2</command> - <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/file*</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/file2</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/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/file[^1]</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>mv: file (absolute path) to file (relative path)</description> - <test-commands> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> - <command>-fs NAMENODE -mv TEST_DIR_ABSOLUTE/file1 file2</command> - <command>-fs NAMENODE -ls file2</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr file2</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,}( )*file2</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>mv: file (absolute path) to directory (absolute path); keep the same name at the destination</description> - <test-commands> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> - <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> - <command>-fs NAMENODE -mv TEST_DIR_ABSOLUTE/file1 TEST_DIR_ABSOLUTE/dir0</command> - <command>-fs NAMENODE -lsr TEST_DIR_ABSOLUTE/dir0</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr 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/file1</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>mv: file (absolute path) to directory (absolute path); keep the same name at the destination [ TIED to previous test ]</description> - <test-commands> - <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/file1</command> - </test-commands> - <cleanup-commands> - </cleanup-commands> - <comparators> - <comparator> - <type>TokenComparator</type> - <expected-output>ls: `TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>mv: file (absolute path) to directory (absolute path); change the name at the destination</description> - <test-commands> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> - <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> - <command>-fs NAMENODE -mv TEST_DIR_ABSOLUTE/file1 TEST_DIR_ABSOLUTE/dir0/file2</command> - <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/dir0</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr 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/file2</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>mv: file (absolute path) to directory (absolute path); change the name at the destination [ TIED to previous test ]</description> - <test-commands> - <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/file1</command> - </test-commands> - <cleanup-commands> - </cleanup-commands> - <comparators> - <comparator> - <type>TokenComparator</type> - <expected-output>ls: `TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>mv: files (absolute path) to directory (absolute path) using globbing</description> - <test-commands> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file2</command> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file3</command> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file4</command> - <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> - <command>-fs NAMENODE -mv TEST_DIR_ABSOLUTE/file* TEST_DIR_ABSOLUTE/dir0</command> - <command>-fs NAMENODE -lsr TEST_DIR_ABSOLUTE/*</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr TEST_DIR_ABSOLUTE/dir0 TEST_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,}( )*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,}( )*TEST_DIR_ABSOLUTE/dir0/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/file3</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/file4</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>mv: files (absolute path) to directory (absolute path) using globbing [ TIED to previous test ]</description> - <test-commands> - <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/file*</command> - </test-commands> - <cleanup-commands> - </cleanup-commands> - <comparators> - <comparator> - <type>TokenComparator</type> - <expected-output>ls: `TEST_DIR_ABSOLUTE/file*': No such file or directory</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>mv: file (relative) to file (relative)</description> - <test-commands> - <command>-fs NAMENODE -touchz file1</command> - <command>-fs NAMENODE -mv file1 file2</command> - <command>-fs NAMENODE -ls file*</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rm file*</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,}( )*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,}( )*file[^1]</expected-output> - </comparator> - </comparators> - </test> - - <!-- Tests for cp--> - <test> <!-- TESTED --> - <description>cp: file (absolute path) to file (absolute path)</description> - <test-commands> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> - <command>-fs NAMENODE -cp TEST_DIR_ABSOLUTE/file1 TEST_DIR_ABSOLUTE/file2</command> - <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/file*</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rm TEST_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,}( )*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,}( )*TEST_DIR_ABSOLUTE/file2</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>cp: file (absolute path) to file (relative path)</description> - <test-commands> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> - <command>-fs NAMENODE -cp TEST_DIR_ABSOLUTE/file1 file2</command> - <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/file1 file2</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr TEST_DIR_ABSOLUTE/file1 file2</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/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> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>cp: file (relative path) to file (absolute path)</description> - <test-commands> - <command>-fs NAMENODE -touchz file1</command> - <command>-fs NAMENODE -cp file1 TEST_DIR_ABSOLUTE/file2</command> - <command>-fs NAMENODE -ls file1 TEST_DIR_ABSOLUTE/file2</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr file1 TEST_DIR_ABSOLUTE/file2</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,}( )*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/file2</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>cp: file (relative path) to file (relative path)</description> - <test-commands> - <command>-fs NAMENODE -touchz file1</command> - <command>-fs NAMENODE -cp file1 file2</command> - <command>-fs NAMENODE -ls file1 file2</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr file1 file2</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,}( )*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> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>cp: file (absolute path) to directory (absolute path); keep the same name at the destination</description> - <test-commands> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> - <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> - <command>-fs NAMENODE -cp TEST_DIR_ABSOLUTE/file1 TEST_DIR_ABSOLUTE/dir0</command> - <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/file1 TEST_DIR_ABSOLUTE/dir0</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr 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/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/file1</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>cp: file (absolute path) to directory (absolute path); change the name at the destination</description> - <test-commands> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> - <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> - <command>-fs NAMENODE -cp TEST_DIR_ABSOLUTE/file1 TEST_DIR_ABSOLUTE/dir0/file2</command> - <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/file1 TEST_DIR_ABSOLUTE/dir0</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr 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/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/file2</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>cp: files to directory (absolute path) using globbing</description> - <test-commands> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file2</command> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file3</command> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file4</command> - <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> - <command>-fs NAMENODE -cp TEST_DIR_ABSOLUTE/file* TEST_DIR_ABSOLUTE/dir0</command> - <command>-fs NAMENODE -lsr TEST_DIR_ABSOLUTE/*</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr 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/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/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/file3</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/file4</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/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/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/file3</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/file4</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>cp: files to directory (absolute path) without globbing</description> - <test-commands> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file2</command> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file3</command> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file4</command> - <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> - <command>-fs NAMENODE -cp TEST_DIR_ABSOLUTE/file1 TEST_DIR_ABSOLUTE/file2 TEST_DIR_ABSOLUTE/file3 TEST_DIR_ABSOLUTE/file4 TEST_DIR_ABSOLUTE/dir0</command> - <command>-fs NAMENODE -lsr TEST_DIR_ABSOLUTE/*</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr 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/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/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/file3</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/file4</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/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/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/file3</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/file4</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>cp: copying non existent file (absolute path)</description> - <test-commands> - <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/file1</command> - <command>-fs NAMENODE -cp TEST_DIR_ABSOLUTE/file TEST_DIR_ABSOLUTE/file1</command> - </test-commands> - <cleanup-commands> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^cp: `TEST_DIR_ABSOLUTE/file': No such file or directory</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>cp: copying non existent file (relative path)</description> - <test-commands> - <command>-fs NAMENODE -cp file1 file2</command> - </test-commands> - <cleanup-commands> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^cp: `file1': No such file or directory</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>cp: files to an existent file using globbing</description> - <test-commands> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file2</command> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file3</command> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file4</command> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file5</command> - <command>-fs NAMENODE -cp TEST_DIR_ABSOLUTE/file* TEST_DIR_ABSOLUTE/file5</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr TEST_DIR_ABSOLUTE/file*</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^cp: `TEST_DIR_ABSOLUTE/file5': Is not a directory</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>cp: files to an existent file without globbing</description> - <test-commands> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file2</command> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file3</command> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file4</command> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file5</command> - <command>-fs NAMENODE -cp TEST_DIR_ABSOLUTE/file1 TEST_DIR_ABSOLUTE/file2 TEST_DIR_ABSOLUTE/file3 TEST_DIR_ABSOLUTE/file4 TEST_DIR_ABSOLUTE/file5</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr TEST_DIR_ABSOLUTE/file*</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^cp: `TEST_DIR_ABSOLUTE/file5': Is not a directory</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>cp: files to a non existent directory using globbing</description> - <test-commands> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file2</command> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file3</command> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file4</command> - <command>-fs NAMENODE -cp TEST_DIR_ABSOLUTE/file* dir</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr TEST_DIR_ABSOLUTE/file*</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^cp: `dir': No such file or directory</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>cp: files to a non existent directory without globbing</description> - <test-commands> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file2</command> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file3</command> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file4</command> - <command>-fs NAMENODE -cp TEST_DIR_ABSOLUTE/file1 TEST_DIR_ABSOLUTE/file2 TEST_DIR_ABSOLUTE/file3 TEST_DIR_ABSOLUTE/file4 dir</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr TEST_DIR_ABSOLUTE/file*</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^cp: `dir': No such file or directory</expected-output> - </comparator> - </comparators> - </test> - - <!-- Tests for rm --> - <test> <!-- TESTED --> - <description>rm: removing a file (absolute path) </description> - <test-commands> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command> - <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/dir0/file0</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/dir0</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^Deleted TEST_DIR_ABSOLUTE/dir0/file0</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>rm: removing a file (relative path) </description> - <test-commands> - <command>-fs NAMENODE -touchz file0</command> - <command>-fs NAMENODE -rm file0</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rm file0</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^Deleted file0</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>rm: removing files by globbing (absolute path) </description> - <test-commands> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file1</command> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file2</command> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file3</command> - <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/dir0/file*</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/dir0</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^Deleted TEST_DIR_ABSOLUTE/dir0/file0</expected-output> - </comparator> - <comparator> - <type>RegexpComparator</type> - <expected-output>^Deleted TEST_DIR_ABSOLUTE/dir0/file1</expected-output> - </comparator> - <comparator> - <type>RegexpComparator</type> - <expected-output>^Deleted TEST_DIR_ABSOLUTE/dir0/file2</expected-output> - </comparator> - <comparator> - <type>RegexpComparator</type> - <expected-output>^Deleted TEST_DIR_ABSOLUTE/dir0/file3</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>rm: removing files by globbing (relative path) </description> - <test-commands> - <command>-fs NAMENODE -touchz file0</command> - <command>-fs NAMENODE -touchz file1</command> - <command>-fs NAMENODE -touchz file2</command> - <command>-fs NAMENODE -touchz file3</command> - <command>-fs NAMENODE -rm file*</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rm file0</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^Deleted file0</expected-output> - </comparator> - <comparator> - <type>RegexpComparator</type> - <expected-output>^Deleted file1</expected-output> - </comparator> - <comparator> - <type>RegexpComparator</type> - <expected-output>^Deleted file2</expected-output> - </comparator> - <comparator> - <type>RegexpComparator</type> - <expected-output>^Deleted file3</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>rm: removing a directory (absolute path) </description> - <test-commands> - <command>-fs NAMENODE mkdir TEST_DIR_ABSOLUTE/dir0</command> - <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/dir0</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/dir0</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^rm: `TEST_DIR_ABSOLUTE/dir0': Is a directory</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>rm: removing a directory (relative path) </description> - <test-commands> - <command>-fs NAMENODE mkdir dir0</command> - <command>-fs NAMENODE -rm dir0</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rm dir0</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^rm: `dir0': No such file or directory</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>rm: removing a nonexistent file (absolute path) </description> - <test-commands> - <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/dir0/file0</command> - </test-commands> - <cleanup-commands> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^rm: `TEST_DIR_ABSOLUTE/dir0/file0': No such file or directory</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>rm: removing a nonexistent file (relative path) </description> - <test-commands> - <command>-fs NAMENODE -rm file0</command> - </test-commands> - <cleanup-commands> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^rm: `file0': No such file or directory</expected-output> - </comparator> - </comparators> - </test> - - <!--Tests for rmr--> - <test> <!-- TESTED --> - <description>rmr: removing a file (absolute path) </description> - <test-commands> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command> - <command>-fs NAMENODE -rmr TEST_DIR_ABSOLUTE/dir0/file0</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr TEST_DIR_ABSOLUTE/user</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^Deleted TEST_DIR_ABSOLUTE/dir0/file0</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>rmr: removing a file (relative path) </description> - <test-commands> - <command>-fs NAMENODE -touchz file0</command> - <command>-fs NAMENODE -rmr file0</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr file0</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^Deleted file0</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>rmr: removing a directory (absolute path) </description> - <test-commands> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0</command> - <command>-fs NAMENODE -rmr TEST_DIR_ABSOLUTE/dir0</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr TEST_DIR_ABSOLUTE/dir0</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^Deleted TEST_DIR_ABSOLUTE/dir0</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>rmr: removing a directory (relative path) </description> - <test-commands> - <command>-fs NAMENODE -mkdir dir0</command> - <command>-fs NAMENODE -rmr dir0</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr dir0</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^Deleted dir0</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>rmr: removing directories by globbing (absolute path) </description> - <test-commands> - <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> - <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir1</command> - <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2</command> - <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir3</command> - <command>-fs NAMENODE -rmr TEST_DIR_ABSOLUTE/dir*</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/dir*</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^Deleted TEST_DIR_ABSOLUTE/dir0</expected-output> - </comparator> - <comparator> - <type>RegexpComparator</type> - <expected-output>^Deleted TEST_DIR_ABSOLUTE/dir1</expected-output> - </comparator> - <comparator> - <type>RegexpComparator</type> - <expected-output>^Deleted TEST_DIR_ABSOLUTE/dir2</expected-output> - </comparator> - <comparator> - <type>RegexpComparator</type> - <expected-output>^Deleted TEST_DIR_ABSOLUTE/dir3</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>rmr: removing directories by globbing (relative path) </description> - <test-commands> - <command>-fs NAMENODE -mkdir dir0</command> - <command>-fs NAMENODE -mkdir dir1</command> - <command>-fs NAMENODE -mkdir dir2</command> - <command>-fs NAMENODE -mkdir dir3</command> - <command>-fs NAMENODE -rmr dir*</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr dir*</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^Deleted dir0</expected-output> - </comparator> - <comparator> - <type>RegexpComparator</type> - <expected-output>^Deleted dir1</expected-output> - </comparator> - <comparator> - <type>RegexpComparator</type> - <expected-output>^Deleted dir2</expected-output> - </comparator> - <comparator> - <type>RegexpComparator</type> - <expected-output>^Deleted dir3</expected-output> - </comparator> - </comparators> - </test> - - <test> <!--TESTED--> - <description>rmr: removing a nonexistent file (absolute path) </description> - <test-commands> - <command>-fs NAMENODE -rmr TEST_DIR_ABSOLUTE/dir0/file0</command> - </test-commands> - <cleanup-commands> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^rmr: `TEST_DIR_ABSOLUTE/dir0/file0': No such file or directory</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>rmr: removing a nonexistent file (relative path) </description> - <test-commands> - <command>-fs NAMENODE -rmr file0</command> - </test-commands> - <cleanup-commands> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^rmr: `file0': No such file or directory</expected-output> - </comparator> - </comparators> - </test> - - <!-- Tests for expunge --> - <!-- Not yet implemented --> - - <!-- Tests for put --> - <test> <!-- TESTED --> - <description>put: putting file into a file (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( |\t)*TEST_DIR_ABSOLUTE/data15bytes</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>put: putting file into a file (relative path)</description> - <test-commands> - <command>-fs NAMENODE -put CLITEST_DATA/data15bytes data15bytes</command> - <command>-fs NAMENODE -du data15bytes</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr data*</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^15( |\t)*data15bytes</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>put: putting file into a directory(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 -put CLITEST_DATA TEST_DIR_ABSOLUTE/dir0/dir1/data</command> - <command>-fs NAMENODE -du TEST_DIR_ABSOLUTE/dir0/dir1/data</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr TEST_DIR_ABSOLUTE/dir0</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^15( |\t)*TEST_DIR_ABSOLUTE/dir0/dir1/data/data15bytes</expected-output> - </comparator> - <comparator> - <type>RegexpComparator</type> - <expected-output>^30( |\t)*TEST_DIR_ABSOLUTE/dir0/dir1/data/data30bytes</expected-output> - </comparator> - <comparator> - <type>RegexpComparator</type> - <expected-output>^60( |\t)*TEST_DIR_ABSOLUTE/dir0/dir1/data/data60bytes</expected-output> - </comparator> - <comparator> - <type>RegexpComparator</type> - <expected-output>^120( |\t)*TEST_DIR_ABSOLUTE/dir0/dir1/data/data120bytes</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>put: putting file into a directory(relative path)</description> - <test-commands> - <command>-fs NAMENODE -mkdir dir0</command> - <command>-fs NAMENODE -mkdir dir0/dir1</command> - <command>-fs NAMENODE -put CLITEST_DATA dir0/dir1/data</command> - <command>-fs NAMENODE -du dir0/dir1/data</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr dir0</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^15( |\t)*dir0/dir1/data/data15bytes</expected-output> - </comparator> - <comparator> - <type>RegexpComparator</type> - <expected-output>^30( |\t)*dir0/dir1/data/data30bytes</expected-output> - </comparator> - <comparator> - <type>RegexpComparator</type> - <expected-output>^60( |\t)*dir0/dir1/data/data60bytes</expected-output> - </comparator> - <comparator> - <type>RegexpComparator</type> - <expected-output>^120( |\t)*dir0/dir1/data/data120bytes</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>put: putting many files into an existing directory(absolute path)</description> - <test-commands> - <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> - <command>-fs NAMENODE -put CLITEST_DATA/data15bytes CLITEST_DATA/data30bytes TEST_DIR_ABSOLUTE/dir0</command> - <command>-fs NAMENODE -du TEST_DIR_ABSOLUTE/dir0</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr 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> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>put: putting many files into an existing directory(relative path)</description> - <test-commands> - <command>-fs NAMENODE -mkdir dir0</command> - <command>-fs NAMENODE -put CLITEST_DATA/data15bytes CLITEST_DATA/data30bytes dir0</command> - <command>-fs NAMENODE -du dir0</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr dir0</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^15( |\t)*dir0/data15bytes</expected-output> - </comparator> - <comparator> - <type>RegexpComparator</type> - <expected-output>^30( |\t)*dir0/data30bytes</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>put: putting non existent file(absolute path)</description> - <test-commands> - <command>-fs NAMENODE -put /user/wrongdata file</command> - </test-commands> - <cleanup-commands> - </cleanup-commands> - <comparators> - <comparator> - <type>TokenComparator</type> - <expected-output>put: `/user/wrongdata': No such file or directory</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>put: putting non existent file(relative path)</description> - <test-commands> - <command>-fs NAMENODE -put wrongdata file</command> - </test-commands> - <cleanup-commands> - </cleanup-commands> - <comparators> - <comparator> - <type>TokenComparator</type> - <expected-output>put: `wrongdata': No such file or directory</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>put: putting file into an already existing destination(absolute path)</description> - <test-commands> - <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/user/file0</command> - <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/user/file0</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr TEST_DIR_ABSOLUTE/user</command> - </cleanup-commands> - <comparators> - <comparator> - <type>TokenComparator</type> - <expected-output>put: `TEST_DIR_ABSOLUTE/user/file0': File exists</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>put: putting file into an already existing destination(relative path)</description> - <test-commands> - <command>-fs NAMENODE -touchz file0</command> - <command>-fs NAMENODE -put CLITEST_DATA/data15bytes file0</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr file0</command> - </cleanup-commands> - <comparators> - <comparator> - <type>TokenComparator</type> - <expected-output>put: `file0': File exists</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>put: putting many files into an existing file</description> - <test-commands> - <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/data15bytes</command> - <command>-fs NAMENODE -put CLITEST_DATA/data30bytes TEST_DIR_ABSOLUTE/data30bytes</command> - <command>-fs NAMENODE -touchz file0</command> - <command>-fs NAMENODE -put TEST_DIR_ABSOLUTE/data15bytes TEST_DIR_ABSOLUTE/data30bytes file0</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr TEST_DIR_ABSOLUTE/data*</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^put: `file0': Is not a directory</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>put: putting many files into a non existent directory</description> - <test-commands> - <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/data15bytes</command> - <command>-fs NAMENODE -put CLITEST_DATA/data30bytes TEST_DIR_ABSOLUTE/data30bytes</command> - <command>-fs NAMENODE -put TEST_DIR_ABSOLUTE/data15bytes TEST_DIR_ABSOLUTE/data30bytes wrongdir</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr TEST_DIR_ABSOLUTE/data*</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^put: `wrongdir': No such file or directory</expected-output> - </comparator> - </comparators> - </test> - - <!-- Tests for copyFromLocal --> - <test> <!-- TESTED --> - <description>copyFromLocal: copying file into a file (absolute path)</description> - <test-commands> - <command>-fs NAMENODE -copyFromLocal 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( |\t)*TEST_DIR_ABSOLUTE/data15bytes</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>copyFromLocal: copying file into a file (relative path)</description> - <test-commands> - <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes data15bytes</command> - <command>-fs NAMENODE -du data15bytes</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr data*</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^15( |\t)*data15bytes</expected-output> - </comparator> - </comparators> - </test> - - <test> <!-- TESTED --> - <description>copyFromLocal: copying file into a directory(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 -copyFromLocal CLITEST_DATA TEST_DIR_ABSOLUTE/dir0/dir1/data</command> - <command>-fs NAMENODE -du TEST_DIR_ABSOLUTE/dir0/dir1/data</command> - </test-commands> - <cleanup-commands> - <command>-fs NAMENODE -rmr TEST_DIR_ABSOLUTE/dir0</command> - </cleanup-commands> - <comparators> - <comparator> - <type>RegexpComparator</type> - <expected-output>^15( |\t)*TEST_DIR_ABSOLUTE/dir0/dir1/data/data15bytes</expected-output> - </comp <TRUNCATED>