mirror of
https://github.com/tstack/lnav
synced 2024-11-15 18:13:10 +00:00
bedae8c8c2
Fixes #244
34 lines
755 B
Bash
34 lines
755 B
Bash
#! /bin/bash
|
|
|
|
CONFIG_DIR="${top_builddir}/installer-test-home"
|
|
|
|
mkdir -p "${CONFIG_DIR}"
|
|
rm -rf "${CONFIG_DIR}/.lnav/formats"
|
|
|
|
HOME=${CONFIG_DIR}
|
|
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
|