aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test/java/org/aspectj/systemtest/ajc198/AllTestsAspectJ198.java
blob: 8e84af9fd384470a789694c10c3a52636dd22324 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*******************************************************************************
 * Copyright (c) 2021 Contributors
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
 *******************************************************************************/
package org.aspectj.systemtest.ajc198;

import junit.framework.Test;
import junit.framework.TestSuite;
import org.aspectj.util.LangUtil;

/**
 * @author Alexander Kriegisch
 */
public class AllTestsAspectJ198 {

	public static Test suite() {
		TestSuite suite = new TestSuite("AspectJ 1.9.8 tests");
    suite.addTest(Bugs198Tests.suite());
		if (LangUtil.isVMGreaterOrEqual(9)) {
			suite.addTest(CompileWithReleaseTests.suite());
		}
		if (LangUtil.isVMGreaterOrEqual(11)) {
			suite.addTest(Bugs198Java11Tests.suite());
		}
		if (LangUtil.isVMGreaterOrEqual(17)) {
			suite.addTest(SanityTestsJava17.suite());
			suite.addTest(Ajc198TestsJava.suite());
		}
		// Do not run tests using a previous compiler's preview features anymore. They would all fail.
		/*
		if (LangUtil.isVMGreaterOrEqual(17) && !LangUtil.isVMGreaterOrEqual(18)) {
			suite.addTest(Java17PreviewFeaturesTests.suite());
		}
		*/
		return suite;
	}
}