# Functional tests for the add-on scripts in this directory.
# Keep synced: compile.sh, scripts*.test, hledger-*.hs..

# Check that these ones still compile with this version of hledger.
# stdout and exit code are ignored for cleaner failure output.
# XXX But installing deps can also generate stderr, causing these to fail.
# XXX These tests are hard coded to one GHC version.
# See also _scriptsX.Y.test, used by CI workflows with other GHC versions
# to avoid installing and building for multiple GHCs.
# XXX it's actually too hard to make this reliable for CI right now.
# Maybe still useful for running locally with "make functest".
$  stack ghc hledger-balance-as-budget.hs                  >/dev/null 2>&1 || true
$  stack ghc hledger-check-fancyassertions.hs              >/dev/null 2>&1 || true
$  stack ghc hledger-check-tagfiles.hs                     >/dev/null 2>&1 || true
$  stack ghc hledger-combine-balances.hs                   >/dev/null 2>&1 || true
$  stack ghc --package string-qq hledger-print-location.hs >/dev/null 2>&1 || true
$  stack ghc --package string-qq hledger-smooth.hs         >/dev/null 2>&1 || true
$  stack ghc --package string-qq hledger-swap-dates.hs     >/dev/null 2>&1 || true
