private static void Main(string[] args) { if (args.Length > 0 && args[0].Equals("p")) { bool result = HadoopFilePartitionTest.TestWithByteDeserializer(); Assert.IsTrue(result); } if (args.Length > 0 && args[0].Equals("c")) { HadoopFileSystemTest t = new HadoopFileSystemTest(); Assert.IsTrue(t.TestCopyFromRemote()); } if (args.Length > 0 && args[0].Equals("b")) { HadoopFileSystemTest t = new HadoopFileSystemTest(); Assert.IsTrue(t.TestCopyFromLocalAndBack()); } }
private static void Main(string[] args) { if (args.Length > 0 && args[0].Equals("p")) { bool result = HadoopFileInputPartitionTest.TestWithByteDeserializer(); Assert.IsTrue(result); } // the remote path name can be either full or relative, passing with the second argument if (args.Length > 1 && args[0].Equals("c")) { HadoopFileSystemTest t = new HadoopFileSystemTest(); Assert.IsTrue(t.TestCopyFromRemote(args[1])); } if (args.Length > 0 && args[0].Equals("b")) { HadoopFileSystemTest t = new HadoopFileSystemTest(); Assert.IsTrue(t.TestCopyFromLocalAndBack()); } }