Add arm32 test

Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
Seonghyun Kim 2023-07-19 19:34:03 +09:00 committed by Hyukwoo Park
commit 95aa9934a0
2 changed files with 41 additions and 5 deletions

View file

@ -39,17 +39,48 @@ node {
sh 'git submodule update --init test third_party/GCutil'
}
stage('Prepare build') {
sh 'cmake -H./ -Bout -DESCARGOT_MODE=release -DESCARGOT_THREADING=ON -DESCARGOT_TEMPORAL=ON -DESCARGOT_TCO=ON -DESCARGOT_TEST=ON -DESCARGOT_OUTPUT=shell -GNinja'
def arm32RemoteInfo = [:]
arm32RemoteInfo.name = 'arm32-docker'
arm32RemoteInfo.host = 'localhost'
arm32RemoteInfo.port = 11111
arm32RemoteInfo.allowAnyHosts = true
withCredentials([usernamePassword(credentialsId: 'arm32docker', passwordVariable: 'passwordVariable', usernameVariable: 'usernameVariable')]) {
arm32RemoteInfo.user = usernameVariable
arm32RemoteInfo.password = passwordVariable
}
stage('prepare arm32 workspace') {
sshCommand remote: arm32RemoteInfo, command: "rm -rf escargot escargot.zip"
sshCommand remote: arm32RemoteInfo, command: "pwd"
sh "zip -r escargot.zip ./*"
sshPut remote: arm32RemoteInfo, from: "escargot.zip", into: "./"
sshCommand remote: arm32RemoteInfo, command: "unzip escargot.zip -d escargot"
}
stage('Build') {
stage('Build arm32') {
sshCommand remote: arm32RemoteInfo, command: "\
cd escargot;\
cmake -H./ -Bout -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=arm32 -DESCARGOT_MODE=release -DESCARGOT_THREADING=ON -DESCARGOT_TEMPORAL=ON -DESCARGOT_TCO=ON -DESCARGOT_TEST=ON -DESCARGOT_OUTPUT=shell -GNinja;\
cmake --build ./out/;\
"
}
stage('Build aarch64') {
sh 'cmake -H./ -Bout -DESCARGOT_MODE=release -DESCARGOT_THREADING=ON -DESCARGOT_TEMPORAL=ON -DESCARGOT_TCO=ON -DESCARGOT_TEST=ON -DESCARGOT_OUTPUT=shell -GNinja'
sh 'cmake --build ./out/'
}
stage('Running test') {
timeout(30) {
sh '#!/bin/bash\nGC_FREE_SPACE_DIVISOR=1 tools/run-tests.py --engine="${WORKSPACE}/out/escargot" --extra-arg="--skip intl402" new-es v8 spidermonkey chakracore test262'
timeout(60) {
parallel (
'arm32' : {
sshCommand remote: arm32RemoteInfo, command: "\
cd escargot;\
GC_FREE_SPACE_DIVISOR=1 tools/run-tests.py --engine='/root/escargot/out/escargot' --extra-arg='--skip intl402' new-es v8 spidermonkey chakracore test262"
},
'aarch64' : {
sh '#!/bin/bash\nGC_FREE_SPACE_DIVISOR=1 tools/run-tests.py --engine="${WORKSPACE}/out/escargot" --extra-arg="--skip intl402" new-es v8 spidermonkey chakracore test262'
},
)
}
}
} catch (e) {

View file

@ -75,6 +75,8 @@ run_tcs () {
if [[ $RT_TZSET != "" ]]; then
RT_CMD="env TZ=US/Pacific $RT_CMD";
fi
# we should remove GC large alloc warning. it can affect output
RT_CMD="env GC_LARGE_ALLOC_WARN_INTERVAL=32767 $RT_CMD"
# $($RT_CMD > $RT_TEMP_OUTPUT_FILE 2>> $LOG_FILE) &
$RT_CMD &> $RT_TEMP_OUTPUT_FILE &
PID=$!
@ -297,6 +299,9 @@ main() {
done
echo "==========================================================" | tee -a $LOG_FILE
print_count "Total" $TOTAL_COUNT $TOTAL_PASS $TOTAL_FAIL $TOTAL_SKIP
if [[ $TOTAL_FAIL != 0 ]]; then
cat $LOG_FILE
fi
}
main $(pwd)/$1 $2