Enable shellcheck and fix some issues
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest14 patches 1 replyIn review
- v214 patches 0 repliesSuperseded
- v114 patches 3 repliesSuperseded
Changes in v3 from the cover letter
- Replace read with readarray
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | tests: Address issues raised by shellcheck SC2086 & enable shellcheckMakefile.am tests/ tests/ +6 more | +68 | 0 replies | |
| 2/14 | tests: Address issues raised by shellcheck SC2181tests/ tests/ tests/ +3 more | +25 | 0 replies | |
| 3/14 | tests: Address issues raised by shellcheck SC2046tests/ tests/ tests/ +3 more | +10 | 0 replies | |
| 4/14 | tests: Address issues raised by shellcheck SC2320tests/ tests/ tests/ | +7 | 0 replies | |
| 5/14 | tests: Address issues raised by shellcheck SC2317tests/ tests/ | +3 | 0 replies | |
| 6/14 | tests: Address issues raised by shellcheck SC2034tests/ tests/ tests/ | +4 | 0 replies | |
| 7/14 | tests: Address issues raised by shellcheck SC2164tests/ tests/ tests/ +1 more | +4 | 0 replies | |
| 8/14 | tests: Address issues raised by shellcheck SC2166tests/ tests/ | +2 | 0 replies | |
| 9/14 | tests: Address issues raised by shellcheck SC2294tests/ tests/ | +4 | 0 replies | |
| 10/14 | tests: Address issues raised by shellcheck SC2206tests/ tests/ | +2 | 0 replies | |
| 11/14 | tests: Address issues raised by shellcheck SC2196tests/ tests/ | +2 | 0 replies | |
| 12/14 | tests: Address issues raised by shellcheck SC2043tests/ tests/ | +3 | 0 replies | |
| 13/14 | tests: Address issues raised by shellcheck SC2295tests/ tests/ | +2 | 0 replies | |
| 14/14 | tests: Address issues raised by shellcheck SC2003tests/ tests/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [ima-evm-utils PATCH v3 00/14] Enable shellcheck and fix some issues
Enable shellcheck for the bash scripts in the tests directory. Fix issues on the way that are found when particular checks are enabled. In the end all shellcheck v0.9 checks are enabled and shellcheck passes without any issues.
Shellcheck can be run using the following command:
make shellcheck
Apart from style issues two real issues are detected by SC2003 and SC2295.
Regards,
Stefan
v3:
- Replace read with readarray
v2:
- Rebased on latest next-testing branch
- 1/14: Use ${var:+${var}} pattern for variables that hold multiple arguments like "--foo bar" which would become one argument if passed with "${var}"; fixed a build issue
- 4/14: remove $new_policy file in success and failure cases
Stefan Berger (14):
tests: Address issues raised by shellcheck SC2086 & enable shellcheck
tests: Address issues raised by shellcheck SC2181
tests: Address issues raised by shellcheck SC2046
tests: Address issues raised by shellcheck SC2320
tests: Address issues raised by shellcheck SC2317
tests: Address issues raised by shellcheck SC2034
tests: Address issues raised by shellcheck SC2164
tests: Address issues raised by shellcheck SC2166
tests: Address issues raised by shellcheck SC2294
tests: Address issues raised by shellcheck SC2206
tests: Address issues raised by shellcheck SC2196
tests: Address issues raised by shellcheck SC2043
tests: Address issues raised by shellcheck SC2295
tests: Address issues raised by shellcheck SC2003
Makefile.am | 5 ++- tests/Makefile.am | 11 ++++++- tests/boot_aggregate.test | 29 +++++++---------- tests/fsverity.test | 22 +++++++------ tests/functions.sh | 36 ++++++++++---------- tests/gen-keys.sh | 8 +++-- tests/ima_hash.test | 4 +-- tests/install-fsverity.sh | 4 +-- tests/install-mount-idmapped.sh | 2 +- tests/install-openssl3.sh | 14 ++++---- tests/install-swtpm.sh | 9 ++--- tests/install-tss.sh | 2 +- tests/mmap_check.test | 10 +++--- tests/portable_signatures.test | 11 +++---- tests/sign_verify.test | 15 ++++----- tests/softhsm_setup | 58 ++++++++++++++------------------- 16 files changed, 119 insertions(+), 121 deletions(-)
Signature · 1 line
2.43.0