Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 2f8f9d476b696dd94fc5b93e065f32a82226366d (plain) (blame)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*******************************************************************************
 * Copyright (c) 2010, 2015 Ericsson 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
 *
 * Contributors:
 *     Ericsson	AB		  - Initial implementation of Test cases
 *     Marc Khouzam (Ericsson) - Tests for GDB 7.4
 *******************************************************************************/
package org.eclipse.cdt.tests.dsf.gdb.tests;

import org.eclipse.cdt.tests.dsf.gdb.launching.TestsPlugin;

public class ITestConstants {
	public static final String SUFFIX_GDB_6_6 = "6.6";
	public static final String SUFFIX_GDB_6_7 = "6.7";
	public static final String SUFFIX_GDB_6_8 = "6.8";
	public static final String SUFFIX_GDB_7_0 = "7.0";
	public static final String SUFFIX_GDB_7_1 = "7.1";
	public static final String SUFFIX_GDB_7_2 = "7.2";
	public static final String SUFFIX_GDB_7_3 = "7.3";
	public static final String SUFFIX_GDB_7_4 = "7.4";
	public static final String SUFFIX_GDB_7_5 = "7.5";
	public static final String SUFFIX_GDB_7_6 = "7.6";
	public static final String SUFFIX_GDB_7_7 = "7.7";
	public static final String SUFFIX_GDB_7_8 = "7.8";
	public static final String SUFFIX_GDB_7_9 = "7.9";
	public static final String SUFFIX_GDB_7_10 = "7.10";
	public static final String SUFFIX_GDB_7_11 = "7.11";
	public static final String SUFFIX_GDB_7_12 = "7.12";
	public static final String SUFFIX_GDB_8_0 = "8.0";

	public static String[] ALL_SUPPORTED_VERSIONS = new String[] {
			// add new versions here
			ITestConstants.SUFFIX_GDB_8_0,
			ITestConstants.SUFFIX_GDB_7_12,
			ITestConstants.SUFFIX_GDB_7_11,
			ITestConstants.SUFFIX_GDB_7_10,
			ITestConstants.SUFFIX_GDB_7_9,
			ITestConstants.SUFFIX_GDB_7_8,
			ITestConstants.SUFFIX_GDB_7_7,
			ITestConstants.SUFFIX_GDB_7_6,
			ITestConstants.SUFFIX_GDB_7_5,
			ITestConstants.SUFFIX_GDB_7_4,
			ITestConstants.SUFFIX_GDB_7_3,
			ITestConstants.SUFFIX_GDB_7_2,
			ITestConstants.SUFFIX_GDB_7_1,
	};
	
	public static String[] ALL_UNSUPPORTED_VERSIONS = new String[] {
			ITestConstants.SUFFIX_GDB_7_0,
			ITestConstants.SUFFIX_GDB_6_8,
			ITestConstants.SUFFIX_GDB_6_7,
			ITestConstants.SUFFIX_GDB_6_6,
	};
	
	public static String[] ALL_KNOWN_VERSIONS;
	static {
		// Initialize all known version based on the other arrays to avoid code duplication
		ALL_KNOWN_VERSIONS = new String[ALL_SUPPORTED_VERSIONS.length + ALL_UNSUPPORTED_VERSIONS.length];
		System.arraycopy(ALL_SUPPORTED_VERSIONS, 0, ALL_KNOWN_VERSIONS, 0, ALL_SUPPORTED_VERSIONS.length);
		System.arraycopy(ALL_UNSUPPORTED_VERSIONS, 0, ALL_KNOWN_VERSIONS, ALL_SUPPORTED_VERSIONS.length, ALL_UNSUPPORTED_VERSIONS.length);
	};
	
	// Attribute that allows a test to request not to start gdbserver even if the session is a remote one
	public static final String LAUNCH_GDB_SERVER = TestsPlugin.PLUGIN_ID + ".launchGdbServer";
}

Back to the top