< prev index next >
test/tools/pack200/PackTestZip64.java
Print this page
@@ -35,27 +35,34 @@
* @bug 8029646
* @summary tests that native unpacker produces the same result as Java one
* @compile -XDignore.symbol.file Utils.java PackTestZip64.java
* @run main PackTestZip64
* @author kizune
- * @key intermittent
*/
public class PackTestZip64 {
+
+ private static final boolean bigJarEnabled
+ = Boolean.getBoolean("PackTestZip64.enableBigJar");
+
public static void main(String... args) throws Exception {
testPacking();
Utils.cleanup();
}
// 1KB buffer is enough to copy jar content
private static final byte[] BUFFER = new byte[1024];
static void testPacking() throws IOException {
- // make a copy of the test specimen to local directory
File testFile = new File("tools_java.jar");
+ if (bigJarEnabled) {
// Add a large number of small files to the golden jar
generateLargeJar(testFile, Utils.getGoldenJar());
+ } else {
+ // make a copy of the test specimen to local directory
+ Utils.copyFile(Utils.getGoldenJar(), testFile);
+ }
List<String> cmdsList = new ArrayList<>();
// Repack file to get the Java-based result
cmdsList.add(Utils.getPack200Cmd());
< prev index next >