urchin/cross-shell-tests

16 lines
381 B
Plaintext
Raw Normal View History

2013-06-27 18:33:16 +00:00
#!/bin/sh
# Run urchin in a bunch of different shells,
# including a shell that isn't quite POSIX-compatible (zsh)
2013-06-27 18:45:45 +00:00
for shell in dash bash ksh zsh; do
2013-06-27 18:33:16 +00:00
if which $shell > /dev/null 2> /dev/null; then
echo
echo Running urchin tests in $shell
2016-01-25 14:00:47 +00:00
$shell urchin -s $shell tests | tail -n 3
2013-06-27 18:33:16 +00:00
else
echo
echo Skipping $shell because it is not in the PATH
fi
done
2013-06-27 18:44:19 +00:00
echo