Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
QA: moved suite.sh and relatives in 'scripts' directory
Browse files Browse the repository at this point in the history
  • Loading branch information
amerlyq authored and albfan committed Dec 17, 2015
1 parent 8002c7f commit 55d79f4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ cache:
script:
- ag --version
- vim --version
- (cd t && ./suite.sh --verbose --clean)
- (cd scripts && ./suite.sh --verbose --clean)

notifications:
email:
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions t/suite.sh → scripts/suite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
cd $(dirname $(readlink -m ${0}))

[[ -n "$TMPDIR" ]] || TMPDIR="$(dirname $(mktemp --dry-run --tmpdir))"
T_DIR="$PWD"
PJROOT="${PWD%/*}"
# [[ "$EDITOR" =~ vim ]] || EDITOR=vim
EDITOR=vim

Expand Down Expand Up @@ -37,8 +37,8 @@ get_deps() {
}

urun() { local file="$1" name="$2" cmd
cp -r "$T_DIR/fixture" . && bash "$T_DIR/${name}.sh" >/dev/null 2>&1
cmd="$EDITOR -i NONE -u NONE -U NONE -nNesS '$T_DIR/helper.vim'"
cp -r "$PJROOT/t/fixture" . && bash "$PJROOT/t/${name}.sh" >/dev/null 2>&1
cmd="$EDITOR -i NONE -u NONE -U NONE -nNesS '$PJROOT/scripts/helper.vim'"
cmd+=" -c 'Vader!' -c 'echo\"\"\|qall!' -- '${file}'"
if ! ((VERBOSE)); then cmd+=' 2>/dev/null'; else
cmd+=" 2> >(echo;sed -n '/^Starting Vader/,\$p')"; fi
Expand Down Expand Up @@ -71,7 +71,7 @@ utest() {

testsuite() { local NUM=0
for rgx in "${@:-.*}"; do
for fl in "$T_DIR/tests"/*.vader; do
for fl in "$PJROOT/t/tests"/*.vader; do
if [[ "${fl##*/}" =~ $rgx ]]
then utest "$fl"; fi
done
Expand Down

0 comments on commit 55d79f4

Please sign in to comment.