- buildtest comes with two find operation that includes
- Find YAML configuration (
_buildtest --find-yaml
) - Find test scripts (
_buildtest --find-test
)
- Find YAML configuration (
The buildtest find options can be summarized below
Find Options: buildtest options for finding software, toolchains, tests, yaml files -fc FINDCONFIG, --findconfig FINDCONFIG Find buildtest YAML config files found in BUILDTEST_CONFIGS_REPO. To find all yaml config files use -fc all -ft FINDTEST, --findtest FINDTEST Find test scripts generated by buildtest defined by BUILDTEST_TESTDIR. To find all test scripts use -ft all
To find all yaml configuration use the option _buildtest --find-configs all
or
short option _buildtest -fc all
This will give you an output of all .yaml files in $BUILDTEST_CONFIGS_REPO that is used to configure on your test scripts.
.. program-output:: cat scripts/Find_Operations/find_allyaml.txt
You can search yaml configuration by string match, if you know the name of the YAML file already. For instance if you
are interested in all yaml files with the word hello you can run buildtest -fc hello
and this will get you
.. program-output:: cat scripts/Find_Operations/find_hello_yaml.txt
To find all test scripts generated by buildtest you can run _buildtest --find-test all
or
short option _buildtest -ft all
This will report the full path to all tests currently generated by buildtest.
.. program-output:: cat scripts/Find_Operations/find_alltest.txt
The output of _buildtest -ft all
can be very long when you generate lots of tests, its better
to pipe with grep command or you can pass a string into _buildtest -ft <string>
which
will do the match.
If you are interested in seeing tests with gcc you can run _buildtest -ft gcc
and this
will get you
.. program-output:: cat scripts/Find_Operations/find_gcc_test.txt