Back to home page

OSCL-LXR

 
 

    


0001 # bootconfig.conf
0002 #
0003 # Tests to test some bootconfig scripts
0004 
0005 # List where on the target machine the initrd is used
0006 INITRD := /boot/initramfs-test.img
0007 
0008 # Install bootconfig on the target machine and define the path here.
0009 BOOTCONFIG := /usr/bin/bootconfig
0010 
0011 # Currenty we just build the .config in the BUILD_DIR
0012 BUILD_TYPE := oldconfig
0013 
0014 # Helper macro to run bootconfig on the target
0015 # SSH is defined in include/defaults.conf
0016 ADD_BOOTCONFIG := ${SSH} "${BOOTCONFIG} -d ${INITRD} && ${BOOTCONFIG} -a /tmp/${BOOTCONFIG_FILE} ${INITRD}"
0017 
0018 # This copies a bootconfig script to the target and then will
0019 # add it to the initrd. SSH_USER is defined in include/defaults.conf
0020 # and MACHINE is defined in the example configs.
0021 BOOTCONFIG_TEST_PREP = scp ${BOOTCONFIG_PATH}${BOOTCONFIG_FILE} ${SSH_USER}@${MACHINE}:/tmp && ${ADD_BOOTCONFIG}
0022 
0023 # When a test is complete, remove the bootconfig from the initrd.
0024 CLEAR_BOOTCONFIG := ${SSH} "${BOOTCONFIG} -d ${INITRD}"
0025 
0026 # Run a verifier on the target after it had booted, to make sure that the
0027 # bootconfig script did what it was expected to do
0028 DO_TEST = scp ${BOOTCONFIG_PATH}${BOOTCONFIG_VERIFY} ${SSH_USER}@${MACHINE}:/tmp && ${SSH} /tmp/${BOOTCONFIG_VERIFY}
0029 
0030 # Comment this out to not run the boot configs
0031 RUN_BOOTCONFIG := 1
0032 
0033 TEST_START IF DEFINED RUN_BOOTCONFIG
0034 TEST_TYPE = test
0035 TEST_NAME = bootconfig boottrace
0036 # Just testing the bootconfig on initrd, no need to build the kernel
0037 BUILD_TYPE = nobuild
0038 BOOTCONFIG_FILE = boottrace.bconf
0039 BOOTCONFIG_VERIFY = verify-boottrace.sh
0040 ADD_CONFIG = ${ADD_CONFIG} ${BOOTCONFIG_PATH}/config-bootconfig
0041 PRE_TEST = ${BOOTCONFIG_TEST_PREP}
0042 PRE_TEST_DIE = 1
0043 TEST = ${DO_TEST}
0044 POST_TEST = ${CLEAR_BOOTCONFIG}
0045 
0046 TEST_START IF DEFINED RUN_BOOTCONFIG
0047 TEST_TYPE = test
0048 TEST_NAME = bootconfig function graph
0049 BUILD_TYPE = nobuild
0050 BOOTCONFIG_FILE = functiongraph.bconf
0051 BOOTCONFIG_VERIFY = verify-functiongraph.sh
0052 ADD_CONFIG = ${ADD_CONFIG} ${BOOTCONFIG_PATH}/config-bootconfig
0053 PRE_TEST = ${BOOTCONFIG_TEST_PREP}
0054 PRE_TEST_DIE = 1
0055 TEST = ${DO_TEST}
0056 POST_TEST = ${CLEAR_BOOTCONFIG}
0057 
0058 TEST_START IF DEFINED RUN_BOOTCONFIG
0059 TEST_TYPE = test
0060 TEST_NAME = bootconfig tracing
0061 BUILD_TYPE = nobuild
0062 BOOTCONFIG_FILE = tracing.bconf
0063 BOOTCONFIG_VERIFY = verify-tracing.sh
0064 ADD_CONFIG = ${ADD_CONFIG} ${BOOTCONFIG_PATH}/config-bootconfig
0065 PRE_TEST = ${BOOTCONFIG_TEST_PREP}
0066 PRE_TEST_DIE = 1
0067 TEST = ${DO_TEST}
0068 POST_TEST = ${CLEAR_BOOTCONFIG}
0069