Permalink
Browse files

tests

  • Loading branch information...
1 parent 57e40dd commit da6be9cb3fe6c44004ecb8f65e5211ebcc03bde6 @tlevine committed Oct 10, 2012
View
@@ -0,0 +1,4 @@
+#!/bin/bash -x
+set -e
+rm -f ~/.git-achievements.log
+export tmp=$(mktemp -d)
View
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+# Make sure it's in /tmp, then remove it
+echo $tmp | grep '/tmp/tmp.' && rm -Rf $tmp
View
14 test/Architect 100644 → 100755
@@ -1,2 +1,14 @@
-#!/bin/sh
+#!/bin/bash -x
+alias git='git achievements'
+set -e
+./.rmlog
+tmp=$(mktemp -d)
+
+cd $tmp
+git init
+cd -
+
+rm -R $tmp
+
+./.achieved Architect
View
6 test/Archivist 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Author 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Banker 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Baptised 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Beach Lion 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Blacksmith 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Butcher 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Caretaker 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Carpenter 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Cathedral Architect 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Cathedral Worker 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Cherry Picker 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Chimney Sweeper 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Cleaning lady 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Collector 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Delivery Boy 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Dentist 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Fisherman 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Garage Inventor 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Gardner 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Gipsy 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Goldsmith 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Historian 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Homeowner 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Hunter 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Inventor ($1) 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Investigator 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
12 test/Let there be light 100644 → 100755
@@ -1,2 +1,12 @@
-#!/bin/sh
+#!/bin/bash -i
+. .setup
+cd $tmp
+git init
+echo needle > haystack
+git add haystack
+git commit haystack -m 'testing Let there be light'
+cd -
+
+. .teardown
+./.achieved 'Let there be light'
View
6 test/Librarian 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Locksmith 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Merchant 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Messenger 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Miller 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/News Reader 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Pedantic 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Pilgrim 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Plumber 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Postman 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Presenter 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Product Manager 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Seamstress 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Socialite 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Stamp Collector 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Stone Mason 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Thug 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
View
6 test/Traveler 100644 → 100755
@@ -1,2 +1,6 @@
-#!/bin/sh
+#!/bin/bash -i
+set -e
+./.rmlog
+git status --help | cat
+./.achieved
Oops, something went wrong.

0 comments on commit da6be9c

Please sign in to comment.