diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5ca6e37 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.urchin_stdout diff --git a/cross-shell-tests b/cross-shell-tests new file mode 100755 index 0000000..21902a5 --- /dev/null +++ b/cross-shell-tests @@ -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 diff --git a/readme.md b/readme.md index 2007415..fdde399 100644 --- a/readme.md +++ b/readme.md @@ -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): diff --git a/tests/XSD output should work./XSD output should produce XML. b/tests/XSD output should work./XSD output should produce XML. index effd0c6..7dd4b4e 100755 --- a/tests/XSD output should work./XSD output should produce XML. +++ b/tests/XSD output should work./XSD output should produce XML. @@ -1,3 +1,3 @@ #!/bin/sh -../../../urchin .fixture | grep 'http://www.w3.org/2001/XMLSchema' +../../urchin .fixture | grep 'http://www.w3.org/2001/XMLSchema'