[PATCH v3 23/26] tests: add remote dir and run-tests.py
Jouni Malinen
j at w1.fi
Sat Feb 20 07:37:49 PST 2016
On Wed, Feb 17, 2016 at 01:14:26PM +0100, Janusz Dziedzic wrote:
> Adde remote dir and move development to this
> directory.
>
> ./run-test.py print help with available DUTs and TESTs
> ./run-test.py <DUT> all - will run all tests
> ./run-test.py <DUT> tests_list - will run only specyfic test cases
What is the purpose of adding a separate directory for these instead of
using tests/hwsim? I've always assumed that it would be possible to
eventually share many of the test cases in tests/hwsim/test_*.py for
both local hwsim and remote cases.
> diff --git a/tests/remote/run-tests.py b/tests/remote/run-tests.py
> @@ -0,0 +1,160 @@
> +#!/usr/bin/python
> +#
> +# This software may be distributed under the terms of the BSD license.
> +# See README for more details.
Please add a copyright statement in addition to the license terms into
new files.
> +devices = [{"hostname": "192.168.254.58", "ifname" : "wlan0", "port": "9877", "name" : "t2-ath9k", "flags" : "AP_HT40 STA_HT40"},
> + {"hostname": "192.168.254.58", "ifname" : "wlan1", "port": "9877", "name" : "t2-ath10k", "flags" : "AP_VHT80"},
> + {"hostname": "192.168.254.58", "ifname" : "wlan3", "port": "9877", "name" : "t2-intel7260", "flags" : "STA_VHT80"}]
> +
> +duts = [{"hostname": "192.168.254.50", "ifname" : "wlan0", "port": "9877", "name" : "t1-ath9k-dut"},
> + {"hostname": "192.168.254.50", "ifname" : "wlan1", "port": "9877", "name" : "t1-ath10k-dut"},
> + {"hostname": "192.168.254.58", "ifname" : "wlan1", "port": "8878", "name" : "t2-ath10k-dut"}]
This type of configuration should be read from a configuration file so
that there is no need to modify files that are checked into git to match
the local network setup.
--
Jouni Malinen PGP id EFC895FA
More information about the Hostap
mailing list