From d91893a12a3d6d40a50e609486f5694c7ad0ee8a Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Date: Tue, 5 Jun 2012 20:28:26 +0530 Subject: [PATCH] Initial stuff. The tests fail, obviously. --- .gitignore | 5 +++++ Makefile | 7 +++++++ requirements.txt | 2 ++ tests/.zshenv | 10 ++++++++++ tests/main.t | 3 +++ 5 files changed, 27 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 requirements.txt create mode 100644 tests/.zshenv create mode 100644 tests/main.t 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 -- 2.0.0