From c39e9b796bd6bd31df5ec1752f17f0d358d73b72 Mon Sep 17 00:00:00 2001 From: Russ Tokuyama Date: Sun, 17 Nov 2024 00:04:39 -1000 Subject: [PATCH] Restore scripts/setup-test-deps and scripts/test --- scripts/setup-test-deps | 29 +++++++++++++++++++++++++++++ scripts/test | 6 ++++++ 2 files changed, 35 insertions(+) create mode 100755 scripts/setup-test-deps create mode 100755 scripts/test diff --git a/scripts/setup-test-deps b/scripts/setup-test-deps new file mode 100755 index 00000000..37bc882a --- /dev/null +++ b/scripts/setup-test-deps @@ -0,0 +1,29 @@ +#!/usr/bin/env bash + +PACK_DIR=./.test-config/nvim/pack/conjure-tests/start + +mkdir -p "$PACK_DIR" + +if [ -d "$PACK_DIR/plenary.nvim" ]; then + echo "plenary.nvim already exists" +else + git clone https://github.com/nvim-lua/plenary.nvim.git "$PACK_DIR/plenary.nvim" +fi + +if [ -d "$PACK_DIR/fennel.vim" ]; then + echo "fennel.vim already exists" +else + git clone https://github.com/bakpakin/fennel.vim.git "$PACK_DIR/fennel.vim" +fi + +if [ -d "$PACK_DIR/aniseed" ]; then + echo "aniseed already exists" +else + git clone https://github.com/Olical/aniseed.git "$PACK_DIR/aniseed" +fi + +if [ -d "$PACK_DIR/conjure" ]; then + echo "conjure (symlink) already exists" +else + ln -s "${GITHUB_WORKSPACE:-$(pwd)}" "$PACK_DIR/conjure" +fi diff --git a/scripts/test b/scripts/test new file mode 100755 index 00000000..61c8e11f --- /dev/null +++ b/scripts/test @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +XDG_CONFIG_HOME=$(pwd)/.test-config +export XDG_CONFIG_HOME + +nvim --headless -c 'PlenaryBustedDirectory lua/conjure-spec'