Skip to content

Commit 7ecb686

Browse files
authored
Remove random indentation in browser test instructions (#340)
1 parent a236b3b commit 7ecb686

File tree

2 files changed

+68
-68
lines changed

2 files changed

+68
-68
lines changed

CONTRIBUTING.md

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -104,45 +104,45 @@ node test_xeus_cpp.js
104104
It is possible to run the Emscripten tests in a headless browser. We will run our tests in a fresh installed browser. Installing the browsers, and running the tests within the installed browsers will be platform dependent. To do this on MacOS execute the following
105105

106106
```bash
107-
wget "https://download.mozilla.org/?product=firefox-latest&os=osx&lang=en-US" -O Firefox-latest.dmg
108-
hdiutil attach Firefox-latest.dmg
109-
cp -r /Volumes/Firefox/Firefox.app $PWD
110-
hdiutil detach /Volumes/Firefox
111-
cd ./Firefox.app/Contents/MacOS/
112-
export PATH="$PWD:$PATH"
113-
cd
114-
115-
wget https://dl.google.com/chrome/mac/stable/accept_tos%3Dhttps%253A%252F%252Fwww.google.com%252Fintl%252Fen_ph%252Fchrome%252Fterms%252F%26_and_accept_tos%3Dhttps%253A%252F%252Fpolicies.google.com%252Fterms/googlechrome.pkg
116-
pkgutil --expand-full googlechrome.pkg google-chrome
117-
cd ./google-chrome/GoogleChrome.pkg/Payload/Google\ Chrome.app/Contents/MacOS/
118-
export PATH="$PWD:$PATH"
119-
cd
120-
121-
echo "Running test_xeus_cpp in Firefox"
122-
python $BUILD_PREFIX/bin/emrun.py --browser="firefox" --kill_exit --browser-args="--headless" test_xeus_cpp.html
123-
echo "Running test_xeus_cpp in Google Chrome"
124-
python $BUILD_PREFIX/bin/emrun.py --browser="Google Chrome" --kill_exit --browser-args="--headless --no-sandbox" test_xeus_cpp.html
107+
wget "https://download.mozilla.org/?product=firefox-latest&os=osx&lang=en-US" -O Firefox-latest.dmg
108+
hdiutil attach Firefox-latest.dmg
109+
cp -r /Volumes/Firefox/Firefox.app $PWD
110+
hdiutil detach /Volumes/Firefox
111+
cd ./Firefox.app/Contents/MacOS/
112+
export PATH="$PWD:$PATH"
113+
cd
114+
115+
wget https://dl.google.com/chrome/mac/stable/accept_tos%3Dhttps%253A%252F%252Fwww.google.com%252Fintl%252Fen_ph%252Fchrome%252Fterms%252F%26_and_accept_tos%3Dhttps%253A%252F%252Fpolicies.google.com%252Fterms/googlechrome.pkg
116+
pkgutil --expand-full googlechrome.pkg google-chrome
117+
cd ./google-chrome/GoogleChrome.pkg/Payload/Google\ Chrome.app/Contents/MacOS/
118+
export PATH="$PWD:$PATH"
119+
cd
120+
121+
echo "Running test_xeus_cpp in Firefox"
122+
python $BUILD_PREFIX/bin/emrun.py --browser="firefox" --kill_exit --browser-args="--headless" test_xeus_cpp.html
123+
echo "Running test_xeus_cpp in Google Chrome"
124+
python $BUILD_PREFIX/bin/emrun.py --browser="Google Chrome" --kill_exit --browser-args="--headless --no-sandbox" test_xeus_cpp.html
125125
```
126126

127127
To do this on Ubuntu x86 execute the following
128128

129129
```bash
130-
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
131-
dpkg-deb -x google-chrome-stable_current_amd64.deb $PWD/chrome
132-
cd ./chrome/opt/google/chrome/
133-
export PATH="$PWD:$PATH"
134-
cd -
135-
136-
wget https://ftp.mozilla.org/pub/firefox/releases/138.0.1/linux-x86_64/en-GB/firefox-138.0.1.tar.xz
137-
tar -xJf firefox-138.0.1.tar.xz
138-
cd ./firefox
139-
export PATH="$PWD:$PATH"
140-
cd -
141-
142-
echo "Running test_xeus_cpp in Firefox"
143-
python $BUILD_PREFIX/bin/emrun.py --browser="firefox" --kill_exit --timeout 60 --browser-args="--headless" test_xeus_cpp.html
144-
echo "Running test_xeus_cpp in Google Chrome"
145-
python $BUILD_PREFIX/bin/emrun.py --browser="google-chrome" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" test_xeus_cpp.html
130+
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
131+
dpkg-deb -x google-chrome-stable_current_amd64.deb $PWD/chrome
132+
cd ./chrome/opt/google/chrome/
133+
export PATH="$PWD:$PATH"
134+
cd -
135+
136+
wget https://ftp.mozilla.org/pub/firefox/releases/138.0.1/linux-x86_64/en-GB/firefox-138.0.1.tar.xz
137+
tar -xJf firefox-138.0.1.tar.xz
138+
cd ./firefox
139+
export PATH="$PWD:$PATH"
140+
cd -
141+
142+
echo "Running test_xeus_cpp in Firefox"
143+
python $BUILD_PREFIX/bin/emrun.py --browser="firefox" --kill_exit --timeout 60 --browser-args="--headless" test_xeus_cpp.html
144+
echo "Running test_xeus_cpp in Google Chrome"
145+
python $BUILD_PREFIX/bin/emrun.py --browser="google-chrome" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" test_xeus_cpp.html
146146
```
147147

148148
To build Jupyter Lite with this kernel without creating a website you can execute the following

README.md

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -106,45 +106,45 @@ node test_xeus_cpp.js
106106
It is possible to run the Emscripten tests in a headless browser. We will run our tests in a fresh installed browser. Installing the browsers, and running the tests within the installed browsers will be platform dependent. To do this on MacOS execute the following
107107

108108
```bash
109-
wget "https://download.mozilla.org/?product=firefox-latest&os=osx&lang=en-US" -O Firefox-latest.dmg
110-
hdiutil attach Firefox-latest.dmg
111-
cp -r /Volumes/Firefox/Firefox.app $PWD
112-
hdiutil detach /Volumes/Firefox
113-
cd ./Firefox.app/Contents/MacOS/
114-
export PATH="$PWD:$PATH"
115-
cd -
116-
117-
wget https://dl.google.com/chrome/mac/stable/accept_tos%3Dhttps%253A%252F%252Fwww.google.com%252Fintl%252Fen_ph%252Fchrome%252Fterms%252F%26_and_accept_tos%3Dhttps%253A%252F%252Fpolicies.google.com%252Fterms/googlechrome.pkg
118-
pkgutil --expand-full googlechrome.pkg google-chrome
119-
cd ./google-chrome/GoogleChrome.pkg/Payload/Google\ Chrome.app/Contents/MacOS/
120-
export PATH="$PWD:$PATH"
121-
cd -
122-
123-
echo "Running test_xeus_cpp in Firefox"
124-
python $BUILD_PREFIX/bin/emrun.py --browser="firefox" --kill_exit --timeout 60 --browser-args="--headless" test_xeus_cpp.html
125-
echo "Running test_xeus_cpp in Google Chrome"
126-
python python $BUILD_PREFIX/bin/emrun.py --browser="Google Chrome" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" test_xeus_cpp.html
109+
wget "https://download.mozilla.org/?product=firefox-latest&os=osx&lang=en-US" -O Firefox-latest.dmg
110+
hdiutil attach Firefox-latest.dmg
111+
cp -r /Volumes/Firefox/Firefox.app $PWD
112+
hdiutil detach /Volumes/Firefox
113+
cd ./Firefox.app/Contents/MacOS/
114+
export PATH="$PWD:$PATH"
115+
cd -
116+
117+
wget https://dl.google.com/chrome/mac/stable/accept_tos%3Dhttps%253A%252F%252Fwww.google.com%252Fintl%252Fen_ph%252Fchrome%252Fterms%252F%26_and_accept_tos%3Dhttps%253A%252F%252Fpolicies.google.com%252Fterms/googlechrome.pkg
118+
pkgutil --expand-full googlechrome.pkg google-chrome
119+
cd ./google-chrome/GoogleChrome.pkg/Payload/Google\ Chrome.app/Contents/MacOS/
120+
export PATH="$PWD:$PATH"
121+
cd -
122+
123+
echo "Running test_xeus_cpp in Firefox"
124+
python $BUILD_PREFIX/bin/emrun.py --browser="firefox" --kill_exit --timeout 60 --browser-args="--headless" test_xeus_cpp.html
125+
echo "Running test_xeus_cpp in Google Chrome"
126+
python python $BUILD_PREFIX/bin/emrun.py --browser="Google Chrome" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" test_xeus_cpp.html
127127
```
128128

129129
To do this on Ubuntu x86 execute the following
130130

131131
```bash
132-
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
133-
dpkg-deb -x google-chrome-stable_current_amd64.deb $PWD/chrome
134-
cd ./chrome/opt/google/chrome/
135-
export PATH="$PWD:$PATH"
136-
cd -
137-
138-
wget https://ftp.mozilla.org/pub/firefox/releases/138.0.1/linux-x86_64/en-GB/firefox-138.0.1.tar.xz
139-
tar -xJf firefox-138.0.1.tar.xz
140-
cd ./firefox
141-
export PATH="$PWD:$PATH"
142-
cd -
143-
144-
echo "Running test_xeus_cpp in Firefox"
145-
python $BUILD_PREFIX/bin/emrun.py --browser="firefox" --kill_exit --timeout 60 --browser-args="--headless" test_xeus_cpp.html
146-
echo "Running test_xeus_cpp in Google Chrome"
147-
python $BUILD_PREFIX/bin/emrun.py --browser="google-chrome" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" test_xeus_cpp.html
132+
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
133+
dpkg-deb -x google-chrome-stable_current_amd64.deb $PWD/chrome
134+
cd ./chrome/opt/google/chrome/
135+
export PATH="$PWD:$PATH"
136+
cd -
137+
138+
wget https://ftp.mozilla.org/pub/firefox/releases/138.0.1/linux-x86_64/en-GB/firefox-138.0.1.tar.xz
139+
tar -xJf firefox-138.0.1.tar.xz
140+
cd ./firefox
141+
export PATH="$PWD:$PATH"
142+
cd -
143+
144+
echo "Running test_xeus_cpp in Firefox"
145+
python $BUILD_PREFIX/bin/emrun.py --browser="firefox" --kill_exit --timeout 60 --browser-args="--headless" test_xeus_cpp.html
146+
echo "Running test_xeus_cpp in Google Chrome"
147+
python $BUILD_PREFIX/bin/emrun.py --browser="google-chrome" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" test_xeus_cpp.html
148148
```
149149

150150
To build Jupyter Lite with this kernel without creating a website you can execute the following

0 commit comments

Comments
 (0)