summaryrefslogtreecommitdiff
path: root/spec/spec/build-test-program.yml
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-05-22 18:33:19 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-05-28 10:38:23 +0200
commit2a2fd6dd5aadf5a892ef1f713d2ab65605f2f4ef (patch)
tree7e8f49cd8b66d0c5bf0973ec8405b33fe38a8405 /spec/spec/build-test-program.yml
parent58f5f036bf85a8ded2b75c3af1fe7693b3fdead8 (diff)
spec: Add specification of build items
Diffstat (limited to 'spec/spec/build-test-program.yml')
-rw-r--r--spec/spec/build-test-program.yml63
1 files changed, 63 insertions, 0 deletions
diff --git a/spec/spec/build-test-program.yml b/spec/spec/build-test-program.yml
new file mode 100644
index 00000000..6afbcf28
--- /dev/null
+++ b/spec/spec/build-test-program.yml
@@ -0,0 +1,63 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+copyrights:
+- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+enabled-by: true
+links:
+- role: spec-member
+ uid: root
+- role: spec-refinement
+ spec-key: build-type
+ spec-value: test-program
+ uid: build
+spec-description: null
+spec-example: null
+spec-info:
+ dict:
+ attributes:
+ cflags:
+ description: null
+ spec-type: build-cflags
+ cppflags:
+ description: null
+ spec-type: build-cppflags
+ cxxflags:
+ description: null
+ spec-type: build-cxxflags
+ features:
+ description: |
+ It shall be the ``waf`` build features for this test program.
+ spec-type: str
+ includes:
+ description: null
+ spec-type: build-includes
+ ldflags:
+ description: null
+ spec-type: build-ldflags
+ source:
+ description: null
+ spec-type: build-source-list
+ stlib:
+ description: |
+ It shall be a list of external static library identifiers used to
+ link this test program, e.g. ``m`` for ``libm.a``.
+ spec-type: list-str
+ target:
+ description: null
+ spec-type: build-target
+ use-after:
+ description: null
+ spec-type: build-use-after-list
+ use-before:
+ description: null
+ spec-type: build-use-before-list
+ description: |
+ This set of attributes specifies a test program executable to build.
+ Test programs may use additional objects provided by
+ :ref:`SpecTypeBuildObjectsItemType` items. Test programs have an
+ implicit ``enabled-by`` attribute value which is controlled by the option
+ action :ref:`set-test-state <SpecTypeBuildOptionItemType>`. If the test
+ state is set to ``exclude``, then the test program is not built.
+ required-attributes: all
+spec-name: Build Test Program Item Type
+spec-type: build-test-program
+type: spec