Skip to content
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

Inject test executable parent directory into PATH for tests #4

Open
dylanmckay opened this issue Oct 12, 2018 · 0 comments
Open

Inject test executable parent directory into PATH for tests #4

dylanmckay opened this issue Oct 12, 2018 · 0 comments

Comments

@dylanmckay
Copy link
Owner

The tests do stuff like

@cxx foo.c -o - | avr-sim

This assumes that avr-sim in in the PATH. Currently I have to cargo install avr-test-suite globally so the tests run.

avr-sim is also a part of this repository and thus it has executables generated to the same folder. If we inject the directory of the avr-lit executable when running tests into the PATH, RUN commands in tests will be able to execute avr-sim without it being globally installed.

Modify the avr-lit executable so that it injects PATH=$(dirname ARGV[0]);$PATH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant