Skip to content

Commit

Permalink
basic test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Reitz committed Mar 23, 2012
1 parent 3e1d657 commit b16261c
Show file tree
Hide file tree
Showing 4 changed files with 1,284 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
tests:
./bin/test

docs:
mkdir -p site
shocco -t 'Python Buildpack Compiler' ./bin/compile > site/index.html
Expand Down
29 changes: 29 additions & 0 deletions bin/test
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env bash

#
# Create a Heroku app with the following buildpack:
# https://github.com/ddollar/buildpack-tet
#
# Push this Python buildpack to that Heroku app to
# run the tests.
#


## utils ########################################

pushd $(dirname 0) >/dev/null
BASE=$(pwd)
popd >/dev/null

source ${BASE}/vendor/test-utils

detect() {
capture ${BASE}/bin/detect ${BASE}/test/$1
}

compile() {
capture ${BASE}/bin/compile ${BASE}/test/$1
}

source ${BASE}/vendor/shunit2

Loading

0 comments on commit b16261c

Please sign in to comment.