diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e07a4d3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +# Running tests creates this completion dump file. +tests/.zcompdump + +# Test failure reports +tests/*.t.err diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fe384ca --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +.PHONY: tests itests + +tests: + ZDOTDIR="${PWD}/tests" cram --shell=zsh tests + +itests: + cram -i --shell=zsh tests diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..5211806 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +# Published version of cram v0.5 does not have the --shell option. +https://bitbucket.org/brodie/cram/get/8f15beaf3a8d.tar.bz2 diff --git a/tests/.zshenv b/tests/.zshenv new file mode 100644 index 0000000..68118e9 --- /dev/null +++ b/tests/.zshenv @@ -0,0 +1,10 @@ +# zshrc file written for antigen's tests. Might not be a good one for daily use. + +# See cram's documentation for some of the variables used below. + +export ANTIGEN_REPO_CACHE="$TMP/dot-antigen/cache" +export ANTIGEN_BUNDLE_DIR="$TMP/dot-antigen/bundle" + +rm "$TESTDIR/.zcompdump" + +source "$TESTDIR/../antigen.zsh" diff --git a/tests/main.t b/tests/main.t new file mode 100644 index 0000000..2dbf2d6 --- /dev/null +++ b/tests/main.t @@ -0,0 +1,3 @@ +Load antigen + + $ bundle-cleanup