prplos/.gitlab/tests/cram/generic/lcm/030-lcm-general.t
Nabil BIZID 854ef0eafb
ci: cram: add new LCM tests
Adding a new set of generic cram tests for the different LCM
functionalities, including QA of the new Volume management feature. This
new tests are superseding the previous very basic tests, so those old
tests are being removed.

Closes: LCM-752
Signed-off-by: Nabil BIZID <nabil.bizid@softathome.com>
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org> [commit facelift]
2025-07-31 15:23:55 +00:00

36 lines
741 B
Perl

## Setup test configuration
Setup the test configuration:
$ alias R="${CRAM_REMOTE_COMMAND:-}"
$ alias C="${CRAM_REMOTE_COPY:-}"
$ S=". /tmp/script_functions.sh"
$ C ${TESTDIR}/script_functions.sh root@${TARGET_LAN_IP}:/tmp/script_functions.sh
Warning: Permanently added '*' (*) to the list of known hosts* (glob)
Check Global Execution Environment and configuration:
$ R "${S} && check_ee_status --ee"
1
Up
Check /lcm is using ext4 as filesystem:
$ R "df -PkT /lcm" | awk '{print $2}'
Type
ext4
Check internal Cthulhu.Config datamodel:
$ R "${S} && check_cthulhu_config"
/lcm/rlyeh/images
/usr/*/cthulhu-lxc/cthulhu-lxc.so (glob)
1
Cleanup test environment:
$ R "rm -f /tmp/script_functions.sh"