summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2023-03-24tests: add fake apk info supportNatanael Copa
fake apk info --depends gnome
2023-03-24setup-disk: find msdos and fat efi partitionsNatanael Copa
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10555
2023-01-30setup-interfaces: find essids when SSID List capability presentKevin Daudt
When a essid has the 'SSID List' extended capibility, the `find_essids` function will not return that ssid. That's because the `$1 ~ /SSID/` awk pattern will match that line. The ssid variable then is set to an empty value because there is no `:` (field separate) in that line, so `$2` is empty. The terminator of the statemachine then skips this essid, because it checks if the `ssid` variable is not empty. We can fix this by making sure the field ends with `SSID`, which is not the case with the `SSID List` line. Partial output of `iw dev wlan0 scan`: ``` Extended capabilities: * Extended Channel Switching * TFS * WNM-Sleep Mode * TIM Broadcast * BSS Transition * SSID List * Operating Mode Notification * 6 * Max Number Of MSDUs In A-MSDU is unlimited ``` Reported-by: invoked Fixes: #10546
2023-01-30setup-disk: Add support for booting zfs (in grub)Magnus Sandin
2023-01-26setup-disk: accept any bootfs with BOOTLOADER=noneNatanael Copa
Dont be picky if we don't install any bootloader. This is useful for rootfs on virtiofs for example. fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10499
2023-01-26tests: fix fake apkNatanael Copa
option --quiet has no optarg so we should not shift.
2023-01-26setup-disk: support BOOTLOADER=noneNatanael Copa
Allow disable bootloader install fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10526
2023-01-26setup-disk: NO_DISK_UUID for fstabWilliam Wilhelm
2023-01-25tests: add tests for setup-disk's uuid_or_deviceNatanael Copa
also add a convenience function to create fake binaries.
2023-01-25tests: setup-alpine: test answerfile from httpsNatanael Copa
ref https://gitlab.alpinelinux.org/alpine/alpine-conf/-/merge_requests/136
2023-01-25setup-interfaces: add tests for autoNatanael Copa
2023-01-24tests: version detection for edgeNatanael Copa
ref: https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10548 ref: https://gitlab.alpinelinux.org/alpine/alpine-conf/-/merge_requests/137
2023-01-24tests: add test for interactive setup-apkreposNatanael Copa
2023-01-24setup-*: use fake apk instead of $MOCK apkNatanael Copa
2023-01-24tests: fix setup-alpine openrc testNatanael Copa
We may call openrc with `-n`
2023-01-24setup-disk: fix detection of EFI directoryNatanael Copa
Try autodetect the EFI directory instead of hardcoding it to /boot/efi. This is needed when /boot is the EFI directory and no encryption is used.
2023-01-24setup-disk: add test for install_mounted_rootNatanael Copa
2023-01-24tests: move fake audit to fake apkNatanael Copa
So we can re-use it
2023-01-24tests: add fake apk auditNatanael Copa
useful for `lbu package`
2022-11-22setup-alpine: leave interfaces file unmodified with 'none'Natanael Copa
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10542
2022-11-21setup-interfaces: use 'none' to leave network unmodifiedNatanael Copa
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10542
2022-11-21setup-apkrepos: handle network errorsNatanael Copa
2022-11-21setup-apkrepos: add test for fastest mirror (-f)Natanael Copa
2022-11-21setup-apkrepos: make fastest/first/random options exclusiveNatanael Copa
Makes no sense to combine them
2022-11-21setup-apkrepos: add test for -1Natanael Copa
2022-11-21setup-apkrepos: fix mirror countingNatanael Copa
when piping the mirror list to `more` the mirror_count is set in a subshell and will end up unset. fixes error when selecting random mirror: /sbin/setup-apkrepos: line 31: arithmetic syntax error fixes commit 860b7271232a (APK Repo Setup)
2022-11-18setup-lbu: fix UUID= prefix in /etc/fstabNatanael Copa
2022-11-18setup-lbu: improve test coverageNatanael Copa
verify that LABEL= is added to fstab
2022-11-18tests: add fake findfs and blkid for testing setup-lbuNatanael Copa
2022-11-18setup-alpine: include /root instead of only authorized_keysNatanael Copa
This works around issue where /root might get world rx permissions. fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10532
2022-11-17update-kernel: add mkinitfs.conf to testsNatanael Copa
2022-11-17update-kernel: handle firmware files with spacesNatanael Copa
2022-11-17update-kernel: fix firmware inclusion in modloopNatanael Copa
Some brcm firmwares uses a glob. Fix this and add tests to verify that it works as expected. fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10533
2022-11-17update-kernel: add test to verify that firmware is includedNatanael Copa
2022-11-17tests: add fake modinfoNatanael Copa
Needed to test that we get the proper firmware included in modloop with update-kernel
2022-11-17tests: add fake apkNatanael Copa
We need this to test what we get into modloop in update-kernel
2022-11-15setup-interfaces: use iw instead of wireless-toolsNatanael Copa
also fix so we can join networks without PSK filter out hidden (\x00) SSIDs fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10518 fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10475
2022-11-11setup-disk: add tests for find_efi_sizeNatanael Copa
2022-11-11setup-disk: add tests for find/setup_partitionsNatanael Copa
2022-11-09setup-disk: fix typo in error messageNatanael Copa
and add test from missing block device
2022-11-09setup-disk: refactor and test find_disksNatanael Copa
2022-11-08setup-timezone: fix listing of sub-timezonesNatanael Copa
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10538
2022-11-08setup-user: skip user creation if 'none' is setNatanael Copa
Skip user creation if username is 'none' and no other options are set. fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10528
2022-11-08setup-devd: adapt to the busybox-mdev-openrc splitLaurent Bercot
The mdev init script isn't guaranteed to be there anymore; we explicitly add the busybox-mdev-openrc package when choosing mdev as our device manager. Signed-off-by: Laurent Bercot <ska@appnovation.com>
2022-08-09setup-devd: disable/stop hwdrivers together with mdevNatanael Copa
we should stop and disable hwdrivers when we stop and disable mdev ref https://gitlab.alpinelinux.org/alpine/aports/-/issues/14046
2022-08-09tests: verify that mdevd/udev is started and mdev stoppedNatanael Copa
2022-07-18tests: fix running tests over sshNatanael Copa
setup-alpine checks SSH_CONNECTION. Make sure to clear it when running tests so tests does not fail when we run the testsuite over ssh.
2022-07-15setup-alpine: ensure unintentional ssh diconnectNatanael Copa
Avoid restart network when running over ssh. hostname is now a dependency of networking so openrc will restart networking together with hostname, which may lead to disconnection when running over ssh. Solve this by only restart hostname if SSH_CONNECTION is empty. fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/14018
2022-07-15tests: support 'status' in fake rc-serviceNatanael Copa
so we can verify that service was started when it should and not started when it shouldn't.
2022-07-13setup-interfaces: add test for interactive wifi setupNatanael Copa