-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathSpidermonkey-upstream-check.sh
More file actions
61 lines (45 loc) · 1.71 KB
/
Spidermonkey-upstream-check.sh
File metadata and controls
61 lines (45 loc) · 1.71 KB
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
#!/bin/bash
## System preparation
## sudo apt-get install -y bash findutils gzip libxml2 m4 make perl tar unzip watchman rustc
set -e
rustup toolchain install stable
rustup toolchain list -v
export PATH=/home/jenkinsbot/snap/rustup/common/rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/:$PATH
rustc --version
rm -rf $HOME/.mozbuild
cat << 'EOF' > mozconfig
# Build only the JS shell
ac_add_options --enable-application=js
# Enable optimization for speed
ac_add_options --enable-optimize
# Disable debug checks to better match a release build of Firefox.
ac_add_options --enable-debug
# Use a separate objdir for optimized builds to allow easy
# switching between optimized and debug builds while developing.
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-opt-@CONFIG_GUESS@
ac_add_options --enable-jitspew
ac_add_options --enable-gczeal
ac_add_options --enable-simulator=riscv64
ac_add_options --enable-jit
ac_add_options --enable-wasm-jspi
EOF
export MOZCONFIG=$PWD/mozconfig
git --version
rm -rf ./firefox
if [ -d 'firefox' ]; then
cd firefox
git pull
else
curl https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py -L -O
python3 bootstrap.py --application-choice=js --no-interactive --no-system-changes
cd firefox
fi
git log HEAD~1..HEAD
rm -rf ./obj-opt-x86_64-pc-linux-gnu
./mach build
./mach jstests -- -t 400 --format automation --no-progress
./mach jit-test -- -t 400 --format automation --no-progress
./mach jit-test -- --ion -t 400 --format automation --no-progress
RISCV_EXT_ZBA=1 RISCV_EXT_ZBB=1 ./mach jit-test -- -t 400 --format automation --no-progress
RISCV_EXT_ZBA=1 RISCV_EXT_ZBB=1 ./mach jit-test -- --ion -t 400 --format automation --no-progress
./mach jsapi-tests