|
29 | 29 | <variable name="JITSERVER_SSL1" value="-XX:JITServerSSLRootCerts=cert.pem" />
|
30 | 30 | <variable name="JITSERVER_SSL2" value="-XX:JITServerSSLRootCerts=wrongCert.pem" />
|
31 | 31 | <variable name="JITSERVER_SSL3" value="-XX:JITServerSSLRootCerts=nosslserverCert.pem" />
|
32 |
| - <variable name="JITSERVER_VERBOSE" value="-Xjit:verbose={JITServer},verbose={JITServerConns},verbose={compilePerformance}" /> |
| 32 | + <variable name="JITSERVER_CLIENT_OPTS" value="-Xjit:count=0,verbose={JITServer},verbose={JITServerConns},verbose={compilePerformance}" /> |
| 33 | + <variable name="NO_LOCAL_SYNC_COMPILE" value="-XX:-JITServerLocalSyncCompiles" /> |
33 | 34 | <variable name="DEFAULT_JITSERVER_OPTIONS" value="-Xjit" />
|
34 | 35 |
|
35 | 36 | <test id="Test default configuration">
|
36 |
| - <command>bash $SCRIPPATH$ $TEST_RESROOT$ $TEST_JDK_BIN$ "$DEFAULT_JITSERVER_OPTIONS$" "$ENABLE_JITSERVER$ $JITSERVER_VERBOSE$" false</command> |
| 37 | + <command>bash $SCRIPPATH$ $TEST_RESROOT$ $TEST_JDK_BIN$ "$DEFAULT_JITSERVER_OPTIONS$" "$ENABLE_JITSERVER$ $JITSERVER_CLIENT_OPTS$ $NO_LOCAL_SYNC_COMPILE$" false</command> |
37 | 38 | <output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
|
38 | 39 | <output type="required" caseSensitive="no" regex="no">JITServer Client Mode.</output>
|
39 | 40 | <output type="success" caseSensitive="no" regex="no">Connected to a server</output>
|
|
45 | 46 | </test>
|
46 | 47 |
|
47 | 48 | <test id="Test JITServer disabled">
|
48 |
| - <command>bash $SCRIPPATH$ $TEST_RESROOT$ $TEST_JDK_BIN$ "$DEFAULT_JITSERVER_OPTIONS$" "$DISABLE_JITSERVER$ $JITSERVER_VERBOSE$" false</command> |
| 49 | + <command>bash $SCRIPPATH$ $TEST_RESROOT$ $TEST_JDK_BIN$ "$DEFAULT_JITSERVER_OPTIONS$" "$DISABLE_JITSERVER$ $JITSERVER_CLIENT_OPTS$ $NO_LOCAL_SYNC_COMPILE$" false</command> |
49 | 50 | <output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
|
50 | 51 | <output type="failure" caseSesnsitive="no" regex="no">Connected to a server</output>
|
51 | 52 | <output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(Fatal|Unhandled) Exception</output>
|
|
56 | 57 | </test>
|
57 | 58 |
|
58 | 59 | <test id="Test bad port">
|
59 |
| - <command>bash $SCRIPPATH$ $TEST_RESROOT$ $TEST_JDK_BIN$ "$DEFAULT_JITSERVER_OPTIONS$" "$ENABLE_JITSERVER$ $JITSERVER_VERBOSE$ -XX:JITServerPort=38399" false</command> |
| 60 | + <command>bash $SCRIPPATH$ $TEST_RESROOT$ $TEST_JDK_BIN$ "$DEFAULT_JITSERVER_OPTIONS$" "$ENABLE_JITSERVER$ $JITSERVER_CLIENT_OPTS$ $NO_LOCAL_SYNC_COMPILE$ -XX:JITServerPort=38399" false</command> |
60 | 61 | <output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
|
61 | 62 | <output type="failure" caseSesnsitive="no" regex="no">Connected to a server</output>
|
62 | 63 | <output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(Fatal|Unhandled) Exception</output>
|
|
67 | 68 | </test>
|
68 | 69 |
|
69 | 70 | <test id="Test bad hostname">
|
70 |
| - <command>bash $SCRIPPATH$ $TEST_RESROOT$ $TEST_JDK_BIN$ "$DEFAULT_JITSERVER_OPTIONS$" "$ENABLE_JITSERVER$ $JITSERVER_VERBOSE$ -XX:JITServerAddress=bad.address" false</command> |
| 71 | + <command>bash $SCRIPPATH$ $TEST_RESROOT$ $TEST_JDK_BIN$ "$DEFAULT_JITSERVER_OPTIONS$" "$ENABLE_JITSERVER$ $JITSERVER_CLIENT_OPTS$ $NO_LOCAL_SYNC_COMPILE$ -XX:JITServerAddress=bad.address" false</command> |
71 | 72 | <output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
|
72 | 73 | <output type="failure" caseSesnsitive="no" regex="no">Connected to a server</output>
|
73 | 74 | <output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(Fatal|Unhandled) Exception</output>
|
|
78 | 79 | </test>
|
79 | 80 |
|
80 | 81 | <test id="Test Metrics">
|
81 |
| - <command>bash $SCRIPPATH$ $TEST_RESROOT$ $TEST_JDK_BIN$ "$DEFAULT_JITSERVER_OPTIONS$" "$ENABLE_JITSERVER$ $JITSERVER_VERBOSE$" true</command> |
| 82 | + <command>bash $SCRIPPATH$ $TEST_RESROOT$ $TEST_JDK_BIN$ "$DEFAULT_JITSERVER_OPTIONS$" "$ENABLE_JITSERVER$ $JITSERVER_CLIENT_OPTS$ $NO_LOCAL_SYNC_COMPILE$" true</command> |
82 | 83 | <output type="required" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
|
83 | 84 | <output type="success" caseSensitive="no" regex="no">jitserver_cpu_utilization</output>
|
84 | 85 | <output type="success" caseSensitive="no" regex="no">jitserver_available_memory</output>
|
|
93 | 94 | </test>
|
94 | 95 |
|
95 | 96 | <test id="Test SSL success condition">
|
96 |
| - <command>bash $SCRIPPATH$ $TEST_RESROOT$ $TEST_JDK_BIN$ "$DEFAULT_JITSERVER_OPTIONS$" "$ENABLE_JITSERVER$ $JITSERVER_VERBOSE$ $JITSERVER_SSL1$" false</command> |
| 97 | + <command>bash $SCRIPPATH$ $TEST_RESROOT$ $TEST_JDK_BIN$ "$DEFAULT_JITSERVER_OPTIONS$" "$ENABLE_JITSERVER$ $JITSERVER_CLIENT_OPTS$ $NO_LOCAL_SYNC_COMPILE$ $JITSERVER_SSL1$" false</command> |
97 | 98 | <output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
|
98 | 99 | <output type="required" caseSensitive="no" regex="no">JITServer Client Mode.</output>
|
99 | 100 | <output type="success" caseSensitive="no" regex="no">Successfully initialized SSL context</output>
|
100 |
| - <output type="success" caseSensitive="no" regex="no">SSL connection on socket</output> |
101 |
| - <output type="required" caseSensitive="no" regex="no">Connected to a server</output> |
| 101 | + <output type="required" caseSensitive="no" regex="no">SSL connection on socket</output> |
| 102 | + <output type="success" caseSensitive="no" regex="no">Connected to a server</output> |
102 | 103 | <output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(Fatal|Unhandled) Exception</output>
|
103 | 104 | <output type="success" caseSensitive="yes" regex="no">JITSERVER EXISTS</output>
|
104 | 105 | <output type="success" caseSensitive="yes" regex="no">JITSERVER STILL EXISTS</output>
|
|
107 | 108 | </test>
|
108 | 109 |
|
109 | 110 | <test id="Test SSL Failure Case with mismatched certificate">
|
110 |
| - <command>bash $SCRIPPATH$ $TEST_RESROOT$ $TEST_JDK_BIN$ "$DEFAULT_JITSERVER_OPTIONS$" "$ENABLE_JITSERVER$ $JITSERVER_VERBOSE$ $JITSERVER_SSL2$" false</command> |
| 111 | + <command>bash $SCRIPPATH$ $TEST_RESROOT$ $TEST_JDK_BIN$ "$DEFAULT_JITSERVER_OPTIONS$" "$ENABLE_JITSERVER$ $JITSERVER_CLIENT_OPTS$ $NO_LOCAL_SYNC_COMPILE$ $JITSERVER_SSL2$" false</command> |
111 | 112 | <output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
|
112 | 113 | <output type="required" caseSensitive="no" regex="no">JITServer Client Mode.</output>
|
113 | 114 | <output type="success" caseSensitive="no" regex="no">Successfully initialized SSL context</output>
|
|
121 | 122 | </test>
|
122 | 123 |
|
123 | 124 | <test id="Test SSL Failure Case with connection to Non-SSL Server">
|
124 |
| - <command>bash $SCRIPPATH$ $TEST_RESROOT$ $TEST_JDK_BIN$ "$DEFAULT_JITSERVER_OPTIONS$" "$ENABLE_JITSERVER$ $JITSERVER_VERBOSE$ $JITSERVER_SSL3$" false</command> |
| 125 | + <command>bash $SCRIPPATH$ $TEST_RESROOT$ $TEST_JDK_BIN$ "$DEFAULT_JITSERVER_OPTIONS$" "$ENABLE_JITSERVER$ $JITSERVER_CLIENT_OPTS$ $NO_LOCAL_SYNC_COMPILE$ $JITSERVER_SSL3$" false</command> |
125 | 126 | <output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
|
126 | 127 | <output type="required" caseSensitive="no" regex="no">JITServer Client Mode.</output>
|
127 | 128 | <output type="success" caseSensitive="no" regex="no">Successfully initialized SSL context</output>
|
|
0 commit comments