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>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-ls \[-d\] \[-h\] \[-R\] \[<path> \.\.\.\] :( |\t)*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*List the contents that match the specified file pattern. If path is not</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*specified, the contents of /user/<currentUser> will be listed. Directory entries( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*are of the form:( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*permissions - userId groupId sizeOfDirectory\(in bytes\)( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
2014-06-13 06:39:57 +00:00
|
|
|
<comparator>
|
2011-04-18 21:17:34 +00:00
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*modificationDate\(yyyy-MM-dd HH:mm\) directoryName( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
2014-06-13 06:39:57 +00:00
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
|
|
|
<expected-output>^\s*and file entries are of the form:( )*</expected-output>
|
|
|
|
</comparator>
|
|
|
|
<comparator>
|
2011-04-18 21:17:34 +00:00
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*permissions numberOfReplicas userId groupId sizeOfFile\(in bytes\)( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
2011-07-27 15:35:58 +00:00
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*modificationDate\(yyyy-MM-dd HH:mm\) fileName( )*</expected-output>
|
2011-07-27 15:35:58 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*-d\s+Directories are listed as plain files\.( )*</expected-output>
|
2011-07-27 15:35:58 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*-h\s+Formats the sizes of files in a human-readable fashion rather than a number( )*</expected-output>
|
2011-07-27 19:09:55 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*of bytes\.( )*</expected-output>
|
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
|
|
|
<expected-output>^\s*-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>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-lsr :\s*</expected-output>
|
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
|
|
|
<expected-output>^\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>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-get( )*\[-p\]( )*\[-ignoreCrc\]( )*\[-crc\]( )*<src> \.\.\. <localdst> :\s*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>\s*Copy files that match the file pattern <src> to the local name. <src> is kept.\s*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>\s*When copying multiple files, the destination must be a directory. Passing -p\s*</expected-output>
|
2013-04-30 16:27:58 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*preserves access and 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 du</description>
|
|
|
|
<test-commands>
|
|
|
|
<command>-help du</command>
|
|
|
|
</test-commands>
|
|
|
|
<cleanup-commands>
|
|
|
|
</cleanup-commands>
|
|
|
|
<comparators>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-du \[-s\] \[-h\] <path> \.\.\. :\s*</expected-output>
|
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
|
|
|
<expected-output>^\s*Show the amount of space, in bytes, used by the files that match the specified\s*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*file pattern. The following flags are optional:\s*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*-s\s*Rather than showing the size of each individual file that matches the\s*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*pattern, shows the total \(summary\) size.\s*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*-h\s*Formats the sizes of files in a human-readable fashion rather than a number\s*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>\s*of bytes.\s*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*Note that, even without the -s option, this only shows size summaries one level\s*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*deep into a directory.</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</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>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-dus :</expected-output>
|
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
|
|
|
<expected-output>^\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>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-count \[-q\] <path> \.\.\. :\s*</expected-output>
|
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
|
|
|
<expected-output>^\s*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>
|
2014-03-03 22:08:49 +00:00
|
|
|
<expected-output>^( |\t)*QUOTA REMAINING_QUOTA SPACE_QUOTA REMAINING_SPACE_QUOTA( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</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>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-mv <src> \.\.\. <dst> :\s*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>\s*Move files that match the specified file pattern <src> to a destination <dst>.( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*When moving multiple files, the destination must be a directory.( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</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>
|
2014-06-17 17:08:07 +00:00
|
|
|
<expected-output>^-cp \[-f\] \[-p \| -p\[topax\]\] <src> \.\.\. <dst> :\s*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*Copy files that match the file pattern <src> to a destination. When copying( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*multiple files, the destination must be a directory.( )*Passing -p preserves status( )*</expected-output>
|
2013-04-30 16:27:58 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-17 17:08:07 +00:00
|
|
|
<expected-output>^( |\t)*\[topax\] \(timestamps, ownership, permission, ACLs, XAttr\). If -p is specified( )*</expected-output>
|
2014-06-12 16:34:02 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-17 17:08:07 +00:00
|
|
|
<expected-output>^( |\t)*with no <arg>, then preserves timestamps, ownership, permission. If -pa is( )*</expected-output>
|
2014-06-12 16:34:02 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-17 17:08:07 +00:00
|
|
|
<expected-output>^( |\t)*specified, then preserves permission also because ACL is a super-set of( )*</expected-output>
|
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
|
|
|
<expected-output>^\s*permission. Passing -f overwrites the destination if it already exists.( )*</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>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-rm \[-f\] \[-r\|-R\] \[-skipTrash\] <src> \.\.\. :\s*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*Delete all files that match the specified file pattern. Equivalent to the Unix( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*command "rm <src>"( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*-skipTrash\s+option bypasses trash, if enabled, and immediately deletes <src>( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
2011-07-26 04:57:09 +00:00
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s+-f\s+If the file does not exist, do not display a diagnostic message or\s*</expected-output>
|
2011-07-26 04:57:09 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s+modify the exit status to reflect an error\.\s*</expected-output>
|
2011-07-26 04:57:09 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s+-\[rR\]\s+Recursively deletes directories\s*</expected-output>
|
2011-07-26 04:57:09 +00:00
|
|
|
</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>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-rmdir \[--ignore-fail-on-non-empty\] <dir> \.\.\. :\s*</expected-output>
|
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
|
|
|
<expected-output>\s+Removes the directory entry specified by each directory argument, provided it is\s*</expected-output>
|
2011-07-26 04:57:09 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>\s+empty\.\s*</expected-output>
|
2011-07-26 04:57:09 +00:00
|
|
|
</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>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-rmr :\s*</expected-output>
|
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
|
|
|
<expected-output>^\s*\(DEPRECATED\) Same as 'rm -r'\s*</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>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-put \[-f\] \[-p\] <localsrc> \.\.\. <dst> :\s*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*Copy files from the local file system into fs.( )*Copying fails if the file already( )*</expected-output>
|
2013-04-30 16:27:58 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*exists, unless the -f flag is given.( )*Passing -p preserves access and( )*</expected-output>
|
2013-04-30 16:27:58 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*modification times, ownership and the mode. Passing -f overwrites the( )*</expected-output>
|
2013-08-14 23:17:55 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*destination if it already exists.( )*</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>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-copyFromLocal \[-f\] \[-p\] <localsrc> \.\.\. <dst> :\s*</expected-output>
|
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
|
|
|
<expected-output>^\s*Identical to the -put command\.\s*</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>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-moveFromLocal <localsrc> \.\.\. <dst> :\s*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*Same as -put, except that the source is 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>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-get( )*\[-p\]( )*\[-ignoreCrc\]( )*\[-crc\]( )*<src> \.\.\. <localdst> :\s*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*Copy files that match the file pattern <src> to the local name.( )*<src> is kept.( )*</expected-output>
|
2013-04-30 16:27:58 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*When copying multiple files, the destination must be a directory. Passing -p( )*</expected-output>
|
2013-04-30 16:27:58 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*preserves access and 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 getmerge</description>
|
|
|
|
<test-commands>
|
|
|
|
<command>-help getmerge</command>
|
|
|
|
</test-commands>
|
|
|
|
<cleanup-commands>
|
|
|
|
</cleanup-commands>
|
|
|
|
<comparators>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-getmerge \[-nl\] <src> <localdst> :\s*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*Get all the files in the directories that match the source file pattern and( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*merge and sort them to only one file on local fs. <src> is kept.( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
2011-12-28 14:30:19 +00:00
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*-nl\s+Add a newline character at the end of each file.( )*</expected-output>
|
2011-12-28 14:30:19 +00:00
|
|
|
</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>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-cat \[-ignoreCrc\] <src> \.\.\. :\s*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*Fetch all files that match the file pattern <src> and display their content on\s*</expected-output>
|
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
|
|
|
<expected-output>^\s*stdout.</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</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>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-checksum <src> \.\.\. :\s*</expected-output>
|
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
|
|
|
<expected-output>^\s*Dump checksum information for files that match the file pattern <src> to stdout\.\s*</expected-output>
|
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
|
|
|
<expected-output>^\s*Note that this requires a round-trip to a datanode storing each block of the\s*</expected-output>
|
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
|
|
|
<expected-output>^\s*file, and thus is not efficient to run on a large number of files\. The checksum\s*</expected-output>
|
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
|
|
|
<expected-output>^\s*of a file depends on its content, block size and the checksum algorithm and\s*</expected-output>
|
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
|
|
|
<expected-output>^\s*parameters used for creating the file\.\s*</expected-output>
|
2013-03-06 23:17:14 +00:00
|
|
|
</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>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-copyToLocal \[-p\] \[-ignoreCrc\] \[-crc\] <src> \.\.\. <localdst> :\s*</expected-output>
|
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
|
|
|
<expected-output>^\s*Identical to the -get command.\s*</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>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-moveToLocal <src> <localdst> :\s*</expected-output>
|
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
|
|
|
<expected-output>^\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>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-mkdir \[-p\] <path> \.\.\. :\s*</expected-output>
|
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
|
|
|
<expected-output>^\s*Create a directory in specified location.( )*</expected-output>
|
2012-03-16 01:28:38 +00:00
|
|
|
</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>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-setrep \[-R\] \[-w\] <rep> <path> \.\.\. :\s*</expected-output>
|
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
|
|
|
<expected-output>^\s*Set the replication level of a file. If <path> is a directory then the command( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*recursively changes the replication factor of all files under the directory tree( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*rooted at <path>\.( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
2013-09-23 17:57:23 +00:00
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*-w\s+It requests that the command waits for the replication to complete\. This( )*</expected-output>
|
2013-09-23 17:57:23 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*can potentially take a very long time\.( )*</expected-output>
|
2013-09-23 17:57:23 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*-R\s+It is accepted for backwards compatibility\. It has no effect\.( )*</expected-output>
|
2013-09-23 17:57:23 +00:00
|
|
|
</comparator>
|
2011-04-18 21:17:34 +00:00
|
|
|
</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>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-touchz <path> \.\.\. :( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*Creates a file of zero length at <path> with current time as the timestamp of( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)* that <path>\. 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>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-test -\[defsz\] <path> :\s*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*Answer various questions about <path>, with result via exit status.</expected-output>
|
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
|
|
|
<expected-output>^\s*-[defsz]\s+return 0 if .*</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>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-stat \[format\] <path> \.\.\. :\s*</expected-output>
|
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
|
|
|
<expected-output>^( |\t)*Print statistics about the file/directory at <path> in the specified format.( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*Format accepts filesize in blocks \(%b\), group name of owner\(%g\), filename \(%n\),( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*block size \(%o\), replication \(%r\), user name of owner\(%u\), modification date( )*</expected-output>
|
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
|
|
|
<expected-output>^( |\t)*\(%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>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-tail \[-f\] <file> :\s*</expected-output>
|
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
|
|
|
<expected-output>^\s*Show the last 1KB of the file.( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*-f\s+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>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-chmod \[-R\] <MODE\[,MODE\]... \| OCTALMODE> PATH... :\s*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*Changes permissions of a file. This works similar to the shell's chmod command( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*with a few exceptions.( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*-R\s*modifies the files recursively. This is the only option currently( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*supported.( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*<MODE>\s*Mode is the same as mode used for the shell's command. The only( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*letters recognized are 'rwxXt', e\.g\. \+t,a\+r,g-w,\+rwx,o=r\.( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*<OCTALMODE>\s+Mode specifed in 3 or 4 digits. If 4 digits, the first may be 1 or( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*0 to turn the sticky bit on or off, respectively.( )*Unlike( |\t)*the( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*shell command, it is not possible to specify only part of the( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*mode, 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 the shell command, no( )*</expected-output>
|
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
|
|
|
<expected-output>^( |\t)*umask is applied.( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</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>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-chown \[-R\] \[OWNER\]\[:\[GROUP\]\] PATH... :\s*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^\s*Changes owner and group of a file\. This is similar to the shell's chown command( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*with a few exceptions.( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*-R( |\t)*modifies the files recursively. This is the only option currently( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*supported.( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*If only the owner or group is specified, then only the owner or group is( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*modified. The owner and group names may only consist of digits, alphabet, and( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*any of .+?. The names are case sensitive.( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*WARNING: Avoid using '.' to separate user name and group though Linux allows it.( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*If user names have dots in them and you are using local file system, you might( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*see surprising results since the shell command 'chown' is used for local files.( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</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>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-chgrp \[-R\] GROUP PATH... :( )*</expected-output>
|
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
|
|
|
<expected-output>^( |\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>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^-help \[cmd ...\] :( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2014-06-13 06:39:57 +00:00
|
|
|
<expected-output>^( |\t)*Displays help for given command or all commands if none is specified.( )*</expected-output>
|
2011-04-18 21:17:34 +00:00
|
|
|
</comparator>
|
|
|
|
</comparators>
|
|
|
|
</test>
|
|
|
|
|
2009-05-26 18:27:23 +00:00
|
|
|
</tests>
|
|
|
|
</configuration>
|