2 Commits
todo ... mksh

Author SHA1 Message Date
Thomas Levine
ceae1811e2 nagios todo 2016-02-08 15:51:53 +00:00
Thomas Levine
2ac3a52707 fix printf to work in mksh 2016-02-08 15:50:12 +00:00
4 changed files with 10 additions and 8 deletions

6
TODO
View File

@@ -109,3 +109,9 @@ in the case of Urchin.
This is as far as I have gotten with contemplating license changes. For now This is as far as I have gotten with contemplating license changes. For now
we're sticking with the original MIT-style license, but it's easy to change we're sticking with the original MIT-style license, but it's easy to change
licenses later. licenses later.
Nagios plugins
-----------------
It would be cool to run Nagios plugins with Urchin. This is already possible,
actually, but it might be worth giving some special thought to it.
https://nagios-plugins.org/doc/guidelines.html

View File

@@ -2,7 +2,7 @@
# Run urchin in a bunch of different shells, # Run urchin in a bunch of different shells,
# including a shell that isn't quite POSIX-compatible (zsh) # including a shell that isn't quite POSIX-compatible (zsh)
for shell in dash bash ksh zsh; do for shell in dash bash mksh ksh zsh; do
if which $shell > /dev/null 2> /dev/null; then if which $shell > /dev/null 2> /dev/null; then
echo echo
echo Running urchin tests in $shell echo Running urchin tests in $shell

View File

@@ -169,9 +169,3 @@ It does something similar, but the interface may be more intuitive.
## Alternatives to Urchin ## Alternatives to Urchin
Alternatives to Urchin are discussed in Alternatives to Urchin are discussed in
[this blog post](https://blog.scraperwiki.com/2012/12/how-to-test-shell-scripts/). [this blog post](https://blog.scraperwiki.com/2012/12/how-to-test-shell-scripts/).
## Ideas for new features
* Support [Nagios plugins](https://nagios-plugins.org/doc/guidelines.html)
* Stop running if a test fails so one can use Urchin as a
[setup framework](https://github.com/tlevine/urchin/issues/16).

4
urchin
View File

@@ -16,7 +16,9 @@ fullpath() {
indent() { indent() {
level="$1" level="$1"
printf "%$((2 * ${level}))s" if test "$level" -gt 0; then
printf "%$((2 * ${level}))s"
fi
} }
recurse() { recurse() {