Advertisement
Guest User

Untitled

a guest
May 17th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 4.17 KB | None | 0 0
  1. ---
  2.  
  3. # Notes:
  4. # Sample project C code is not presently written to produce a release artifact.
  5. # As such, release build options are disabled.
  6. # This sample, therefore, only demonstrates running a collection of unit tests.
  7.  
  8. :project:
  9.   :use_exceptions: FALSE
  10.   :use_test_preprocessor: TRUE
  11.   :use_auxiliary_dependencies: TRUE
  12.   :use_deep_dependencies: TRUE
  13.   :build_root: build
  14. #  :release_build: TRUE
  15.   :test_file_prefix: test_
  16.   :which_ceedling: vendor/ceedling
  17.   :default_tasks:
  18.    - test:all
  19.  
  20. #:release_build:
  21. #  :output: MyApp.out
  22. #  :use_assembly: FALSE
  23.  
  24. :environment:
  25. :extension:
  26.   :executable: .out
  27.  
  28. :paths:
  29.   :test:
  30.    - +:test/**
  31.     - -:test/support
  32.    
  33.   :source:
  34.    - main/**
  35.     - build/include/
  36.     - /Users/william/esp/esp-idf/**/include/
  37.     - /Users/william/esp/esp-idf/components/lwip/include/apps/
  38.     - /Users/william/esp/esp-idf/components/newlib/platform_include/
  39.     - /Users/william/esp/esp-idf/components/bt/bluedroid/api/include/api/
  40.    
  41.   :support:
  42.    - test/support
  43.  
  44. :defines:
  45.  # in order to add common defines:
  46.   #  1) remove the trailing [] from the :common: section
  47.   #  2) add entries to the :common: section (e.g. :test: has TEST defined)
  48.   :commmon: &common_defines []
  49.   :test:
  50.    - *common_defines
  51.     - TEST
  52.   :test_preprocess:
  53.    - *common_defines
  54.     - TEST
  55.  
  56. :cmock:
  57.   :mock_prefix: mock_
  58.   :when_no_prototypes: :warn
  59.   :enforce_strict_ordering: TRUE
  60.   :plugins:
  61.    - :ignore
  62.     - :callback
  63.   :treat_as:
  64.     uint8:   HEX8
  65.     uint16:  HEX16
  66.     uint32:  UINT32
  67.     int8:    INT8
  68.     bool:    UINT8
  69.  
  70. :gcov:
  71.     :html_report_type: basic
  72.  
  73. #:tools:
  74. # Ceedling defaults to using gcc for compiling, linking, etc.
  75. # As [:tools] is blank, gcc will be used (so long as it's in your system path)
  76. # See documentation to configure a given toolchain for use
  77.  
  78. :tools:
  79.   :test_compiler:
  80.      :executable: xtensa-esp32-elf-gcc #exists in system search path
  81.      :name: 'xtensa'
  82.      :arguments:
  83.         - -I"$": COLLECTION_PATHS_TEST_TOOLCHAIN_INCLUDE               #expands to -I search paths
  84.         - -I"$": COLLECTION_PATHS_TEST_SUPPORT_SOURCE_INCLUDE_VENDOR   #expands to -I search paths
  85.         - -D$: COLLECTION_DEFINES_TEST_AND_VENDOR  #expands to all -D defined symbols
  86.         - -c ${1}                       #source code input file (Ruby method call param list sub)
  87.         - -o ${2}                       #object file output (Ruby method call param list sub)
  88.   :test_linker:
  89.      :executable: /Users/william/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-ld    #absolute file path
  90.      :name: 'xtensa linker'
  91.      :arguments:
  92.        - '"${1}"'
  93.         - -o "${2}"
  94.   :test_file_preprocessor:
  95.     :executable: /Users/william/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
  96.     :name: xtensa
  97.     :stderr_redirect: :none
  98.     :background_exec: :none
  99.     :optional: false
  100.     :arguments:
  101.    - -E
  102.     - -I"$": COLLECTION_PATHS_TEST_SUPPORT_SOURCE_INCLUDE_VENDOR
  103.     - -I"$": COLLECTION_PATHS_TEST_TOOLCHAIN_INCLUDE
  104.     - -D$: COLLECTION_DEFINES_TEST_AND_VENDOR
  105.     - -D$: DEFINES_TEST_PREPROCESS
  106.     - -DGNU_PREPROCESSOR
  107.     - '"${1}"'
  108.     - -o "${2}"
  109.   :test_includes_preprocessor:
  110.     :executable: /Users/william/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
  111.     :name: default_test_includes_preprocessor
  112.     :stderr_redirect: :none
  113.     :background_exec: :none
  114.     :optional: false
  115.     :arguments:
  116.    - -MM
  117.     - -MG
  118.  
  119.     - -D$: COLLECTION_DEFINES_TEST_AND_VENDOR
  120.     - -D$: DEFINES_TEST_PREPROCESS
  121.     - -DGNU_PREPROCESSOR
  122.     - -w
  123.     - -nostdinc
  124.     - '"${1}"'
  125.  
  126.  
  127. # LIBRARIES
  128. # These libraries are automatically injected into the build process. Those specified as
  129. # common will be used in all types of builds. Otherwise, libraries can be injected in just
  130. # tests or releases. These options are MERGED with the options in supplemental yaml files.
  131. :libraries:
  132.   :placement: :end
  133.   :flag: "${1}"  # or "-L ${1}" for example
  134.   :common: &common_libraries []
  135.   :test:
  136.    - *common_libraries
  137.   :release:
  138.    - *common_libraries
  139.  
  140. :plugins:
  141.   :load_paths:
  142.    - vendor/ceedling/plugins
  143.   :enabled:
  144.    - stdout_pretty_tests_report
  145.     - module_generator
  146.     - raw_output_report
  147. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement