* [PATCH 1/3] test-runner: make default iwd_config_dir=/tmp
@ 2020-03-24 20:24 James Prestwood
2020-03-24 20:24 ` [PATCH 2/3] auto-t: fix testAddressRandomization James Prestwood
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: James Prestwood @ 2020-03-24 20:24 UTC (permalink / raw)
To: iwd
[-- Attachment #1: Type: text/plain, Size: 1194 bytes --]
The configuration value of iwd_config_dir was defaulting to /etc/iwd
which, in the context of test-runner, is probably not the best idea.
The system may have a main.conf file in /etc/iwd which could cause
tests to fail or behave unexpectedly.
In addition all tests which use iwd_config_dir set it to /tmp anyways.
Because of this, the new default value will be /tmp and no tests will
even need to bother setting this.
The configuration value itself is not being removed because it may be
useful to set arbitrary paths (e.g. /etc/iwd) for example when using
the shell functionality.
---
tools/test-runner.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/test-runner.c b/tools/test-runner.c
index 1be3f640..1adb8377 100644
--- a/tools/test-runner.c
+++ b/tools/test-runner.c
@@ -2205,7 +2205,7 @@ static void create_network_and_run_tests(void *data, void *user_data)
HW_CONFIG_GROUP_SETUP,
HW_CONFIG_SETUP_IWD_CONF_DIR);
if (!iwd_config_dir)
- iwd_config_dir = DAEMON_CONFIGDIR;
+ iwd_config_dir = "/tmp";
iwd_pid = start_iwd(iwd_config_dir, wiphy_list,
iwd_ext_options, iwd_phys, test_name);
--
2.21.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/3] auto-t: fix testAddressRandomization
2020-03-24 20:24 [PATCH 1/3] test-runner: make default iwd_config_dir=/tmp James Prestwood
@ 2020-03-24 20:24 ` James Prestwood
2020-03-24 20:24 ` [PATCH 3/3] auto-t: remove iwd_config_dir from autotests James Prestwood
2020-03-24 21:32 ` [PATCH 1/3] test-runner: make default iwd_config_dir=/tmp Denis Kenzior
2 siblings, 0 replies; 4+ messages in thread
From: James Prestwood @ 2020-03-24 20:24 UTC (permalink / raw)
To: iwd
[-- Attachment #1: Type: text/plain, Size: 1119 bytes --]
This test was dependent on having a local main.conf in /etc/iwd
---
autotests/testAddressRandomization/connection_test.py | 2 +-
autotests/testAddressRandomization/hw.conf | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/autotests/testAddressRandomization/connection_test.py b/autotests/testAddressRandomization/connection_test.py
index fab8fea9..74c9601d 100644
--- a/autotests/testAddressRandomization/connection_test.py
+++ b/autotests/testAddressRandomization/connection_test.py
@@ -38,7 +38,7 @@ class Test(unittest.TestCase):
return device.address
def test_connection_success(self):
- wd = IWD(True)
+ wd = IWD()
devices = wd.list_devices(1)
device = devices[0]
diff --git a/autotests/testAddressRandomization/hw.conf b/autotests/testAddressRandomization/hw.conf
index fa46c8b8..35af520e 100644
--- a/autotests/testAddressRandomization/hw.conf
+++ b/autotests/testAddressRandomization/hw.conf
@@ -1,6 +1,5 @@
[SETUP]
num_radios=2
-start_iwd=0
tmpfs_extra_stuff=main.conf
[HOSTAPD]
--
2.21.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 3/3] auto-t: remove iwd_config_dir from autotests
2020-03-24 20:24 [PATCH 1/3] test-runner: make default iwd_config_dir=/tmp James Prestwood
2020-03-24 20:24 ` [PATCH 2/3] auto-t: fix testAddressRandomization James Prestwood
@ 2020-03-24 20:24 ` James Prestwood
2020-03-24 21:32 ` [PATCH 1/3] test-runner: make default iwd_config_dir=/tmp Denis Kenzior
2 siblings, 0 replies; 4+ messages in thread
From: James Prestwood @ 2020-03-24 20:24 UTC (permalink / raw)
To: iwd
[-- Attachment #1: Type: text/plain, Size: 4922 bytes --]
This is no longer needed unless setting a different
directory than /tmp
---
autotests/testAP/hw.conf | 1 -
autotests/testEAP-TLS-Frag/hw.conf | 1 -
autotests/testEAP-TTLS-Frag/hw.conf | 1 -
autotests/testEAP-WPS-Frag/hw.conf | 1 -
autotests/testFT-8021x-roam/hw.conf | 2 --
autotests/testFT-FILS-SHA256/hw.conf | 1 -
autotests/testFT-FILS-SHA384/hw.conf | 1 -
autotests/testFT-PSK-over-DS/hw.conf | 1 -
autotests/testFT-PSK-roam/hw.conf | 1 -
autotests/testFT-SAE-roam/hw.conf | 1 -
autotests/testHT-VHT/hw.conf | 1 -
| 1 -
12 files changed, 13 deletions(-)
diff --git a/autotests/testAP/hw.conf b/autotests/testAP/hw.conf
index dc9b7bff..96a2bbb1 100644
--- a/autotests/testAP/hw.conf
+++ b/autotests/testAP/hw.conf
@@ -1,7 +1,6 @@
[SETUP]
num_radios=3
max_test_exec_interval_sec=40
-iwd_config_dir=/tmp
tmpfs_extra_stuff=main.conf
[HOSTAPD]
diff --git a/autotests/testEAP-TLS-Frag/hw.conf b/autotests/testEAP-TLS-Frag/hw.conf
index e210f674..80b08975 100644
--- a/autotests/testEAP-TLS-Frag/hw.conf
+++ b/autotests/testEAP-TLS-Frag/hw.conf
@@ -1,7 +1,6 @@
[SETUP]
num_radios=2
tmpfs_extra_stuff=../misc/certs:main.conf
-iwd_config_dir=/tmp
[HOSTAPD]
rad0=ssidEAP-TLS.conf
diff --git a/autotests/testEAP-TTLS-Frag/hw.conf b/autotests/testEAP-TTLS-Frag/hw.conf
index f0e55bd6..279842c2 100644
--- a/autotests/testEAP-TTLS-Frag/hw.conf
+++ b/autotests/testEAP-TTLS-Frag/hw.conf
@@ -1,7 +1,6 @@
[SETUP]
num_radios=2
tmpfs_extra_stuff=../misc/certs:main.conf
-iwd_config_dir=/tmp
[HOSTAPD]
rad0=ssidEAP-TTLS.conf
diff --git a/autotests/testEAP-WPS-Frag/hw.conf b/autotests/testEAP-WPS-Frag/hw.conf
index ebeade92..eeac3bab 100644
--- a/autotests/testEAP-WPS-Frag/hw.conf
+++ b/autotests/testEAP-WPS-Frag/hw.conf
@@ -1,7 +1,6 @@
[SETUP]
num_radios=2
tmpfs_extra_stuff=main.conf
-iwd_config_dir=/tmp
[HOSTAPD]
rad0=ssid-wps-small-mtu.conf
diff --git a/autotests/testFT-8021x-roam/hw.conf b/autotests/testFT-8021x-roam/hw.conf
index d3c039ae..4906bbf3 100644
--- a/autotests/testFT-8021x-roam/hw.conf
+++ b/autotests/testFT-8021x-roam/hw.conf
@@ -2,8 +2,6 @@
num_radios=3
max_test_exec_interval_sec=45
tmpfs_extra_stuff=../misc/certs:main.conf
-iwd_config_dir=/tmp
-tmpfs_extra_stuff=../misc/certs
needs_hwsim=1
[HOSTAPD]
diff --git a/autotests/testFT-FILS-SHA256/hw.conf b/autotests/testFT-FILS-SHA256/hw.conf
index b5c6757c..c3330d04 100644
--- a/autotests/testFT-FILS-SHA256/hw.conf
+++ b/autotests/testFT-FILS-SHA256/hw.conf
@@ -2,7 +2,6 @@
num_radios=3
max_test_exec_interval_sec=45
tmpfs_extra_stuff=../misc/certs:main.conf:pwd.eap_user
-iwd_config_dir=/tmp
[HOSTAPD]
rad0=ft-eap-ccmp-1.conf
diff --git a/autotests/testFT-FILS-SHA384/hw.conf b/autotests/testFT-FILS-SHA384/hw.conf
index b5c6757c..c3330d04 100644
--- a/autotests/testFT-FILS-SHA384/hw.conf
+++ b/autotests/testFT-FILS-SHA384/hw.conf
@@ -2,7 +2,6 @@
num_radios=3
max_test_exec_interval_sec=45
tmpfs_extra_stuff=../misc/certs:main.conf:pwd.eap_user
-iwd_config_dir=/tmp
[HOSTAPD]
rad0=ft-eap-ccmp-1.conf
diff --git a/autotests/testFT-PSK-over-DS/hw.conf b/autotests/testFT-PSK-over-DS/hw.conf
index e020b54f..d2d50863 100644
--- a/autotests/testFT-PSK-over-DS/hw.conf
+++ b/autotests/testFT-PSK-over-DS/hw.conf
@@ -1,7 +1,6 @@
[SETUP]
num_radios=3
max_test_exec_interval_sec=45
-iwd_config_dir=/tmp
tmpfs_extra_stuff=main.conf
needs_hwsim=1
diff --git a/autotests/testFT-PSK-roam/hw.conf b/autotests/testFT-PSK-roam/hw.conf
index e020b54f..d2d50863 100644
--- a/autotests/testFT-PSK-roam/hw.conf
+++ b/autotests/testFT-PSK-roam/hw.conf
@@ -1,7 +1,6 @@
[SETUP]
num_radios=3
max_test_exec_interval_sec=45
-iwd_config_dir=/tmp
tmpfs_extra_stuff=main.conf
needs_hwsim=1
diff --git a/autotests/testFT-SAE-roam/hw.conf b/autotests/testFT-SAE-roam/hw.conf
index a0ff7b16..1f0f1c12 100644
--- a/autotests/testFT-SAE-roam/hw.conf
+++ b/autotests/testFT-SAE-roam/hw.conf
@@ -1,7 +1,6 @@
[SETUP]
num_radios=4
max_test_exec_interval_sec=120
-iwd_config_dir=/tmp
tmpfs_extra_stuff=main.conf
needs_hwsim=1
diff --git a/autotests/testHT-VHT/hw.conf b/autotests/testHT-VHT/hw.conf
index 98e1b2ea..6d557ad1 100644
--- a/autotests/testHT-VHT/hw.conf
+++ b/autotests/testHT-VHT/hw.conf
@@ -2,7 +2,6 @@
num_radios=4
max_test_exec_interval_sec=45
reg_domain=US
-iwd_config_dir=/tmp
tmpfs_extra_stuff=main.conf
[HOSTAPD]
--git a/autotests/testRSSIAgent/hw.conf b/autotests/testRSSIAgent/hw.conf
index 094e9378..9b9d75be 100644
--- a/autotests/testRSSIAgent/hw.conf
+++ b/autotests/testRSSIAgent/hw.conf
@@ -1,7 +1,6 @@
[SETUP]
num_radios=2
max_test_exec_interval_sec=60
-iwd_config_dir=/tmp
tmpfs_extra_stuff=main.conf
needs_hwsim=1
--
2.21.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/3] test-runner: make default iwd_config_dir=/tmp
2020-03-24 20:24 [PATCH 1/3] test-runner: make default iwd_config_dir=/tmp James Prestwood
2020-03-24 20:24 ` [PATCH 2/3] auto-t: fix testAddressRandomization James Prestwood
2020-03-24 20:24 ` [PATCH 3/3] auto-t: remove iwd_config_dir from autotests James Prestwood
@ 2020-03-24 21:32 ` Denis Kenzior
2 siblings, 0 replies; 4+ messages in thread
From: Denis Kenzior @ 2020-03-24 21:32 UTC (permalink / raw)
To: iwd
[-- Attachment #1: Type: text/plain, Size: 811 bytes --]
Hi James,
On 3/24/20 3:24 PM, James Prestwood wrote:
> The configuration value of iwd_config_dir was defaulting to /etc/iwd
> which, in the context of test-runner, is probably not the best idea.
> The system may have a main.conf file in /etc/iwd which could cause
> tests to fail or behave unexpectedly.
>
> In addition all tests which use iwd_config_dir set it to /tmp anyways.
> Because of this, the new default value will be /tmp and no tests will
> even need to bother setting this.
>
> The configuration value itself is not being removed because it may be
> useful to set arbitrary paths (e.g. /etc/iwd) for example when using
> the shell functionality.
> ---
> tools/test-runner.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
all applied, thanks.
Regards,
-Denis
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-03-24 21:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-24 20:24 [PATCH 1/3] test-runner: make default iwd_config_dir=/tmp James Prestwood
2020-03-24 20:24 ` [PATCH 2/3] auto-t: fix testAddressRandomization James Prestwood
2020-03-24 20:24 ` [PATCH 3/3] auto-t: remove iwd_config_dir from autotests James Prestwood
2020-03-24 21:32 ` [PATCH 1/3] test-runner: make default iwd_config_dir=/tmp Denis Kenzior
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.