-
Notifications
You must be signed in to change notification settings - Fork 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
tools: add capability to provide make command via environment #14459
Conversation
Not all operating systems name the GNU Make `make`. FreeBSD e.g. uses a different dialect of Make, that seems to be incompatible with GNU make. (I wasn't able to get `make` run, but `gmake` works). This allows our test scripts to be configured via the environment variable `MAKE` to point to a different make command.
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.
Tested all mentioned tools and all worked as expected (except tests/warn_conflict
but that's a different issue and is addressed by #14474).
For testing, I did the opposite as you did in FreeBSD:
sudo /usr/bin/ln -s /usr/bin/make /usr/bin/gmake
Code changes are good.
ACK!
@@ -41,13 +41,14 @@ | |||
TESTRUNNER_RESET_AFTER_TERM = int(os.environ.get('TESTRUNNER_RESET_AFTER_TERM') | |||
or '0') | |||
|
|||
MAKE = os.environ.get('MAKE', 'make') |
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.
Reported by Travis:
MAKE = os.environ.get('MAKE', 'make') | |
MAKE = os.environ.get('MAKE', 'make') | |
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.
You can squash directly
For those tests that don't use the tooling fixed in the previous commit
77ebb41
to
1cb0e09
Compare
The run failures on Murdock are unrelated. I think there's an issue with one of the nrf52dk workers. Re-triggering Murdock without "run tests" label. |
Then |
Contribution description
This PR enables the user to set the name of the
make
command via theMAKE
environment variable in our test scripts. If it is not provided it defaults to justmake
in all cases.While not strictly necessary for the use with FreeBSD, as one could bend the
gmake
command accordingly there to not use the incompatible BSD MakeRIOT/dist/tools/vagrant/freebsd/Vagrantfile
Lines 24 to 28 in 8204931
I find it friendlier if that would be not needed to run our scripts (I can imagine similar problems might be faced on Mac OS X and Windows).
Testing procedure
Touched tools and tests should be run
dist/tools/ci/print_toolchain_versions.sh
testrunner
(one should be enough, but we can also just runCI: run tests
)dist/tools/compile_and_test_for_board/compile_and_test_for_board.py
for at least one boarddist/tools/compile_test/compile_test.py
for at most one application combination (can be canceled after the first application passes)tests/lwip
onnative
tests/riotboot
tests/warn_conflicts
Issues/PRs references
Discovered while working on #14458, but not required for it.