-
Notifications
You must be signed in to change notification settings - Fork 17
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
Fix use flavor cmd #162
Fix use flavor cmd #162
Changes from 2 commits
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,17 @@ | ||
#!/bin/bash | ||
. ../scripts/init | ||
|
||
echo "*** test file: $(basename ${BASH_SOURCE[0]})" | ||
|
||
test_use_cmd() { | ||
devenv add foo | ||
devenv use foo | ||
assertNotNull ${DEVENVFLAVOR} | ||
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 think using 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. What should be the value of 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 have refine the test case in 9ca221e 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. It's great. Thanks. |
||
devenv off | ||
devenv del foo | ||
devenv use foo | ||
assertNull "${DEVENVFLAVOR}" | ||
} | ||
|
||
# Load and run shUnit2. | ||
. ./shunit2/shunit2 |
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.
Add a unit test to ensure the behavior of
use
command is expected.