Permalink
Browse files

- ignore more stuff

- purge old test script
  • Loading branch information...
1 parent 5c1a96a commit 85d6400d6d7882fc563a60d19ffe3e7ec69f734c @jordansissel committed Feb 24, 2012
Showing with 3 additions and 62 deletions.
  1. +3 −0 .gitignore
  2. +0 −62 test/test.sh
View
@@ -11,3 +11,6 @@ fpm.wiki
# RVM
.rvmrc
+
+.yardoc
+coverage
View
@@ -1,62 +0,0 @@
-#!/bin/bash
-
-fpm() {
- ../bin/fpm "$@" > $debugout 2> $debugerr
- status=$?
-
- if [ "$status" -ne 0 ] ; then
- fail
- fi
- return $status
-}
-
-cleanup() {
- rm -f $tmpout $debugout $debugerr
- [ ! -z "$tmpdir" ] && rm -r $tmpdir
-
- # Run clean if defined.
- if type clean 2> /dev/null | grep -q "function" ; then
- clean
- fi
-}
-
-main() {
- test="$1"
- tmpdir=$(mktemp -d tmp/fpm.XXXXXXXXXX)
- debugout=$(mktemp tmp/fpm.XXXXXXXXXX)
- debugerr=$(mktemp tmp/fpm.XXXXXXXXXX)
- output=$(mktemp tmp/fpm.XXXXXXXXXX)
- expected=${1%.test}.out
-
- echo "Loading $test"
- . "./$test"
-
- # Run the test.
- run
-
- # Compare output
- diff -u $output $expected
- diffstatus=$?
-
- if [ $diffstatus -ne 0 ] ; then
- fail
- else
- ok
- fi
-}
-
-fail() {
- echo "Fail: $test"
- sed -e 's/^/stdout: /' $debugout
- sed -e 's/^/stderr: /' $debugerr
- cleanup
- exit 1
-}
-
-ok() {
- echo "OK: $test"
- cleanup
- exit 0
-}
-
-main "$@"

0 comments on commit 85d6400

Please sign in to comment.