Merge branch 'master' of github.com:scraperwiki/urchin
This commit is contained in:
commit
153b04b462
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.urchin_stdout
|
15
cross-shell-tests
Executable file
15
cross-shell-tests
Executable 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
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user