From 5b24fb13096589e25091d928a9e456dbc861ea7f Mon Sep 17 00:00:00 2001 From: Seonghyun Kim Date: Wed, 19 Jul 2023 19:34:03 +0900 Subject: [PATCH] Add arm32 test Signed-off-by: Seonghyun Kim --- .jenkins/JenkinsfileArm | 20 +++++++++++++++++--- tools/test/chakracore/chakracore.run.sh | 3 +++ 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/.jenkins/JenkinsfileArm b/.jenkins/JenkinsfileArm index ab4ea2f7c..f08fd9e43 100644 --- a/.jenkins/JenkinsfileArm +++ b/.jenkins/JenkinsfileArm @@ -39,15 +39,29 @@ node { sh 'git submodule update --init test third_party/GCutil' } - stage('Prepare build') { + withCredentials([sshUserPrivateKey(credentialsId: 'arm32docker', passphraseVariable: 'password', usernameVariable: 'userName')]) { + def remote = [:] + remote.name = 'arm32-docker' + remote.host = 'localhost' + remote.port = 11111 + remote.user = userName + remote.password = password + remote.allowAnyHosts = true + stage('Remote SSH') { + sshCommand remote: remote, command: "ls -lrt" + sshCommand remote: remote, command: "for i in {1..5}; do echo -n \"Loop \$i \"; date ; sleep 1; done" + } + } + + stage('Prepare build on aarch 64') { sh 'cmake -H./ -Bout -DESCARGOT_MODE=release -DESCARGOT_THREADING=ON -DESCARGOT_TEMPORAL=ON -DESCARGOT_TCO=ON -DESCARGOT_TEST=ON -DESCARGOT_OUTPUT=shell -GNinja' } - stage('Build') { + stage('Build on aarch 64') { sh 'cmake --build ./out/' } - stage('Running test') { + stage('Running test on aarch64') { 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' } diff --git a/tools/test/chakracore/chakracore.run.sh b/tools/test/chakracore/chakracore.run.sh index dd4a98508..c3cb4bfe7 100755 --- a/tools/test/chakracore/chakracore.run.sh +++ b/tools/test/chakracore/chakracore.run.sh @@ -297,6 +297,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