brintos

brintos / linux-shallow public Read only

0
0
Text · 2.3 KiB · 3b885de Raw
70 lines · plain
1# bootconfig.conf2#3# Tests to test some bootconfig scripts4 5# List where on the target machine the initrd is used6INITRD := /boot/initramfs-test.img7 8# Install bootconfig on the target machine and define the path here.9BOOTCONFIG := /usr/bin/bootconfig10 11# Currenty we just build the .config in the BUILD_DIR12BUILD_TYPE := oldconfig13 14# Helper macro to run bootconfig on the target15# SSH is defined in include/defaults.conf16ADD_BOOTCONFIG := ${SSH} "${BOOTCONFIG} -d ${INITRD} && ${BOOTCONFIG} -a /tmp/${BOOTCONFIG_FILE} ${INITRD}"17 18# This copies a bootconfig script to the target and then will19# add it to the initrd. SSH_USER is defined in include/defaults.conf20# and MACHINE is defined in the example configs.21BOOTCONFIG_TEST_PREP = scp ${BOOTCONFIG_PATH}${BOOTCONFIG_FILE} ${SSH_USER}@${MACHINE}:/tmp && ${ADD_BOOTCONFIG}22 23# When a test is complete, remove the bootconfig from the initrd.24CLEAR_BOOTCONFIG := ${SSH} "${BOOTCONFIG} -d ${INITRD}"25 26# Run a verifier on the target after it had booted, to make sure that the27# bootconfig script did what it was expected to do28DO_TEST = scp ${BOOTCONFIG_PATH}${BOOTCONFIG_VERIFY} ${SSH_USER}@${MACHINE}:/tmp && ${SSH} /tmp/${BOOTCONFIG_VERIFY}29 30# Comment this out to not run the boot configs31RUN_BOOTCONFIG := 132 33TEST_START IF DEFINED RUN_BOOTCONFIG34TEST_TYPE = test35TEST_NAME = bootconfig boottrace36# Just testing the bootconfig on initrd, no need to build the kernel37BUILD_TYPE = nobuild38BOOTCONFIG_FILE = boottrace.bconf39BOOTCONFIG_VERIFY = verify-boottrace.sh40ADD_CONFIG = ${ADD_CONFIG} ${BOOTCONFIG_PATH}/config-bootconfig41PRE_TEST = ${BOOTCONFIG_TEST_PREP}42PRE_TEST_DIE = 143TEST = ${DO_TEST}44POST_TEST = ${CLEAR_BOOTCONFIG}45 46TEST_START IF DEFINED RUN_BOOTCONFIG47TEST_TYPE = test48TEST_NAME = bootconfig function graph49BUILD_TYPE = nobuild50BOOTCONFIG_FILE = functiongraph.bconf51BOOTCONFIG_VERIFY = verify-functiongraph.sh52ADD_CONFIG = ${ADD_CONFIG} ${BOOTCONFIG_PATH}/config-bootconfig53PRE_TEST = ${BOOTCONFIG_TEST_PREP}54PRE_TEST_DIE = 155TEST = ${DO_TEST}56POST_TEST = ${CLEAR_BOOTCONFIG}57 58TEST_START IF DEFINED RUN_BOOTCONFIG59TEST_TYPE = test60TEST_NAME = bootconfig tracing61BUILD_TYPE = nobuild62BOOTCONFIG_FILE = tracing.bconf63BOOTCONFIG_VERIFY = verify-tracing.sh64ADD_CONFIG = ${ADD_CONFIG} ${BOOTCONFIG_PATH}/config-bootconfig65PRE_TEST = ${BOOTCONFIG_TEST_PREP}66PRE_TEST_DIE = 167TEST = ${DO_TEST}68POST_TEST = ${CLEAR_BOOTCONFIG}69 70