2009-05-26 18:27:23 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="testConf.xsl"?>
2009-08-17 03:53:27 +00:00
<!--
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
2009-05-26 18:27:23 +00:00
2009-08-17 03:53:27 +00:00
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.
-->
2009-05-26 18:27:23 +00:00
<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 >
2009-12-15 19:59:20 +00:00
<!-- Tests for help -->
<test > <!-- TESTED -->
<description > help: check if fs help message is shown</description>
<test-commands >
<command > -help</command>
</test-commands>
<cleanup-commands >
</cleanup-commands>
<comparators >
<comparator >
<type > SubstringComparator</type>
2011-06-06 20:53:37 +00:00
<expected-output > Usage: hadoop fs [generic options]</expected-output>
2009-12-15 19:59:20 +00:00
</comparator>
</comparators>
</test>
2009-05-26 18:27:23 +00:00
2011-04-18 21:17:34 +00:00
<test > <!-- TESTED -->
<description > help: help for ls</description>
<test-commands >
<command > -help ls</command>
</test-commands>
<cleanup-commands >
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
2011-07-27 19:09:55 +00:00
<expected-output > ^-ls \[-d\] \[-h\] \[-R\] \[< path> \.\.\.\]:( |\t)*List the contents that match the specified file pattern. If( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*path is not specified, the contents of /user/< currentUser> ( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*path is not specified, the contents of /user/< currentUser> ( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*will be listed. Directory entries are of the form( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*dirName \(full path\) < dir> ( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*and file entries are of the form( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*fileName\(full path\) < r n> size( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*where n is the number of replicas specified for the file( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*and size is the size of the file, in bytes.( )*</expected-output>
</comparator>
2011-07-27 15:35:58 +00:00
<comparator >
<type > RegexpComparator</type>
2011-07-27 19:09:55 +00:00
<expected-output > ^( |\t)*-d\s+Directories are listed as plain files\.</expected-output>
2011-07-27 15:35:58 +00:00
</comparator>
<comparator >
<type > RegexpComparator</type>
2011-07-27 19:09:55 +00:00
<expected-output > ^( |\t)*-h\s+Formats the sizes of files in a human-readable fashion( )*</expected-output>
2011-07-27 15:35:58 +00:00
</comparator>
<comparator >
<type > RegexpComparator</type>
2011-07-27 19:09:55 +00:00
<expected-output > ^( |\t)*rather than a number of bytes\.( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*-R\s+Recursively list the contents of directories\.</expected-output>
2011-07-27 15:35:58 +00:00
</comparator>
2011-04-18 21:17:34 +00:00
</comparators>
</test>
<test > <!-- TESTED -->
<description > help: help for lsr</description>
<test-commands >
<command > -help lsr</command>
</test-commands>
<cleanup-commands >
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
2011-05-17 00:53:51 +00:00
<expected-output > ^-lsr:\s+\(DEPRECATED\) Same as 'ls -R'</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
</comparators>
</test>
<test > <!-- TESTED -->
<description > help: help for get</description>
<test-commands >
<command > -help get</command>
</test-commands>
<cleanup-commands >
<!-- No cleanup -->
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
2013-04-30 16:27:58 +00:00
<expected-output > ^-get( )*\[-p\]( )*\[-ignoreCrc\]( )*\[-crc\]( )*< src> \.\.\. < localdst> :( |\t)*Copy files that match the file pattern < src> ( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
<comparator >
<type > RegexpComparator</type>
2011-05-25 17:29:20 +00:00
<expected-output > ^( |\t)*to the local name.( )*< src> is kept.( )*When copying multiple,( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
<comparator >
<type > RegexpComparator</type>
2013-04-30 16:27:58 +00:00
<expected-output > ^( |\t)*files, the destination must be a directory.( )*Passing( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*-p preserves access and modification times,( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*ownership and the mode.( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
</comparators>
</test>
<test > <!-- TESTED -->
<description > help: help for du</description>
<test-commands >
<command > -help du</command>
</test-commands>
<cleanup-commands >
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
2011-05-17 00:53:51 +00:00
<expected-output > ^-du \[-s\] \[-h\] < path> \.\.\.:\s+Show the amount of space, in bytes, used by the files that\s*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^\s*match the specified file pattern. The following flags are optional:</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^\s*-s\s*Rather than showing the size of each individual file that</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^\s*matches the pattern, shows the total \(summary\) size.</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^\s*-h\s*Formats the sizes of files in a human-readable fashion</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > \s*rather than a number of bytes.</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^\s*Note that, even without the -s option, this only shows size summaries</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^\s*one level deep into a directory.</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^\s*The output is in the form </expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^\s*size\s+name\(full path\)\s*</expected-output>
</comparator>
</comparators>
</test>
<test > <!-- TESTED -->
<description > help: help for dus</description>
<test-commands >
<command > -help dus</command>
</test-commands>
<cleanup-commands >
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
2011-05-17 00:53:51 +00:00
<expected-output > ^-dus:\s+\(DEPRECATED\) Same as 'du -s'</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
</comparators>
</test>
<test > <!-- TESTED -->
<description > help: help for count</description>
<test-commands >
<command > -help count</command>
</test-commands>
<cleanup-commands >
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
2011-04-21 16:05:30 +00:00
<expected-output > ^-count \[-q\] < path> \.\.\.:( |\t)*Count the number of directories, files and bytes under the paths( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*that match the specified file pattern. The output columns are:( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*DIR_COUNT FILE_COUNT CONTENT_SIZE FILE_NAME or( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*QUOTA REMAINING_QUATA SPACE_QUOTA REMAINING_SPACE_QUOTA( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*DIR_COUNT FILE_COUNT CONTENT_SIZE FILE_NAME( )*</expected-output>
</comparator>
</comparators>
</test>
<test > <!-- TESTED -->
<description > help: help for mv</description>
<test-commands >
<command > -help mv</command>
</test-commands>
<cleanup-commands >
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
2011-05-25 17:29:20 +00:00
<expected-output > ^-mv < src> \.\.\. < dst> :( |\t)*Move files that match the specified file pattern < src> ( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*to a destination < dst> . When moving multiple files, the( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*destination must be a directory.( )*</expected-output>
</comparator>
</comparators>
</test>
<test > <!-- TESTED -->
<description > help: help for cp</description>
<test-commands >
<command > -help cp</command>
</test-commands>
<cleanup-commands >
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
2013-04-30 16:27:58 +00:00
<expected-output > ^-cp \[-f\] \[-p\] < src> \.\.\. < dst> :( |\t)*Copy files that match the file pattern < src> to a( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*destination. When copying multiple files, the destination( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
2013-04-30 16:27:58 +00:00
<expected-output > ^( |\t)*must be a directory.( )*Passing -p preserves access and( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*modification times, ownership and the mode.( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
</comparators>
</test>
<test > <!-- TESTED -->
<description > help: help for rm</description>
<test-commands >
<command > -help rm</command>
</test-commands>
<cleanup-commands >
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
2011-07-26 04:57:09 +00:00
<expected-output > ^-rm \[-f\] \[-r\|-R\] \[-skipTrash\] < src> \.\.\.:( |\t)*Delete all files that match the specified file pattern.( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*Equivalent to the Unix command "rm < src> "( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*-skipTrash option bypasses trash, if enabled, and immediately( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*deletes < src> ( )*</expected-output>
</comparator>
2011-07-26 04:57:09 +00:00
<comparator >
<type > RegexpComparator</type>
<expected-output > ^\s+-f\s+If the file does not exist, do not display a diagnostic</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^\s+message or modify the exit status to reflect an error\.</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^\s+-\[rR\]\s+Recursively deletes directories</expected-output>
</comparator>
</comparators>
</test>
<test > <!-- TESTED -->
<description > help: help for rmdir</description>
<test-commands >
<command > -help rmdir</command>
</test-commands>
<cleanup-commands >
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
<expected-output > ^-rmdir \[--ignore-fail-on-non-empty\] < dir> \.\.\.:\s+Removes the directory entry specified by each directory argument,</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > \s+provided it is empty.</expected-output>
</comparator>
2011-04-18 21:17:34 +00:00
</comparators>
</test>
<test > <!-- TESTED -->
<description > help: help for rmr</description>
<test-commands >
<command > -help rmr</command>
</test-commands>
<cleanup-commands >
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
2011-05-17 00:53:51 +00:00
<expected-output > ^-rmr:\s+\(DEPRECATED\) Same as 'rm -r'</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
</comparators>
</test>
<test > <!-- TESTED -->
<description > help: help for put</description>
<test-commands >
<command > -help put</command>
</test-commands>
<cleanup-commands >
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
2013-04-30 16:27:58 +00:00
<expected-output > ^-put \[-f\] \[-p\] < localsrc> \.\.\. < dst> :\s+Copy files from the local file system</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*into fs.( )*Copying fails if the file already( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
<comparator >
<type > RegexpComparator</type>
2013-04-30 16:27:58 +00:00
<expected-output > ^( |\t)*exists, unless the -f flag is given.( )*Passing( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*-p preserves access and modification times,( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*ownership and the mode.( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
</comparators>
</test>
<test > <!-- TESTED -->
<description > help: help for copyFromLocal</description>
<test-commands >
<command > -help copyFromLocal</command>
</test-commands>
<cleanup-commands >
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
2013-04-30 16:27:58 +00:00
<expected-output > ^-copyFromLocal \[-f\] \[-p\] < localsrc> \.\.\. < dst> :\s+Identical to the -put command\.</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
</comparators>
</test>
<test > <!-- TESTED -->
<description > help: help for moveFromLocal</description>
<test-commands >
<command > -help moveFromLocal</command>
</test-commands>
<cleanup-commands >
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
2011-05-25 17:29:20 +00:00
<expected-output > ^-moveFromLocal < localsrc> \.\.\. < dst> :\s+Same as -put, except that the source is</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
<comparator >
<type > RegexpComparator</type>
2011-05-25 17:29:20 +00:00
<expected-output > ^( |\t)*deleted after it's copied.</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
</comparators>
</test>
<test > <!-- TESTED -->
<description > help: help for get</description>
<test-commands >
<command > -help get</command>
</test-commands>
<cleanup-commands >
<!-- No cleanup -->
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
2013-04-30 16:27:58 +00:00
<expected-output > ^-get( )*\[-p\]( )*\[-ignoreCrc\]( )*\[-crc\]( )*< src> \.\.\. < localdst> :( |\t)*Copy files that match the file pattern < src> ( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
<comparator >
<type > RegexpComparator</type>
2011-05-25 17:29:20 +00:00
<expected-output > ^( |\t)*to the local name.( )*< src> is kept.( )*When copying multiple,( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
<comparator >
<type > RegexpComparator</type>
2013-04-30 16:27:58 +00:00
<expected-output > ^( |\t)*files, the destination must be a directory.( )*Passing( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*-p preserves access and modification times,( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*ownership and the mode.( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
</comparators>
</test>
<test > <!-- TESTED -->
<description > help: help for getmerge</description>
<test-commands >
<command > -help getmerge</command>
</test-commands>
<cleanup-commands >
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
2011-12-28 14:30:19 +00:00
<expected-output > ^-getmerge \[-nl\] < src> < localdst> :( |\t)*Get all the files in the directories that( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*match the source file pattern and merge and sort them to only( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*one file on local fs. < src> is kept.( )*</expected-output>
</comparator>
2011-12-28 14:30:19 +00:00
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*-nl Add a newline character at the end of each file.( )*</expected-output>
</comparator>
2011-04-18 21:17:34 +00:00
</comparators>
</test>
<test > <!-- TESTED -->
<description > help: help for cat</description>
<test-commands >
<command > -help cat</command>
</test-commands>
<cleanup-commands >
<!-- No cleanup -->
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
2011-05-09 20:08:51 +00:00
<expected-output > ^-cat \[-ignoreCrc\] < src> \.\.\.:( |\t)*Fetch all files that match the file pattern < src> ( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*and display their content on stdout.</expected-output>
</comparator>
</comparators>
</test>
2013-03-06 23:17:14 +00:00
<test > <!-- TESTED -->
<description > help: help for checksum</description>
<test-commands >
<command > -help checksum</command>
</test-commands>
<cleanup-commands >
<!-- No cleanup -->
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
<expected-output > ^-checksum < src> \.\.\.:( |\t)*Dump checksum information for files.*</expected-output>
</comparator>
</comparators>
</test>
2011-04-18 21:17:34 +00:00
<test > <!-- TESTED -->
<description > help: help for copyToLocal</description>
<test-commands >
<command > -help copyToLocal</command>
</test-commands>
<cleanup-commands >
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
2013-04-30 16:27:58 +00:00
<expected-output > ^-copyToLocal \[-p\] \[-ignoreCrc\] \[-crc\] < src> \.\.\. < localdst> :\s+Identical to the -get command.</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
</comparators>
</test>
<test > <!-- TESTED -->
<description > help: help for moveToLocal</description>
<test-commands >
<command > -help moveToLocal</command>
</test-commands>
<cleanup-commands >
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
2011-05-25 17:29:20 +00:00
<expected-output > ^-moveToLocal < src> < localdst> :\s+Not implemented yet</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
</comparators>
</test>
<test > <!-- TESTED -->
<description > help: help for mkdir</description>
<test-commands >
<command > -help mkdir</command>
</test-commands>
<cleanup-commands >
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
2012-03-16 01:28:38 +00:00
<expected-output > ^-mkdir \[-p\] < path> \.\.\.:( |\t)*Create a directory in specified location.( )*</expected-output>
</comparator>
<comparator >
<type > TokenComparator</type>
<expected-output > -p Do not fail if the directory already exists</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
</comparators>
</test>
<test > <!-- TESTED -->
<description > help: help for setrep</description>
<test-commands >
<command > -help setrep</command>
</test-commands>
<cleanup-commands >
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
2011-05-04 22:48:20 +00:00
<expected-output > ^-setrep \[-R\] \[-w\] < rep> < path/file> \.\.\.:( |\t)*Set the replication level of a file.( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*The -R flag requests a recursive change of replication level( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*for an entire tree.( )*</expected-output>
</comparator>
</comparators>
</test>
<test > <!-- TESTED -->
<description > help: help for touchz</description>
<test-commands >
<command > -help touchz</command>
</test-commands>
<cleanup-commands >
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
2011-05-11 20:20:18 +00:00
<expected-output > ^-touchz < path> \.\.\.:( |\t)*Creates a file of zero length( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*at < path> with current time as the timestamp of that < path> .( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
2011-05-11 20:20:18 +00:00
<expected-output > ^( |\t)*An error is returned if the file exists with non-zero length( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
</comparators>
</test>
<test > <!-- TESTED -->
<description > help: help for test</description>
<test-commands >
<command > -help test</command>
</test-commands>
<cleanup-commands >
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
2012-11-06 15:57:58 +00:00
<expected-output > ^-test -\[defsz\] < path> :\sAnswer various questions about < path> , with result via exit status.</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
<comparator >
<type > RegexpComparator</type>
2012-11-06 15:57:58 +00:00
<expected-output > ^( |\t)*else, return 1.( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
</comparators>
</test>
<test > <!-- TESTED -->
<description > help: help for stat</description>
<test-commands >
<command > -help stat</command>
</test-commands>
<cleanup-commands >
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
2011-05-11 18:32:18 +00:00
<expected-output > ^-stat \[format\] < path> \.\.\.:( |\t)*Print statistics about the file/directory at < path> ( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
<comparator >
<type > RegexpComparator</type>
2011-12-28 06:48:31 +00:00
<expected-output > ^( |\t)*in the specified format. Format accepts filesize in blocks \(%b\), group name of owner\(%g\),( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
<comparator >
<type > RegexpComparator</type>
2011-12-28 06:48:31 +00:00
<expected-output > ^( |\t)*filename \(%n\), block size \(%o\), replication \(%r\), user name of owner\(%u\), modification date \(%y, %Y\)( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
</comparators>
</test>
<test > <!-- TESTED -->
<description > help: help for tail</description>
<test-commands >
<command > -help tail</command>
</test-commands>
<cleanup-commands >
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
2011-04-27 04:13:23 +00:00
<expected-output > ^-tail \[-f\] < file> :( |\t)+Show the last 1KB of the file.( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
<comparator >
<type > RegexpComparator</type>
2011-04-25 17:08:23 +00:00
<expected-output > ^( |\t)*The -f option shows appended data as the file grows.( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
</comparators>
</test>
<test > <!-- TESTED -->
<description > help: help for chmod</description>
<test-commands >
<command > -help chmod</command>
</test-commands>
<cleanup-commands >
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
2011-05-06 20:14:15 +00:00
<expected-output > ^-chmod \[-R\] < MODE\[,MODE\]... \| OCTALMODE> PATH...:( |\t)*Changes permissions of a file.( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*This works similar to shell's chmod with a few exceptions.( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*-R( |\t)*modifies the files recursively. This is the only option( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*currently supported.( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*MODE( |\t)*Mode is same as mode used for chmod shell command.( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*Only letters recognized are 'rwxXt'. E.g. \+t,a\+r,g-w,\+rwx,o=r( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*OCTALMODE Mode specifed in 3 or 4 digits. If 4 digits, the first may( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*be 1 or 0 to turn the sticky bit on or off, respectively.( )*Unlike( |\t)*shell command, it is not possible to specify only part of the mode( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*E.g. 754 is same as u=rwx,g=rx,o=r( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*If none of 'augo' is specified, 'a' is assumed and unlike( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*shell command, no umask is applied.( )*</expected-output>
</comparator>
</comparators>
</test>
<test > <!-- TESTED -->
<description > help: help for chown</description>
<test-commands >
<command > -help chown</command>
</test-commands>
<cleanup-commands >
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
2011-05-06 20:14:15 +00:00
<expected-output > ^-chown \[-R\] \[OWNER\]\[:\[GROUP\]\] PATH...:( |\t)*Changes owner and group of a file.( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*This is similar to shell's chown with a few exceptions.( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*-R( |\t)*modifies the files recursively. This is the only option( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*currently supported.( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*If only owner or group is specified then only owner or( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*group is modified.( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
2013-07-30 05:28:43 +00:00
<expected-output > ^( |\t)*The owner and group names may only consist of digits, alphabet,( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
<comparator >
<type > RegexpComparator</type>
2013-07-30 05:28:43 +00:00
<expected-output > ^( |\t)*and any of .+?. The names are case sensitive.( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*WARNING: Avoid using '.' to separate user name and group though( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*Linux allows it. If user names have dots in them and you are( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*using local file system, you might see surprising results since( )*</expected-output>
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*shell command 'chown' is used for local files.( )*</expected-output>
</comparator>
</comparators>
</test>
<test > <!-- TESTED -->
<description > help: help for chgrp</description>
<test-commands >
<command > -help chgrp</command>
</test-commands>
<cleanup-commands >
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
2011-05-06 20:14:15 +00:00
<expected-output > ^-chgrp \[-R\] GROUP PATH...:( |\t)*This is equivalent to -chown ... :GROUP ...( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
</comparators>
</test>
<test > <!-- TESTED -->
<description > help: help for help</description>
<test-commands >
<command > -help help</command>
</test-commands>
<cleanup-commands >
</cleanup-commands>
<comparators >
<comparator >
<type > RegexpComparator</type>
2011-06-06 20:53:37 +00:00
<expected-output > ^-help \[cmd ...\]:( |\t)*Displays help for given command or all commands if none( )*</expected-output>
2011-04-18 21:17:34 +00:00
</comparator>
<comparator >
<type > RegexpComparator</type>
<expected-output > ^( |\t)*is specified.( )*</expected-output>
</comparator>
</comparators>
</test>
2009-05-26 18:27:23 +00:00
</tests>
</configuration>