-
Notifications
You must be signed in to change notification settings - Fork 36
Fix build instructions #408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mcbarton
wants to merge
1
commit into
compiler-research:main
Choose a base branch
from
mcbarton:Fix-build-instructions
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+22
−23
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,19 +34,17 @@ executing (replace `$CONDA_PREFIX` with a custom installation prefix if need be) | |
| cd build | ||
| cmake .. -D CMAKE_PREFIX_PATH=$CONDA_PREFIX -D CMAKE_INSTALL_PREFIX=$CONDA_PREFIX -D CMAKE_INSTALL_LIBDIR=lib | ||
| make check-xeus-cpp | ||
| make install | ||
|
|
||
| and | ||
|
|
||
| .. code-block:: bash | ||
|
|
||
| cd ../../test | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change is needed because we no longer cd into the test folder insider the build folder to run the C++ tests. We stay inside the build folder and run check-xeus-cpp. That means the source test folder is now only one folder up instead of 2. |
||
| cd ../test | ||
| pytest -sv test_xcpp_kernel.py | ||
|
|
||
| to perform the python tests. After you have checked that the kernel passes all the tests, you can install it by executing | ||
|
|
||
| .. code-block:: bash | ||
|
|
||
| make install | ||
| to perform the python tests. | ||
|
|
||
|
|
||
| Installation within a mamba environment (wasm build instructions) | ||
| ======================== | ||
|
|
@@ -93,10 +91,11 @@ You are now in a position to build the xeus-cpp kernel. You build and test it in | |
| emmake make check-xeus-cpp | ||
| emmake make install | ||
|
|
||
| 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 for Chrome and Firefox on MacOS execute the following | ||
| 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 for Chrome and Firefox on MacOS execute the following from the build folder | ||
|
|
||
| .. code-block:: bash | ||
|
|
||
| cd test | ||
| 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 | ||
|
|
@@ -126,10 +125,11 @@ python package. This only needs to be enable once, and then you can execute the | |
| python $BUILD_PREFIX/bin/emrun.py --no_browser --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" test_xeus_cpp.html & | ||
| python ../../scripts/browser_tests_safari.py test_xeus_cpp.html | ||
|
|
||
| To do this on Ubuntu x86 execute the following | ||
| To run the browser tests on Ubuntu x86 execute the following from the build folder | ||
|
|
||
| .. code-block:: bash | ||
|
|
||
| cd test | ||
| 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/ | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not moving
make installhere because I think that is where it should be. Without it the kernel tests all error for me, since it assumes the kernels have been installed.