diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2005-09-12 10:31:29 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2005-09-12 10:31:29 (GMT) |
commit | e85edd9e55d79b7e475f009df64accb65f317905 (patch) | |
tree | 1adf431a06733721b459d673fc1214295f53774a /config_test/run_tests | |
parent | 3c554b72de0df28175e7ed8a0bcf3b7e509335d9 (diff) | |
download | monitoring-plugins-e85edd9e55d79b7e475f009df64accb65f317905.tar.gz |
ECHILD error at waitpid on Red Hat systems (Peter Pramberger and
Sascha Runschke - 1250191)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1213 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'config_test/run_tests')
-rwxr-xr-x | config_test/run_tests | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/config_test/run_tests b/config_test/run_tests new file mode 100755 index 0000000..e41db23 --- /dev/null +++ b/config_test/run_tests | |||
@@ -0,0 +1,16 @@ | |||
1 | #!/bin/ksh | ||
2 | |||
3 | i=0 | ||
4 | success=0 | ||
5 | fail=0 | ||
6 | while [[ $i -lt $1 ]] ; do | ||
7 | ./child_test | ||
8 | if [[ $? -eq 0 ]] ; then | ||
9 | success=$(($success+1)) | ||
10 | else | ||
11 | fail=$((fail+1)) | ||
12 | fi | ||
13 | i=$(($i+1)) | ||
14 | done | ||
15 | print "Success=$success Fail=$fail" | ||
16 | [[ $fail -gt 0 ]] && exit 1 | ||