diff options
author | erdgeist <> | 2013-09-29 03:49:51 +0000 |
---|---|---|
committer | erdgeist <> | 2013-09-29 03:49:51 +0000 |
commit | 7b21a0a9d6f2655f820f2d930c2532f9eb7e9dc3 (patch) | |
tree | a754c5d4c61131cffd3cd1470c23b682460b3fda | |
parent | 58f235e232b6396097affb0e4328a29d8c16175f (diff) |
a simple test plugin to see if the config file parser works.
-rw-r--r-- | test/minimunin-configs | 4 | ||||
-rwxr-xr-x | test/minimunin-plugins/test | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/test/minimunin-configs b/test/minimunin-configs new file mode 100644 index 0000000..a3bd279 --- /dev/null +++ b/test/minimunin-configs | |||
@@ -0,0 +1,4 @@ | |||
1 | [test] | ||
2 | env.hallo jenau | ||
3 | command /usr/local/etc/minimunin-plugins/test | ||
4 | user nobody | ||
diff --git a/test/minimunin-plugins/test b/test/minimunin-plugins/test new file mode 100755 index 0000000..dbc13c4 --- /dev/null +++ b/test/minimunin-plugins/test | |||
@@ -0,0 +1,7 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | case $1 in | ||
4 | config) echo empty;; | ||
5 | *) id; env;; | ||
6 | esac | ||
7 | |||