Module: check_mk
Branch: master
Commit: 4be38e8aa8736026df53e001a550d0125d5b3e39
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4be38e8aa87360…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Jun 30 14:03:57 2017 +0200
Cleaned up packaging of some commands
Change-Id: Ia8a8148692b2dc433d60e60eba14c720d77f7081
---
bin/cmk | 1 +
bin/mkp | 2 ++
tests/omd/test_basic_commands.py | 17 +++++++++++++++++
3 files changed, 20 insertions(+)
diff --git a/bin/cmk b/bin/cmk
new file mode 120000
index 0000000..74a4466
--- /dev/null
+++ b/bin/cmk
@@ -0,0 +1 @@
+check_mk
\ No newline at end of file
diff --git a/bin/mkp b/bin/mkp
new file mode 100755
index 0000000..6a0cd85
--- /dev/null
+++ b/bin/mkp
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec check_mk -P "$@"
diff --git a/tests/omd/test_basic_commands.py b/tests/omd/test_basic_commands.py
new file mode 100644
index 0000000..04bdb94
--- /dev/null
+++ b/tests/omd/test_basic_commands.py
@@ -0,0 +1,17 @@
+#!/usr/bin/env python
+# encoding: utf-8
+
+import os
+import stat
+
+def test_basic_commands(site):
+ commands = [
+ "bin/mkp",
+ "bin/check_mk",
+ "bin/cmk",
+ "bin/omd",
+ ]
+
+ for rel_path in commands:
+ path = os.path.join(site.root, rel_path)
+ assert os.path.exists(path)