Skip to content
Snippets Groups Projects
Select Git revision
  • 6c388475ac5af85574e916d390f8aab879fc70f0
  • apertis/v2022dev0 default protected
  • wip/wlozano/agl-compositor-launch
  • agl-compositor-fix
  • apertis/v2019
  • apertis/v2020
  • apertis/v2021pre
  • apertis/v2021dev3
  • wip/fdanis/7252-v2020
  • pages
  • apertis/v2021dev2
  • apertis/v2021dev1
  • sagar/test
  • wip/d4s/test_sign
  • apertis/v2020pre
  • apertis/v2021dev0
  • apertis/v2020dev0
  • wip/sagar/sdk-persistent-test-improvements
  • apertis/v2019pre
  • wip/fredo/sdk-tools-tests
  • apertis/v2019dev0
  • apertis/1.1812.0
22 results

apertis-test-cases

Forked from tests / apertis-test-cases
627 commits behind the upstream repository.
Luis Araujo's avatar
Luis Araujo authored
- Add the remaining test cases
- Rename some sdk test cases to keep their name shorter

Signed-off-by: default avatarLuis Araujo <luis.araujo@collabora.co.uk>
6c388475
History

Repository for Apertis tests cases.

Format Rules/Notes

  • Test cases with an install.deps directive will automatically add a pre conditions section to the test case page with the list of packages to install specified in such a directive.

Macro helpers

Some test cases share the same set of instructions, for those, some macros are available: macro_ostree_preconditions , macro_install_packages_preconditions, and macro_modules_preconditions. Please check the tests cases for example about how to use them.

Command

The main program is located inside the renderer/ subdirectory and can be directly invoked from inside that directory:

$ cd renderer/
$ ./render-test-case --help

The above command will show the help.

To render a single test case, use something like:

$ ./render-test-case ../tests-cases/<test-case-name>.yaml

That will create a <test-case-name>.html page.

To render a complete set of test cases inside a directory, just pass a directory instead of a file to the command, and optionally pass a new directory path with the -d flag so all the newly generated test cases are saved there instead of the current directory:

$ ./render-test-case ../tests-cases/ -d apertis-tests-cases-v0.1/

Now all the html tests cases should be available inside the apertis-tests-cases-v0.1/ directory.