-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Add --without-snapshot configure flag to ARM devices by default #766
Changes from 4 commits
1f13f15
67f2ee8
3214caa
8346644
3b67b3b
c1ef31d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/sh | ||
|
||
die () { echo $@ ; exit 1; } | ||
|
||
. ../../../nvm.sh | ||
|
||
NVM_TEST_VERSION=v0.10.7 | ||
|
||
# Remove the stuff we're clobbering. | ||
[ -e ../../../$NVM_TEST_VERSION ] && rm -R ../../../$NVM_TEST_VERSION | ||
|
||
# Fake ARM arch | ||
nvm_get_arch() { | ||
echo "armv7l" | ||
} | ||
|
||
# Install from source | ||
nvm install -s $NVM_TEST_VERSION || die "'nvm install -s $NVM_TEST_VERSION' failed" | ||
|
||
# Check Install | ||
[ -d ../../../$NVM_TEST_VERSION ] | ||
nvm run $NVM_TEST_VERSION --version | grep $NVM_TEST_VERSION || "'nvm run $NVM_TEST_VERSION --version | grep $NVM_TEST_VERSION' failed" | ||
|
||
# Check V8 snapshot isn't compiled | ||
nvm run $NVM_TEST_VERSION -p process.config | grep "v8_use_snapshot: false" || "'nvm run $NVM_TEST_VERSION -p process.config | grep \"v8_use_snapshot: false\"' failed" | ||
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. I note that when I run this command on my own system, it says 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. Interesting. I'll update it to check the falsy value in node rather than trying to scrape it out with grep. |
||
|
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.
After the install, the version should be auto-used, so you should be able to simply check
nvm current
andnode --version
, and below, directly usenode
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.
Ah ok,I just copied most of it from it from the install from source test. Do you want me to update it or leave it for consistency?
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.
Either way. Consistency isn't as important in tests. I was just thinking it might make the test easier to debug ¯_(ツ)_/¯