bootconfig.conf 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # bootconfig.conf
  2. #
  3. # Tests to test some bootconfig scripts
  4. # List where on the target machine the initrd is used
  5. INITRD := /boot/initramfs-test.img
  6. # Install bootconfig on the target machine and define the path here.
  7. BOOTCONFIG := /usr/bin/bootconfig
  8. # Currenty we just build the .config in the BUILD_DIR
  9. BUILD_TYPE := oldconfig
  10. # Helper macro to run bootconfig on the target
  11. # SSH is defined in include/defaults.conf
  12. ADD_BOOTCONFIG := ${SSH} "${BOOTCONFIG} -d ${INITRD} && ${BOOTCONFIG} -a /tmp/${BOOTCONFIG_FILE} ${INITRD}"
  13. # This copies a bootconfig script to the target and then will
  14. # add it to the initrd. SSH_USER is defined in include/defaults.conf
  15. # and MACHINE is defined in the example configs.
  16. BOOTCONFIG_TEST_PREP = scp ${BOOTCONFIG_PATH}${BOOTCONFIG_FILE} ${SSH_USER}@${MACHINE}:/tmp && ${ADD_BOOTCONFIG}
  17. # When a test is complete, remove the bootconfig from the initrd.
  18. CLEAR_BOOTCONFIG := ${SSH} "${BOOTCONFIG} -d ${INITRD}"
  19. # Run a verifier on the target after it had booted, to make sure that the
  20. # bootconfig script did what it was expected to do
  21. DO_TEST = scp ${BOOTCONFIG_PATH}${BOOTCONFIG_VERIFY} ${SSH_USER}@${MACHINE}:/tmp && ${SSH} /tmp/${BOOTCONFIG_VERIFY}
  22. # Comment this out to not run the boot configs
  23. RUN_BOOTCONFIG := 1
  24. TEST_START IF DEFINED RUN_BOOTCONFIG
  25. TEST_TYPE = test
  26. TEST_NAME = bootconfig boottrace
  27. # Just testing the bootconfig on initrd, no need to build the kernel
  28. BUILD_TYPE = nobuild
  29. BOOTCONFIG_FILE = boottrace.bconf
  30. BOOTCONFIG_VERIFY = verify-boottrace.sh
  31. ADD_CONFIG = ${ADD_CONFIG} ${BOOTCONFIG_PATH}/config-bootconfig
  32. PRE_TEST = ${BOOTCONFIG_TEST_PREP}
  33. PRE_TEST_DIE = 1
  34. TEST = ${DO_TEST}
  35. POST_TEST = ${CLEAR_BOOTCONFIG}
  36. TEST_START IF DEFINED RUN_BOOTCONFIG
  37. TEST_TYPE = test
  38. TEST_NAME = bootconfig function graph
  39. BUILD_TYPE = nobuild
  40. BOOTCONFIG_FILE = functiongraph.bconf
  41. BOOTCONFIG_VERIFY = verify-functiongraph.sh
  42. ADD_CONFIG = ${ADD_CONFIG} ${BOOTCONFIG_PATH}/config-bootconfig
  43. PRE_TEST = ${BOOTCONFIG_TEST_PREP}
  44. PRE_TEST_DIE = 1
  45. TEST = ${DO_TEST}
  46. POST_TEST = ${CLEAR_BOOTCONFIG}
  47. TEST_START IF DEFINED RUN_BOOTCONFIG
  48. TEST_TYPE = test
  49. TEST_NAME = bootconfig tracing
  50. BUILD_TYPE = nobuild
  51. BOOTCONFIG_FILE = tracing.bconf
  52. BOOTCONFIG_VERIFY = verify-tracing.sh
  53. ADD_CONFIG = ${ADD_CONFIG} ${BOOTCONFIG_PATH}/config-bootconfig
  54. PRE_TEST = ${BOOTCONFIG_TEST_PREP}
  55. PRE_TEST_DIE = 1
  56. TEST = ${DO_TEST}
  57. POST_TEST = ${CLEAR_BOOTCONFIG}