-
Notifications
You must be signed in to change notification settings - Fork 10
/
Spidermonkey-upstream-check.sh
60 lines (44 loc) · 1.65 KB
/
Spidermonkey-upstream-check.sh
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
#!/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
echo "# 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 --disable-bootstrap
ac_add_options --disable-rust-simd
ac_add_options --enable-simulator=riscv64
ac_add_options --enable-jit" > mozconfig
export MOZCONFIG=$PWD/mozconfig
python3 -m pip install --user mercurial
export PATH="$(python3 -m site --user-base)/bin:$PATH"
hg version
rm -rf ./mozilla-unified
if [ -d "mozilla-unified" ];then
cd mozilla-unified
hg pull
else
curl https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py -O
python3 bootstrap.py --application-choice=js --no-interactive --no-system-changes
cd mozilla-unified
fi
hg log -l 1
rm -rf ./obj-opt-x86_64-pc-linux-gnu
./mach build
./mach jstests --format automation
## skip --spectre-mitigations=on case
./mach jittest -t 400 -x ion/bug1433496.js --format automation
./mach jittest --ion -t 800 -x ion/bug1433496.js --format automation
./mach jsapi-tests