diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d248db8f..3180de97 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -104,45 +104,45 @@ node test_xeus_cpp.js 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 ```bash - wget "https://download.mozilla.org/?product=firefox-latest&os=osx&lang=en-US" -O Firefox-latest.dmg - hdiutil attach Firefox-latest.dmg - cp -r /Volumes/Firefox/Firefox.app $PWD - hdiutil detach /Volumes/Firefox - cd ./Firefox.app/Contents/MacOS/ - export PATH="$PWD:$PATH" - cd – - - 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 - pkgutil --expand-full googlechrome.pkg google-chrome - cd ./google-chrome/GoogleChrome.pkg/Payload/Google\ Chrome.app/Contents/MacOS/ - export PATH="$PWD:$PATH" - cd – - - echo "Running test_xeus_cpp in Firefox" - python $BUILD_PREFIX/bin/emrun.py --browser="firefox" --kill_exit --browser-args="--headless" test_xeus_cpp.html - echo "Running test_xeus_cpp in Google Chrome" - python $BUILD_PREFIX/bin/emrun.py --browser="Google Chrome" --kill_exit --browser-args="--headless --no-sandbox" test_xeus_cpp.html +wget "https://download.mozilla.org/?product=firefox-latest&os=osx&lang=en-US" -O Firefox-latest.dmg +hdiutil attach Firefox-latest.dmg +cp -r /Volumes/Firefox/Firefox.app $PWD +hdiutil detach /Volumes/Firefox +cd ./Firefox.app/Contents/MacOS/ +export PATH="$PWD:$PATH" +cd – + +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 +pkgutil --expand-full googlechrome.pkg google-chrome +cd ./google-chrome/GoogleChrome.pkg/Payload/Google\ Chrome.app/Contents/MacOS/ +export PATH="$PWD:$PATH" +cd – + +echo "Running test_xeus_cpp in Firefox" +python $BUILD_PREFIX/bin/emrun.py --browser="firefox" --kill_exit --browser-args="--headless" test_xeus_cpp.html +echo "Running test_xeus_cpp in Google Chrome" +python $BUILD_PREFIX/bin/emrun.py --browser="Google Chrome" --kill_exit --browser-args="--headless --no-sandbox" test_xeus_cpp.html ``` To do this on Ubuntu x86 execute the following ```bash - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb - dpkg-deb -x google-chrome-stable_current_amd64.deb $PWD/chrome - cd ./chrome/opt/google/chrome/ - export PATH="$PWD:$PATH" - cd - - - wget https://ftp.mozilla.org/pub/firefox/releases/138.0.1/linux-x86_64/en-GB/firefox-138.0.1.tar.xz - tar -xJf firefox-138.0.1.tar.xz - cd ./firefox - export PATH="$PWD:$PATH" - cd - - - echo "Running test_xeus_cpp in Firefox" - python $BUILD_PREFIX/bin/emrun.py --browser="firefox" --kill_exit --timeout 60 --browser-args="--headless" test_xeus_cpp.html - echo "Running test_xeus_cpp in Google Chrome" - python $BUILD_PREFIX/bin/emrun.py --browser="google-chrome" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" test_xeus_cpp.html +wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb +dpkg-deb -x google-chrome-stable_current_amd64.deb $PWD/chrome +cd ./chrome/opt/google/chrome/ +export PATH="$PWD:$PATH" +cd - + +wget https://ftp.mozilla.org/pub/firefox/releases/138.0.1/linux-x86_64/en-GB/firefox-138.0.1.tar.xz +tar -xJf firefox-138.0.1.tar.xz +cd ./firefox +export PATH="$PWD:$PATH" +cd - + +echo "Running test_xeus_cpp in Firefox" +python $BUILD_PREFIX/bin/emrun.py --browser="firefox" --kill_exit --timeout 60 --browser-args="--headless" test_xeus_cpp.html +echo "Running test_xeus_cpp in Google Chrome" +python $BUILD_PREFIX/bin/emrun.py --browser="google-chrome" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" test_xeus_cpp.html ``` To build Jupyter Lite with this kernel without creating a website you can execute the following diff --git a/README.md b/README.md index 9c1bbd2b..d2ec051c 100644 --- a/README.md +++ b/README.md @@ -106,45 +106,45 @@ node test_xeus_cpp.js 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 ```bash - wget "https://download.mozilla.org/?product=firefox-latest&os=osx&lang=en-US" -O Firefox-latest.dmg - hdiutil attach Firefox-latest.dmg - cp -r /Volumes/Firefox/Firefox.app $PWD - hdiutil detach /Volumes/Firefox - cd ./Firefox.app/Contents/MacOS/ - export PATH="$PWD:$PATH" - cd - - - 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 - pkgutil --expand-full googlechrome.pkg google-chrome - cd ./google-chrome/GoogleChrome.pkg/Payload/Google\ Chrome.app/Contents/MacOS/ - export PATH="$PWD:$PATH" - cd - - - echo "Running test_xeus_cpp in Firefox" - python $BUILD_PREFIX/bin/emrun.py --browser="firefox" --kill_exit --timeout 60 --browser-args="--headless" test_xeus_cpp.html - echo "Running test_xeus_cpp in Google Chrome" - python python $BUILD_PREFIX/bin/emrun.py --browser="Google Chrome" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" test_xeus_cpp.html +wget "https://download.mozilla.org/?product=firefox-latest&os=osx&lang=en-US" -O Firefox-latest.dmg +hdiutil attach Firefox-latest.dmg +cp -r /Volumes/Firefox/Firefox.app $PWD +hdiutil detach /Volumes/Firefox +cd ./Firefox.app/Contents/MacOS/ +export PATH="$PWD:$PATH" +cd - + +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 +pkgutil --expand-full googlechrome.pkg google-chrome +cd ./google-chrome/GoogleChrome.pkg/Payload/Google\ Chrome.app/Contents/MacOS/ +export PATH="$PWD:$PATH" +cd - + +echo "Running test_xeus_cpp in Firefox" +python $BUILD_PREFIX/bin/emrun.py --browser="firefox" --kill_exit --timeout 60 --browser-args="--headless" test_xeus_cpp.html +echo "Running test_xeus_cpp in Google Chrome" +python python $BUILD_PREFIX/bin/emrun.py --browser="Google Chrome" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" test_xeus_cpp.html ``` To do this on Ubuntu x86 execute the following ```bash - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb - dpkg-deb -x google-chrome-stable_current_amd64.deb $PWD/chrome - cd ./chrome/opt/google/chrome/ - export PATH="$PWD:$PATH" - cd - - - wget https://ftp.mozilla.org/pub/firefox/releases/138.0.1/linux-x86_64/en-GB/firefox-138.0.1.tar.xz - tar -xJf firefox-138.0.1.tar.xz - cd ./firefox - export PATH="$PWD:$PATH" - cd - - - echo "Running test_xeus_cpp in Firefox" - python $BUILD_PREFIX/bin/emrun.py --browser="firefox" --kill_exit --timeout 60 --browser-args="--headless" test_xeus_cpp.html - echo "Running test_xeus_cpp in Google Chrome" - python $BUILD_PREFIX/bin/emrun.py --browser="google-chrome" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" test_xeus_cpp.html +wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb +dpkg-deb -x google-chrome-stable_current_amd64.deb $PWD/chrome +cd ./chrome/opt/google/chrome/ +export PATH="$PWD:$PATH" +cd - + +wget https://ftp.mozilla.org/pub/firefox/releases/138.0.1/linux-x86_64/en-GB/firefox-138.0.1.tar.xz +tar -xJf firefox-138.0.1.tar.xz +cd ./firefox +export PATH="$PWD:$PATH" +cd - + +echo "Running test_xeus_cpp in Firefox" +python $BUILD_PREFIX/bin/emrun.py --browser="firefox" --kill_exit --timeout 60 --browser-args="--headless" test_xeus_cpp.html +echo "Running test_xeus_cpp in Google Chrome" +python $BUILD_PREFIX/bin/emrun.py --browser="google-chrome" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" test_xeus_cpp.html ``` To build Jupyter Lite with this kernel without creating a website you can execute the following