Skip to content

Commit

Permalink
Add arm32 test
Browse files Browse the repository at this point in the history
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
  • Loading branch information
ksh8281 committed Jul 20, 2023
1 parent 53b953f commit cab81e6
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
30 changes: 27 additions & 3 deletions .jenkins/JenkinsfileArm
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,39 @@ node {
sh 'git submodule update --init test third_party/GCutil'
}

stage('Prepare build') {
withCredentials([usernamePassword(credentialsId: 'arm32docker', passwordVariable: 'passwordVariable', usernameVariable: 'usernameVariable')]) {
def remote = [:]
remote.name = 'arm32-docker'
remote.host = 'localhost'
remote.port = 11111
remote.user = usernameVariable
remote.password = passwordVariable
remote.allowAnyHosts = true
stage('prepare workspace') {
sshCommand remote: remote, command: "rm -rf escargot escargot.zip"
sshCommand remote: remote, command: "pwd"
sh 'zip -r escargot.zip ./*
sshPut remote: remote, from: "escargot.zip", into: "./jenkins/"
sshCommand remote: remote, command: "unzip escargot.zip -d escrgot"
sshCommand remote: remote, command: "ls; cd escargot"
}
stage('Prepare build on arm32') {
sshCommand remote: remote, command: "pwd"
sshCommand remote: remote, command: "cd escargot"
sshcommand remote: remote, command: "pwd"
sshcommand remote: remote, command: "cmake -H./ -Bout -DESCARGOT_MODE=release -DESCARGOT_THREADING=ON -DESCARGOT_TEMPORAL=ON -DESCARGOT_TCO=ON -DESCARGOT_TEST=ON -DESCARGOT_OUTPUT=shell -GNinja"
}
}

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'
}
Expand Down
3 changes: 3 additions & 0 deletions tools/test/chakracore/chakracore.run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cab81e6

Please sign in to comment.