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

Functions missing from test/unit.sh #63

Closed
dtwilliamson opened this issue Jan 10, 2018 · 2 comments
Closed

Functions missing from test/unit.sh #63

dtwilliamson opened this issue Jan 10, 2018 · 2 comments

Comments

@dtwilliamson
Copy link

The functions one and smoke as documented in https://github.com/oilshell/oil/wiki/Contributing and in the comments in test/unit.sh are missing from that script.

@andychu
Copy link
Contributor

andychu commented Jan 11, 2018

Ah sorry I renamed the function, so I just updated the wiki page. As an example, this should work:

$ test/unit.sh unit osh/lex_test.py 

For unit tests, you can also just run

oil$ export PYTHONPATH=.
oil$ osh/lex_test.py
 ... (13 tests pass)

test/spec.sh smoke should work -- let me know if it doesn't. It's in a different file.

test/spec.sh all can be a little flaky because it runs a ton of tests in parallel, which depend on your environment. Fixing that is issue #42.

But test/unit.sh all should work, and running individual spec tests should work. You can get a list by doing ls spec/*.test.sh.

For example, to run spec/func.test.sh, do:

$ test/spec.sh func

The wrapper determines which shells to run it with, and how many allowed failures there are.

Thanks for letting me know. Let me know if you have more questions!

@andychu
Copy link
Contributor

andychu commented Jan 25, 2018

I'm cleaning up issues for the next release, so closing this... feel free to reopen if you need more help.

0.4.alpha1 release is here: http://www.oilshell.org/releases.html

@andychu andychu closed this as completed Jan 25, 2018
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

2 participants