From 15f46f74f87ac2cbcd9c53f1d81767bf260f2ed1 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Thu, 11 Jul 2024 20:06:53 +0200 Subject: [PATCH] add Wi-Fi iwctl to testsuite --- usr/bin/archboot-testsuite.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/usr/bin/archboot-testsuite.sh b/usr/bin/archboot-testsuite.sh index 0121305cc..d2c5c804f 100755 --- a/usr/bin/archboot-testsuite.sh +++ b/usr/bin/archboot-testsuite.sh @@ -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"