mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
add Wi-Fi iwctl to testsuite
This commit is contained in:
parent
648801730f
commit
15f46f74f8
1 changed files with 6 additions and 5 deletions
|
@ -97,19 +97,20 @@ for i in bcachefs btrfs ext4 swap vfat xfs; do
|
|||
mkswap /test.img &>"${_NO_LOG}" || echo "Creation error: ${i}" >> filesystems-error.log
|
||||
else
|
||||
mkfs.${i} /test.img &>"${_NO_LOG}" || echo "Creation error: ${i}" >> filesystems-error.log
|
||||
sleep 1
|
||||
mount -o loop /test.img /mnt || echo "Mount error: ${i}" >> filesystems-error.log
|
||||
umount /mnt
|
||||
fi
|
||||
done
|
||||
_result filesytems-error.log
|
||||
_run_test "Wi-Fi iwctl..."
|
||||
archboot-hwsim.sh test
|
||||
archboot-hwsim.sh test &>"${_NO_LOG}"
|
||||
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
|
||||
iwctl station wlan1 get-networks | rg -q test || echo "Wi-Fi iwctl get-networks error" >> iwctl-error.log
|
||||
iwctl --passphrase=12345678 station wlan1 connect test || echo "Wi-Fi iwctl connect error" >> iwctl-error.log
|
||||
iwctl station wlan1 disconnect || echo "Wi-Fi iwctl disconnect error" >> iwctl-error.log
|
||||
_result iwctl-error.log
|
||||
echo -e "Starting none tracked files in \e[1m10\e[m seconds... \e[1;92mCTRL-C\e[m to stop now."
|
||||
sleep 10
|
||||
_run_test "none tracked files in /usr/lib... this takes a while"
|
||||
|
|
Loading…
Reference in a new issue