-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrun_all.sh
75 lines (62 loc) · 1.97 KB
/
run_all.sh
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
70
71
72
73
74
75
#!/usr/bin/env bash
#
# Copyright \(c\) "2022" Red Hat and others
#
# This program and the accompanying materials are made available under the Apache Software License 2.0 which is available at:
# https://www.apache.org/licenses/LICENSE-2.0.
#
# SPDX-License-Identifier: Apache-2.0
#
# Sample run script to go through the steps of running the TCKs once installed
# Uncomment if running against staged API artifacts
#STAGING=-Pstaging
# Validate required env variables
if [[ -z "${JBOSS_HOME}" ]]; then
echo "The JBOSS_HOME env variable needs to be set to the location of the WildFly server root"
exit 1
fi
# Check
ca_jar_size=($(wc -c ${JBOSS_HOME}/modules/system/layers/base/jakarta/annotation/api/main/jakarta.annotation-api-2.1.0.jar ))
if [[ ${ca_jar_size} != 26141 ]]; then
echo "Patching WFP jakarta.annotation-api-2.1.0.jar to 2.1.1..."
wget -O ${JBOSS_HOME}/modules/system/layers/base/jakarta/annotation/api/main/jakarta.annotation-api-2.1.0.jar \
https://repo1.maven.org/maven2/jakarta/annotation/jakarta.annotation-api/2.1.1/jakarta.annotation-api-2.1.1.jar
fi
echo "+++ Environment:"
uname -a
echo "JAVA_HOME=$JAVA_HOME"
$JAVA_HOME/bin/java -version
echo "+++ Running jsonp-standalone-tck"
cd jsonp-standalone-tck
mvn ${STAGING} verify
cd ..
echo "+++ Running jsonb-standalone-tck"
cd jsonb-standalone-tck
mvn ${STAGING} verify
cd ..
echo "+++ Running rest-tck"
cd rest-tck
mvn ${STAGING} -Pupdate-wildfly validate
mvn ${STAGING} verify
cd ..
echo "+++ Running inject-tck"
cd inject-tck
mvn ${STAGING} verify
cd ..
echo "+++ Running cdi-tck"
cd cdi-tck
mvn ${STAGING} -Pupdate-wildfly validate
mvn ${STAGING} verify
echo "+++ Running CDI signature tests"
mvn ${STAGING} -Pcdi-signature-test process-test-sources
echo "+++ Running Commons Annotations signature tests"
mvn ${STAGING} -Pca-signature-test process-test-sources
cd ..
echo "+++ Running cdi-langmodel-tck"
cd cdi-langmodel-tck
mvn ${STAGING} test
cd ..
echo "+++ Running core-tck"
cd core-tck
mvn ${STAGING} verify
cd ..