Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/FixCSV.java')
-rw-r--r--performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/FixCSV.java71
1 files changed, 0 insertions, 71 deletions
diff --git a/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/FixCSV.java b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/FixCSV.java
deleted file mode 100644
index 9da1b9932..000000000
--- a/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/FixCSV.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2015 Obeo.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.compare.tests.performance;
-
-import java.io.File;
-import java.io.IOException;
-import java.nio.charset.Charset;
-import java.nio.charset.StandardCharsets;
-import java.nio.file.Files;
-import java.nio.file.Path;
-import java.nio.file.Paths;
-import java.util.ArrayList;
-import java.util.Collection;
-
-import org.junit.Test;
-
-/**
- * Temporary file: reorganize csv files of performances tests.
- *
- * @author <a href="mailto:axel.richard@obeo.fr">Axel Richard</a>
- *
- */
-public class FixCSV {
-
- @Test
- public void test() throws IOException {
- Collection<String> scenarios = new ArrayList<String>();
- scenarios.add("TestCompare");
- scenarios.add("TestConflict");
- scenarios.add("TestDiff");
- scenarios.add("TestEqui");
- scenarios.add("TestLogicalModel");
- scenarios.add("TestMatchContent");
- scenarios.add("TestMatchId");
- scenarios.add("TestPostComparisonGMF");
- scenarios.add("TestPostComparisonUML");
- scenarios.add("TestPostMatchUML");
- scenarios.add("TestReq");
-
- Collection<String> tests = new ArrayList<String>();
- tests.add("-system_time.csv");
- tests.add("-heap_delta.csv");
- tests.add("-heap_peek.csv");
-
- for (String scenario : scenarios) {
- for (String test : tests) {
- File output = new File(scenario + test);
- if (output.exists()) {
- Path path = Paths.get(output.toURI());
- Charset charset = StandardCharsets.UTF_8;
- String content = new String(Files.readAllBytes(path), charset);
- // Replace first line
- content = content
- .replaceFirst("Large UML",
- "Small Split UML, Nominal Split UML, Large UML, Large Split UML");
- // Delete 2015 lines
- content = content.replaceAll("2015/01/.*", "");
- Files.write(path, content.getBytes(charset));
- }
- }
- }
- }
-}

Back to the top