Cross shell test runner #2

Merged
tlevine merged 4 commits from cross-shell-test-runner into master 2013-07-01 11:17:52 -04:00
4 changed files with 23 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
.urchin_stdout
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
# Run urchin in a bunch of different shells,
# including a shell that isn't quite POSIX-compatible (zsh)
for shell in dash bash ksh zsh; do
if which $shell > /dev/null 2> /dev/null; then
echo
echo Running urchin tests in $shell
$shell urchin tests | tail -n 2
else
echo
echo Skipping $shell because it is not in the PATH
fi
done
echo
+6
View File
@@ -19,6 +19,12 @@ Run the tests
cd urchin/tests
../urchin .
The above command will run the tests in your login shell; to test cross-shell
compatibility, run this.
cd urchin
./cross-shell-tests
## Globally
Download Urchin like so (as root) (or use npm, below):
@@ -1,3 +1,3 @@
#!/bin/sh
../../../urchin .fixture | grep 'http://www.w3.org/2001/XMLSchema'
../../urchin .fixture | grep 'http://www.w3.org/2001/XMLSchema'