add Wi-Fi iwctl to testsuite

This commit is contained in:
Tobias Powalowski 2024-07-11 20:02:27 +02:00
parent 5ca5379789
commit 648801730f
2 changed files with 9 additions and 0 deletions

View file

@ -7,6 +7,7 @@ On the road to 2024.07:
- launch bandwhich on VC5 nad bottom on VC6 - launch bandwhich on VC5 nad bottom on VC6
- updated MOTD - updated MOTD
- restart iwd on ESSID rescan - restart iwd on ESSID rescan
- added filesystems and Wi-Fi to testsuite
setup: setup:
- abort on pacman package installation error - abort on pacman package installation error
--- ---

View file

@ -102,6 +102,14 @@ for i in bcachefs btrfs ext4 swap vfat xfs; do
fi fi
done done
_result filesytems-error.log _result filesytems-error.log
_run_test "Wi-Fi iwctl..."
archboot-hwsim.sh test
iwctl station wlan1 scan
sleep 5
iwctl station wlan1 get-networks | rg -q test || echo "Wi-Fi iwctl get-networks error" >> iwd-error.log
iwctl --passphrase=12345678 station wlan1 connect test || echo "Wi-Fi iwctl connect error" >> iwd-error.log
iwctl station wlan1 disconnect || echo "Wi-Fi iwctl disconnect error" >> iwd-error.log
_result iwd-error.log
echo -e "Starting none tracked files in \e[1m10\e[m seconds... \e[1;92mCTRL-C\e[m to stop now." echo -e "Starting none tracked files in \e[1m10\e[m seconds... \e[1;92mCTRL-C\e[m to stop now."
sleep 10 sleep 10
_run_test "none tracked files in /usr/lib... this takes a while" _run_test "none tracked files in /usr/lib... this takes a while"