
# Error on unset variables
set -u

LP_ROOT="${PWD%/tests}"

function setUp {
  cd "$LP_ROOT"
}

function test_theme_preview {
  # This does not really test the tool, just verify that it does not error.
  . ./tools/theme-preview.sh default
}

function test_external_tool_tester {
  . ./tools/external-tool-tester.sh >/dev/null
}

if [ -n "${ZSH_VERSION-}" ]; then
  SHUNIT_PARENT="$0"
  setopt shwordsplit
fi

. ./shunit2


# Error on unset variables
set -u

LP_ROOT="${PWD%/tests}"

function setUp {
  cd "$LP_ROOT"
}

function test_theme_preview {
  # This does not really test the tool, just verify that it does not error.
  . ./tools/theme-preview.sh default
  . ./tools/theme-preview.sh powerline ./themes/powerline/powerline.theme
  . ./tools/theme-preview.sh powerline_full ./themes/powerline/powerline.theme
  . ./tools/theme-preview.sh alternate_vcs ./themes/alternate_vcs/alternate_vcs.theme
}

function test_external_tool_tester {
  . ./tools/external-tool-tester.sh >/dev/null
}

if [ -n "${ZSH_VERSION-}" ]; then
  SHUNIT_PARENT="$0"
  setopt shwordsplit
fi

. ./shunit2

Add included themes to theme preview tests
Add included themes to theme preview tests

While (again) running the theme preview script does not really test that
it is working, nor does it do like the old test script did and actually
validate that output of the themes are what we expect, it will now catch
runtime errors, which could be incredibly helpful.
