Merge branch 'master' of github.com:scraperwiki/urchin

This commit is contained in:
David Jones 2013-07-02 09:25:49 +01:00
commit 153b04b462
4 changed files with 23 additions and 1 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.urchin_stdout

15
cross-shell-tests Executable file
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

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):

View File

@ -1,3 +1,3 @@
#!/bin/sh
../../../urchin .fixture | grep 'http://www.w3.org/2001/XMLSchema'
../../urchin .fixture | grep 'http://www.w3.org/2001/XMLSchema'