add Wi-Fi iwctl to testsuite

This commit is contained in:
Tobias Powalowski 2024-07-11 20:06:53 +02:00
parent 648801730f
commit 15f46f74f8

View file

@ -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"