3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-20 04:19:25 +01:00
iwd/autotests/test1AP
Rahul Rahul 67dc10707a autotests: test1AP - added new tests and config files
APShutdownTest - shutdown the AP after network connection. This
                 will be replaced when hwsim supports signal
                 strength modification
InvalidPassphraseTest -  Provide an invalid passphrase.
2016-07-22 14:38:57 -05:00
..
APShutdownTest.py autotests: test1AP - added new tests and config files 2016-07-22 14:38:57 -05:00
connectDisconnectTest.py autotests: notify tests after registerAgent() 2016-07-18 11:19:10 -05:00
hw.conf autotests: hw.conf for test1AP 2016-05-17 18:34:31 -05:00
IntelWIFI_CCMP.conf autotests: test1AP - added new tests and config files 2016-07-22 14:38:57 -05:00
IntelWIFI_TKIP.conf autotests: test1AP - added new tests and config files 2016-07-22 14:38:57 -05:00
invalidPassphrase.conf autotests: test1AP - added new tests and config files 2016-07-22 14:38:57 -05:00
invalidPassphraseTest.py autotests: test1AP - added new tests and config files 2016-07-22 14:38:57 -05:00
README.txt autotests: test1AP - added new tests and config files 2016-07-22 14:38:57 -05:00
scanNetworkTest.py autotests: fixed scanNetwork after objectManager changes 2016-06-01 14:39:38 -05:00

scanNetworkTest: This test checks that we find the right AP, as
                 specified in the hostapd conf file.
                 conf file: IntelWIFI_CCMP.conf, IntelWIFI_TKIP.conf

connectDisconnectTest: Connect and disconnect from a network
                       as specified in the hostapd conf file.
                       conf file: IntelWIFI_CCMP.conf, IntelWIFI_TKIP.conf

invalidPassphraseTest: Try to connect to a network with an
                       invalid passphrase. The connection is
                       unsuccessful.
                       conf file: invalidPassphrase.conf

APShutdownTest: Connect to a network. Shutdown the AP. The
                connection is lost.
                conf file: IntelWIFI_CCMP.conf, IntelWIFI_TKIP.conf
                NOTE: Test will be removed once hwsim supports
                      the ability to modify signal strength.

Pre-requisites:
1. Ensure you have hostapd installed.
2. Verify that the kernel has mac80211_hwsim.

Setup:
1. Create radios using mac80211_hwsim. For most tests, we need 2 radios.
    sudo modprobe mac80211_hwsim radios=2
2. Enable network interfaces:
    sudo ifconfig wlan0 up
    sudo ifconfig wlan1 up

Run tests (e.g. connectDisconnect test):
1. Start hostapd, with a config file as an argument.
    You can use the IntelWIFI.conf file in autotests/test1AP directory.
    sudo ./hostapd <path to autotests dir/test1AP/IntelWIFI.conf>
2. Start iwd.
    sudo iwd
3. Start connectDisconnect test (inside autotests directory).
    cd <iwd>/autotests/test1AP
    ./connectDisconnect.py

Optional changes:
1. You can provide your own config file to hostapd. If so, then you would need to
    change the assert inside the test to the name of the ssid in your test.
    self.assertEqual(connectedNetworkName, "IntelWIFI")