13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 import java.io.File;
26 import jdk.test.lib.process.OutputAnalyzer;
27 import jdk.test.lib.process.ProcessTools;
28 import jdk.test.lib.cds.CDSOptions;
29 import jdk.test.lib.cds.CDSTestUtils;
30 import jdk.test.lib.cds.CDSTestUtils.Result;
31
32 /**
33 * Base class for test cases in test/hotspot/jtreg/runtime/appcds/dynamicArchive/
34 */
35 class DynamicArchiveTestBase {
36 private static boolean executedIn_run = false;
37
38 public static interface DynamicArchiveTest {
39 public void run() throws Exception;
40 }
41
42 public static interface DynamicArchiveTestWithArgs {
43 public void run(String args[]) throws Exception;
44 }
45
46
47 /*
48 * Tests for dynamic archives should be written using this pattern:
49 *
50 * public class HelloDynamic extends DynamicArchiveTestBase {
51 * public static void main(String[] args) throws Exception {
52 * runTest(HelloDynamic::testDefaultBase); // launch one test case
53 * }
|
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 import java.io.File;
26 import jdk.test.lib.process.OutputAnalyzer;
27 import jdk.test.lib.process.ProcessTools;
28 import jdk.test.lib.cds.CDSOptions;
29 import jdk.test.lib.cds.CDSTestUtils;
30 import jdk.test.lib.cds.CDSTestUtils.Result;
31
32 /**
33 * Base class for test cases in test/hotspot/jtreg/runtime/cds/dynamicArchive/
34 */
35 class DynamicArchiveTestBase {
36 private static boolean executedIn_run = false;
37
38 public static interface DynamicArchiveTest {
39 public void run() throws Exception;
40 }
41
42 public static interface DynamicArchiveTestWithArgs {
43 public void run(String args[]) throws Exception;
44 }
45
46
47 /*
48 * Tests for dynamic archives should be written using this pattern:
49 *
50 * public class HelloDynamic extends DynamicArchiveTestBase {
51 * public static void main(String[] args) throws Exception {
52 * runTest(HelloDynamic::testDefaultBase); // launch one test case
53 * }
|