[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master a4ee62f 07/18: Suppress certain shellcheck wa
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master a4ee62f 07/18: Suppress certain shellcheck warnings |
Date: |
Wed, 29 May 2019 18:49:08 -0400 (EDT) |
branch: master
commit a4ee62fa34f1d6d0fdba8be61a31d059b40187c3
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Suppress certain shellcheck warnings
Suppressed some particular shellcheck warnings in zsh scripts. The
plan is to force them to be tested as though they were posix scripts.
---
gwc/invert.sh | 3 +++
nychthemeral_test.sh | 3 +++
2 files changed, 6 insertions(+)
diff --git a/gwc/invert.sh b/gwc/invert.sh
index b3b81d2..31ae406 100755
--- a/gwc/invert.sh
+++ b/gwc/invert.sh
@@ -1,4 +1,5 @@
#!/bin/zsh
+# shellcheck disable=SC1036,SC2039
# Obfuscate-deobfuscate MST<->XST files. Cf. 'mst_to_xst.sh'.
@@ -38,5 +39,7 @@ Y=$(printf '\%03o' {0..255})
MST=(*.mst(N))
XST=(*.xst(N))
+# shellcheck disable=SC2128
for z in $MST; do tr "$X" "$Y" <"$z" >"${z%%.mst}.xst"; done
+# shellcheck disable=SC2128
for z in $XST; do tr "$X" "$Y" <"$z" >"${z%%.xst}.mst"; done
diff --git a/nychthemeral_test.sh b/nychthemeral_test.sh
index 2d94dcb..d2046c8 100755
--- a/nychthemeral_test.sh
+++ b/nychthemeral_test.sh
@@ -163,6 +163,7 @@ else
fi
printf '\n# unit tests\n\n'
+# shellcheck disable=SC2039
make "$coefficiency" --output-sync=recurse unit_tests 2>&1 \
| tee >(grep '\*\*\*') >(grep \?\?\?\?) >(grep '!!!!' --count | xargs printf
'%d tests succeeded\n') >"$log_dir"/unit_tests
@@ -175,6 +176,7 @@ make "$coefficiency" --output-sync=recurse cgi_tests
cli_tests build_type=safest
| tee "$log_dir"/cgi_cli_safestdlib | sed -e "$build_clutter" -e
"$cli_cgi_clutter"
printf '\n# unit tests in libstdc++ debug mode\n\n'
+# shellcheck disable=SC2039
make "$coefficiency" --output-sync=recurse unit_tests build_type=safestdlib
2>&1 \
| tee >(grep '\*\*\*') >(grep \?\?\?\?) >(grep '!!!!' --count | xargs printf
'%d tests succeeded\n') >"$log_dir"/unit_tests_safestdlib
@@ -234,6 +236,7 @@ cmp eraseme.xst eraseme.touchstone
# Clean up stray output. (The zsh '(N)' glob qualifier turns on
# null_glob for a single expansion.)
+# shellcheck disable=SC2039
for z in "$throwaway_dir"/*(N); do rm "$z"; done
# The automated GUI test simulates keyboard and mouse actions, so
- [lmi-commits] [lmi] master updated (e503910 -> b30b5db), Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master 0d8f53e 02/18: Resolve shellcheck "SC1117" warning, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master 1d9b9a6 04/18: Deduplicate, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master 0e9da3a 01/18: Use Ubuntu 18.04 only for WSL, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master 66fe46b 03/18: Resolve more shellcheck "SC1117" warnings, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master a4ee62f 07/18: Suppress certain shellcheck warnings,
Greg Chicares <=
- [lmi-commits] [lmi] master b25a732 06/18: Resolve all shellcheck "SC2038" warnings, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master d52c37f 09/18: Resolve a shellcheck "SC2034" warning, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master ee293d1 10/18: Update certain URLs, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master 19c0946 13/18: Copy compiler runtime files in one makefile target only, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master 3873eb0 15/18: Fix defect committed 20190521T2101: tested 'md5sums' in wrong directory, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master c40f2f8 14/18: Routinely run shellcheck, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master aebe56b 17/18: Don't copy compiler runtime files to build directory, Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master 9b9978f 16/18: Avoid 'ls --classify', Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master f4cb231 08/18: Remove space after '#!', Greg Chicares, 2019/05/29
- [lmi-commits] [lmi] master aa29114 12/18: Improve command to copy compiler runtime files, Greg Chicares, 2019/05/29