-
Notifications
You must be signed in to change notification settings - Fork 12
Test improvements #73
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
28837d2
test: nit: fix whitespace error
charliemirabile 7f930bf
test: nit: fix spelling error
charliemirabile 1f42c69
test: suppress output from command -v in requires
charliemirabile 939235f
test: move linting checks to before functional checks
charliemirabile bda2c3e
test: cleanup test-style.sh
charliemirabile c384a6c
tests: test style: switch from bash to sh
charliemirabile ee59e76
test: introduce script-lint.sh
charliemirabile 1319042
orbit: warpdrive: quote container variable reference
charliemirabile 8adee86
test: script lint: add warpdrive.sh
charliemirabile ed0170d
extenginx: create dev keys: remove pipefail
charliemirabile 49d6102
test: script lint: add create dev keys
charliemirabile 11f976a
test: move requirement for podman to warpdrive
charliemirabile 1b1cb2b
test: remove dependency on chcon
charliemirabile dd0d1cf
test: move dependency on flake8 to test-style.sh
charliemirabile 5a4296c
test: remove todo about login page
charliemirabile 3ebaf56
test: introduce helper to ensure proper cleanup
charliemirabile 7381765
test: just delete contents of test directory
charliemirabile 3b97750
test: remove sudo on rm command
charliemirabile 13ce428
test: consolidate shared curl opts
charliemirabile 012c04f
test: avoid insecure option for curl
charliemirabile File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,11 @@ | ||
| #!/bin/bash | ||
| #!/bin/sh | ||
|
|
||
| scan() { echo "[SCAN] ${1}" ; flake8 "${1}" || exit 1 ; } | ||
| require() { command -v "$1" > /dev/null || { echo "error: $1 command required yet absent" ; exit 1 ; } ; } | ||
| require flake8 | ||
|
|
||
| scan radius.py | ||
| scan config.py | ||
| scan db.py | ||
| scan hyperspace.py | ||
| set -ex | ||
|
|
||
| flake8 radius.py | ||
| flake8 config.py | ||
| flake8 db.py | ||
| flake8 hyperspace.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #!/bin/sh | ||
|
|
||
| require() { command -v "$1" > /dev/null || { echo "error: $1 command required yet absent" ; exit 1 ; } ; } | ||
| require shellcheck | ||
|
|
||
| set -ex | ||
|
|
||
| shellcheck script-lint.sh | ||
| shellcheck test.sh | ||
| shellcheck extenginx/create_dev_keys.sh | ||
| shellcheck orbit/test-style.sh | ||
| shellcheck orbit/warpdrive.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.