summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2019-07-03 03:11:27 +0700
committerDaniil Baturin <daniil@baturin.org>2019-07-03 03:11:27 +0700
commit24e40c6b70d9b4f7ebf1e02bace5794009b0c1b6 (patch)
tree3695d8795849574e75e16e3efd80367b33c6ce75 /bin
downloadvyos-1x-24e40c6b70d9b4f7ebf1e02bace5794009b0c1b6.tar.gz
vyos-1x-24e40c6b70d9b4f7ebf1e02bace5794009b0c1b6.zip
Initial commit.
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)