follow-up commit Bug 531326 - [10][tests] Add RunAllJava10Tests akin to
RunAllJava9Tests
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/TestAll.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/TestAll.java
index c7f3bbf..5aaaf38 100644
--- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/TestAll.java
+++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/TestAll.java
@@ -1,10 +1,14 @@
 /*******************************************************************************
- * Copyright (c) 2000, 2017 IBM Corporation and others.
+ * Copyright (c) 2000, 2018 IBM Corporation and others.
  * 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
  *
+ * This is an implementation of an early-draft specification developed under the Java
+ * Community Process (JCP) and is made available for testing and evaluation purposes
+ * only. The code is not compatible with any specification of the JCP.
+ *
  * Contributors:
  *     IBM Corporation - initial API and implementation
  *     Stephan Herrmann - Contributions for
@@ -162,7 +166,10 @@
 	since_9.add(ModuleAttributeTests.class);
 	since_9.add(AutomaticModuleNamingTest.class);
 	since_9.add(UnnamedModuleTest.class);
-	
+
+	// add 10 specific test here (check duplicates)
+	ArrayList since_10 = new ArrayList();
+
 	// Build final test suite
 	TestSuite all = new TestSuite(TestAll.class.getName());
 	all.addTest(new TestSuite(StandAloneASTParserTest.class));
@@ -234,6 +241,19 @@
 		TestCase.RUN_ONLY_ID = null;
 		all.addTest(AbstractCompilerTest.buildComplianceTestSuite(ClassFileConstants.JDK9, tests_9));
 	}
+
+	if ((possibleComplianceLevels & AbstractCompilerTest.F_10) != 0) {
+		ArrayList tests_10 = (ArrayList)standardTests.clone();
+		tests_10.addAll(since_1_4);
+		tests_10.addAll(since_1_5);
+		tests_10.addAll(since_1_6);
+		tests_10.addAll(since_1_7);
+		tests_10.addAll(since_1_8);
+		tests_10.addAll(since_9);
+		tests_10.addAll(since_10);
+		TestCase.resetForgottenFilters(tests_10);
+		all.addTest(AbstractCompilerTest.buildComplianceTestSuite(ClassFileConstants.JDK10, tests_10));
+	}
 	all.addTest(new TestSuite(Jsr14Test.class));
 	return all;
 }