Skip to content
Permalink
Browse files

test, bugfix: fix the arm64 test env (#504)

  • Loading branch information...
ngot authored and xicilion committed May 23, 2019
1 parent 46da2f7 commit babc961c5f97a770991b73cdbf29aa5b2073a34b
Showing with 8 additions and 1 deletion.
  1. +8 −1 .travis/test.sh
@@ -16,6 +16,7 @@ if [[ $TRAVIS_OS_NAME == 'linux' ]]; then

if [[ $ARCH == "arm" ]]; then
# Test on arm using qemu
sudo docker run --rm --privileged multiarch/qemu-user-static:register
DIR=`pwd`;sudo docker run --privileged=true -it -v ${DIR}:/home/ci fibjs/build-env:clang /bin/sh -c "
cd /home;
sh init_armhf.sh;
@@ -26,7 +27,13 @@ if [[ $TRAVIS_OS_NAME == 'linux' ]]; then

if [[ $ARCH == "arm64" ]]; then
# Test on arm64 using qemu
DIR=`pwd`;sudo docker run -it -v ${DIR}:/home/ci fibjs/build-env:clang /bin/sh -c "cd /home/ci; qemu-aarch64 ./bin/Linux_arm64_release/fibjs test/main.js"
sudo docker run --rm --privileged multiarch/qemu-user-static:register
DIR=`pwd`;sudo docker run --privileged=true -it -v ${DIR}:/home/ci fibjs/build-env:clang /bin/sh -c "
cd /home;
sh init_arm64.sh;
cp -f ./ci/bin/Linux_arm64_release/fibjs ./arm64_root_fs/bin/fibjs;
cp -rf ./ci/test ./arm64_root_fs/home/test
chroot ./arm64_root_fs fibjs /home/test/main.js"
fi
else # darwin
if [[ $ARCH == "amd64" ]]; then

0 comments on commit babc961

Please sign in to comment.
You can’t perform that action at this time.