summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/vyos-smoketest19
1 files changed, 19 insertions, 0 deletions
diff --git a/bin/vyos-smoketest b/bin/vyos-smoketest
new file mode 100755
index 000000000..b8cc36879
--- /dev/null
+++ b/bin/vyos-smoketest
@@ -0,0 +1,19 @@
+#!/usr/bin/env python3
+
+import os
+import sys
+
+test_dir = '/usr/libexec/vyos/tests/smoke'
+
+tests = ['test_load_modules.py']
+
+success = True
+
+for t in tests:
+ try:
+ os.system(os.path.join(test_dir, t))
+ except Exception as e:
+ success = False
+
+if not success:
+ sys.exit(1)