Make quicktest interpret test/shellcheck.hs directly

This commit is contained in:
Vidar Holen 2019-01-07 22:25:09 -08:00
parent 97cb753d21
commit 394f4d6505
1 changed files with 2 additions and 9 deletions

View File

@ -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