Path: blob/master/tools/testing/ktest/examples/include/bootconfig.conf
26299 views
# bootconfig.conf1#2# Tests to test some bootconfig scripts34# List where on the target machine the initrd is used5INITRD := /boot/initramfs-test.img67# Install bootconfig on the target machine and define the path here.8BOOTCONFIG := /usr/bin/bootconfig910# Currenty we just build the .config in the BUILD_DIR11BUILD_TYPE := oldconfig1213# Helper macro to run bootconfig on the target14# SSH is defined in include/defaults.conf15ADD_BOOTCONFIG := ${SSH} "${BOOTCONFIG} -d ${INITRD} && ${BOOTCONFIG} -a /tmp/${BOOTCONFIG_FILE} ${INITRD}"1617# This copies a bootconfig script to the target and then will18# add it to the initrd. SSH_USER is defined in include/defaults.conf19# and MACHINE is defined in the example configs.20BOOTCONFIG_TEST_PREP = scp ${BOOTCONFIG_PATH}${BOOTCONFIG_FILE} ${SSH_USER}@${MACHINE}:/tmp && ${ADD_BOOTCONFIG}2122# When a test is complete, remove the bootconfig from the initrd.23CLEAR_BOOTCONFIG := ${SSH} "${BOOTCONFIG} -d ${INITRD}"2425# Run a verifier on the target after it had booted, to make sure that the26# bootconfig script did what it was expected to do27DO_TEST = scp ${BOOTCONFIG_PATH}${BOOTCONFIG_VERIFY} ${SSH_USER}@${MACHINE}:/tmp && ${SSH} /tmp/${BOOTCONFIG_VERIFY}2829# Comment this out to not run the boot configs30RUN_BOOTCONFIG := 13132TEST_START IF DEFINED RUN_BOOTCONFIG33TEST_TYPE = test34TEST_NAME = bootconfig boottrace35# Just testing the bootconfig on initrd, no need to build the kernel36BUILD_TYPE = nobuild37BOOTCONFIG_FILE = boottrace.bconf38BOOTCONFIG_VERIFY = verify-boottrace.sh39ADD_CONFIG = ${ADD_CONFIG} ${BOOTCONFIG_PATH}/config-bootconfig40PRE_TEST = ${BOOTCONFIG_TEST_PREP}41PRE_TEST_DIE = 142TEST = ${DO_TEST}43POST_TEST = ${CLEAR_BOOTCONFIG}4445TEST_START IF DEFINED RUN_BOOTCONFIG46TEST_TYPE = test47TEST_NAME = bootconfig function graph48BUILD_TYPE = nobuild49BOOTCONFIG_FILE = functiongraph.bconf50BOOTCONFIG_VERIFY = verify-functiongraph.sh51ADD_CONFIG = ${ADD_CONFIG} ${BOOTCONFIG_PATH}/config-bootconfig52PRE_TEST = ${BOOTCONFIG_TEST_PREP}53PRE_TEST_DIE = 154TEST = ${DO_TEST}55POST_TEST = ${CLEAR_BOOTCONFIG}5657TEST_START IF DEFINED RUN_BOOTCONFIG58TEST_TYPE = test59TEST_NAME = bootconfig tracing60BUILD_TYPE = nobuild61BOOTCONFIG_FILE = tracing.bconf62BOOTCONFIG_VERIFY = verify-tracing.sh63ADD_CONFIG = ${ADD_CONFIG} ${BOOTCONFIG_PATH}/config-bootconfig64PRE_TEST = ${BOOTCONFIG_TEST_PREP}65PRE_TEST_DIE = 166TEST = ${DO_TEST}67POST_TEST = ${CLEAR_BOOTCONFIG}68697071