Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Support `make test`

and added a test for my work on the shims.
  • Loading branch information...
commit e5a93d06b90b89bcf415a35f227b9940fd3b13b7 1 parent 142bde1
@ingydotnet ingydotnet authored
Showing with 22 additions and 0 deletions.
  1. +7 −0 Makefile
  2. +15 −0 test/shim.t
View
7 Makefile
@@ -1,3 +1,10 @@
copy-from-rbenv:
bash ./author/copy-from-rbenv.sh
+test: ext/test-simple-bash _force
+ prove -v test/
+
+ext/test-simple-bash:
+ git clone git@github.com:ingydotnet/test-simple-bash $@
+
+_force:
View
15 test/shim.t
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+set -e
+
+# Emulate skip_all:
+if [[ ! "$(which perl)" =~ ^$PWD/shims/perl$ ]]; then
+ echo "1..0 # SKIP plenv is not installed"
+ exit 0
+fi
+
+PATH=ext/test-simple-bash/lib:$PATH
+source test-simple.bash tests 1 # plan == 1
+
+ok [ "$(perl -E 'say $ENV{PLENV_DIR}' test/shim.t)" == "$PWD" ] \
+ 'Shim knows about -E'
Please sign in to comment.
Something went wrong with that request. Please try again.