Make quicktest interpret test/shellcheck.hs directly
This commit is contained in:
parent
97cb753d21
commit
394f4d6505
11
quicktest
11
quicktest
|
@ -4,15 +4,8 @@
|
||||||
# 'cabal test' remains the source of truth.
|
# 'cabal test' remains the source of truth.
|
||||||
|
|
||||||
(
|
(
|
||||||
var=$(echo 'liftM and $ sequence [
|
var=$(echo 'main' | ghci test/shellcheck.hs 2>&1 | tee /dev/stderr)
|
||||||
ShellCheck.Analytics.runTests
|
if [[ $var == *ExitSuccess* ]]
|
||||||
,ShellCheck.Parser.runTests
|
|
||||||
,ShellCheck.Checker.runTests
|
|
||||||
,ShellCheck.Checks.Commands.runTests
|
|
||||||
,ShellCheck.Checks.ShellSupport.runTests
|
|
||||||
,ShellCheck.AnalyzerLib.runTests
|
|
||||||
]' | tr -d '\n' | cabal repl ShellCheck 2>&1 | tee /dev/stderr)
|
|
||||||
if [[ $var == *$'\nTrue'* ]]
|
|
||||||
then
|
then
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue