From 5af5498aa9fb38976128ea2e8cfdd61327b8fa17 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Mon, 5 Aug 2019 11:17:46 -0700 Subject: [PATCH] auto-t: add shell test This is merely an empty test that can act as a sandbox for the new --shell command. It was not named with 'test' so that autotesting will skip it. This test is not very useful for virtual hardware testing (mac80211_hwsim), but very useful for USB/PCI passthrough. When setup correctly, you can now pass through a single device and test against real networks with a minimal kernel. --- autotests/shell/hw.conf | 2 ++ autotests/shell/shell_test.py | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 autotests/shell/hw.conf create mode 100644 autotests/shell/shell_test.py diff --git a/autotests/shell/hw.conf b/autotests/shell/hw.conf new file mode 100644 index 00000000..3ea77459 --- /dev/null +++ b/autotests/shell/hw.conf @@ -0,0 +1,2 @@ +[SETUP] +num_radios=1 diff --git a/autotests/shell/shell_test.py b/autotests/shell/shell_test.py new file mode 100644 index 00000000..300ecf9b --- /dev/null +++ b/autotests/shell/shell_test.py @@ -0,0 +1,20 @@ +import unittest +import sys + +sys.path.append('../util') + +class Test(unittest.TestCase): + + def test_connection_success(self): + pass + + @classmethod + def setUpClass(cls): + pass + + @classmethod + def tearDownClass(cls): + pass + +if __name__ == '__main__': + unittest.main(exit=True)