You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-commits@hadoop.apache.org by je...@apache.org on 2013/03/07 00:58:57 UTC
svn commit: r1453625 -
/hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml
Author: jeagles
Date: Wed Mar 6 23:58:56 2013
New Revision: 1453625
URL: http://svn.apache.org/r1453625
Log:
HADOOP-9209. Add shell command to dump file checksums (Todd Lipcon via jeagles)
Modified:
hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml
Modified: hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml?rev=1453625&r1=1453624&r2=1453625&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml (original)
+++ hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml Wed Mar 6 23:58:56 2013
@@ -5457,6 +5457,39 @@
</comparator>
</comparators>
</test>
+
+ <test> <!-- TESTED-->
+ <description>checksum: checksum of files(relative path) using globbing</description>
+ <test-commands>
+ <command>-fs NAMENODE -mkdir -p dir0</command>
+ <command>-fs NAMENODE -put CLITEST_DATA/data15bytes dir0/data15bytes</command>
+ <command>-fs NAMENODE -put CLITEST_DATA/data30bytes dir0/data30bytes</command>
+ <command>-fs NAMENODE -put CLITEST_DATA/data60bytes dir0/data60bytes</command>
+ <command>-fs NAMENODE -put CLITEST_DATA/data120bytes dir0/data120bytes</command>
+ <command>-fs NAMENODE -checksum dir0/data*</command>
+ </test-commands>
+ <cleanup-commands>
+ <command>-fs NAMENODE -rm -r /user</command>
+ </cleanup-commands>
+ <comparators>
+ <comparator>
+ <type>RegexpComparator</type>
+ <expected-output>^dir0/data120bytes\tMD5-of-0MD5-of-512CRC32C\t000002000000000000000000a58cdc3c0967fc8cddb7fed5960d06f2</expected-output>
+ </comparator>
+ <comparator>
+ <type>RegexpComparator</type>
+ <expected-output>^dir0/data15bytes\tMD5-of-0MD5-of-512CRC32C\t0000020000000000000000007267e9528002723a30939aefc238d665</expected-output>
+ </comparator>
+ <comparator>
+ <type>RegexpComparator</type>
+ <expected-output>^dir0/data30bytes\tMD5-of-0MD5-of-512CRC32C\t000002000000000000000000fc09371298117c4943cf089b4bd79c96</expected-output>
+ </comparator>
+ <comparator>
+ <type>RegexpComparator</type>
+ <expected-output>^dir0/data60bytes\tMD5-of-0MD5-of-512CRC32C\t000002000000000000000000009476431d851dd7b0a8d057a404d7b9</expected-output>
+ </comparator>
+ </comparators>
+ </test>
<!-- Tests for moveToLocal -->
<!-- Not yet implemented -->