#!/bin/sh

set -eu

mkdir -p "$AUTOPKGTEST_TMP"
cp -r tests "$AUTOPKGTEST_TMP"/tests
# Drop the curl tests (they require network)
rm -f tests/plenary/curl_spec.lua
# mock .git for scandir ls works with opts.hidden for cwd
mkdir .git

nvim --headless -c "PlenaryBustedDirectory tests/plenary/ {sequential = true}" +qa
