ci: cram: update pwhm cram test with hosatpd warm apply requirements
The purpose of the update is to ensure that the hostapd configuration can be updated without a restart. References: FEAT-125, PPM-3345 Signed-off-by: Houssem Dafdouf <houssem.dafdouf_ext@softathome.com>
This commit is contained in:
parent
c1438ba944
commit
4761a100f2
@ -81,6 +81,11 @@ Test activation of access point 1:
|
||||
Down
|
||||
Up
|
||||
|
||||
Save hostap pid:
|
||||
|
||||
$ hostap_pid=$(R pgrep -f 'hostapd')
|
||||
$ R logger -t cram "hostap PID : $hostap_pid"
|
||||
|
||||
Test activation of access point 2:
|
||||
|
||||
$ R logger -t cram "Test AccessPoint 2 activation "$(get_ssid_ref 2)""
|
||||
@ -269,11 +274,11 @@ Check that hostapd is operating as expected:
|
||||
|
||||
$ R logger -t cram "Check that hostapd is operating"
|
||||
|
||||
$ R "ps axw" | sed -nE 's/.*(hostapd.*)/\1/p' | head -1 | tr -s ' ' '\n' | LC_ALL=C sort
|
||||
$ R "ps axw" | sed -nE 's/.*(hostapd .*)/\1/p' | head -1 | tr -s ' ' '\n' | LC_ALL=C sort
|
||||
-ddt
|
||||
/tmp/wlan0_hapd.conf
|
||||
/tmp/wlan1_hapd.conf
|
||||
-g
|
||||
/tmp/wlan2_hapd.conf
|
||||
/var/run/hostapd/global\.0x.* (re)
|
||||
hostapd
|
||||
|
||||
$ R "ubus list | grep hostapd. | sort"
|
||||
@ -504,6 +509,11 @@ Test deactivation of access point 2:
|
||||
Down
|
||||
Up
|
||||
|
||||
Before deactivating last AP (ie stopping hostpad), check if hostap pid has changed or not:
|
||||
|
||||
$ if [ "$(R pgrep -f 'hostapd')" = "$hostap_pid" ]; then echo "true"; else echo "hostap restarted during the test !"; fi
|
||||
true
|
||||
|
||||
Test deactivation of access point 1:
|
||||
|
||||
$ R logger -t cram "Test AccessPoint 1 deactivation "$(get_ssid_ref 1)""
|
||||
|
||||
@ -115,6 +115,11 @@ Test activation of access point 1:
|
||||
Down
|
||||
Up
|
||||
|
||||
Save hostap pid:
|
||||
|
||||
$ hostap_pid=$(R pgrep -f 'hostapd')
|
||||
$ R logger -t cram "hostap PID : $hostap_pid"
|
||||
|
||||
Test activation of access point 2:
|
||||
|
||||
$ R logger -t cram "Enable AP 2 "$(get_ssid_ref 2)""
|
||||
@ -303,11 +308,11 @@ Check that hostapd is operating as expected:
|
||||
|
||||
$ R logger -t cram "Check that hostapd is operating"
|
||||
|
||||
$ R "ps axw" | sed -nE 's/.*(hostapd.*)/\1/p' | head -1 | tr -s ' ' '\n' | LC_ALL=C sort
|
||||
$ R "ps axw" | sed -nE 's/.*(hostapd .*)/\1/p' | head -1 | tr -s ' ' '\n' | LC_ALL=C sort
|
||||
-ddt
|
||||
/tmp/wlan0_hapd.conf
|
||||
/tmp/wlan1_hapd.conf
|
||||
-g
|
||||
/tmp/wlan2_hapd.conf
|
||||
/var/run/hostapd/global\.0x.* (re)
|
||||
hostapd
|
||||
|
||||
$ R "ubus list | grep hostapd. | sort"
|
||||
@ -529,6 +534,11 @@ Test deactivation of access point 2:
|
||||
Down
|
||||
Up
|
||||
|
||||
Before deactivating last AP (ie stopping hostpad), check if hostap pid has changed or not:
|
||||
|
||||
$ if [ "$(R pgrep -f 'hostapd')" = "$hostap_pid" ]; then echo "true"; else echo "hostap restarted during the test !"; fi
|
||||
true
|
||||
|
||||
Test deactivation of access point 1:
|
||||
|
||||
$ R logger -t cram "Disable AP 1 "$(get_ssid_ref 1)""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user