diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:01:36 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:01:36 +0000 |
commit | 62e4c68907d8d33709c2c1f92a161dff00b3d5f2 (patch) | |
tree | adbbaf3acf88ea08f6eeec4b75ee98ad3b07fbdc /test/test_format_installer.sh | |
parent | Initial commit. (diff) | |
download | lnav-28bf0ff1a7ad38ac9ddb1f5864ba0161b0617471.tar.xz lnav-28bf0ff1a7ad38ac9ddb1f5864ba0161b0617471.zip |
Adding upstream version 0.11.2.upstream/0.11.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/test_format_installer.sh')
-rw-r--r-- | test/test_format_installer.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/test/test_format_installer.sh b/test/test_format_installer.sh new file mode 100644 index 0000000..2b94d3d --- /dev/null +++ b/test/test_format_installer.sh @@ -0,0 +1,34 @@ +#! /bin/bash + +CONFIG_DIR="${top_builddir}/installer-test-home" + +mkdir -p "${CONFIG_DIR}" +rm -rf "${CONFIG_DIR}/.lnav/formats" + +HOME=${CONFIG_DIR} +unset XDG_CONFIG_HOME +export HOME + +${lnav_test} -i ${srcdir}/formats/jsontest/format.json + +if ! test -f ${CONFIG_DIR}/.lnav/formats/installed/test_log.json; then + echo "Format not installed correctly?" + exit 1 +fi + +if test x"${TEST_GIT_INSTALL}" = x""; then + # Hitting the git repos frequently is slow/noisy + exit 0 +fi + +${lnav_test} -i extra + +if ! test -f ${CONFIG_DIR}/.lnav/remote-config/remote-config.json; then + echo "Remote config not downloaded?" + exit 1 +fi + +if ! test -d ${CONFIG_DIR}/.lnav/formats/https___github_com_PaulWay_lnav_formats_git; then + echo "Third-party repo not downloaded?" + exit 1 +fi |