summaryrefslogtreecommitdiffstats
path: root/share/dtf/lib/tests
Commit message (Collapse)AuthorAgeFilesLines
* licensing: use GPLv2+ and LGPLv2+HEADmasterPavel Raiskup2015-11-261-2/+20
| | | | | | | | | All library files are LGPL-family, all scripts are GPL. This sounds like reasonable licensing WRT targeted project audience. We can always go to GPLv3+ and LGPLv3+ (or anybody could to this). Inspiration from: https://fedoraproject.org/wiki/Licensing:Main?rd=Licensing
* tests-api: new api dtf_assert_right_distroPavel Raiskup2015-11-201-0/+20
| | | | | * share/dtf/lib/tests (dtf_assert_right_distro): New API function used to detect that 'dg' was run with right --distro flag.
* tests-api: add _hooks variable for dtf_failPavel Raiskup2015-11-201-0/+8
| | | | | | * share/dtf/lib/tests (dtf_fail): Add new $dtf_fail_hooks variable. It is aimed to contain list of shell functions to be execute upon failure.
* tests-api: new 'dtf_assert cmd'Pavel Raiskup2015-11-201-1/+32
| | | | | | | * share/dtf/lib/tests (dtf_assert): Handle new action 'cmd'. (__dtf_cmd): New internal wrapper around shell eval. (__dtf_assert_cmd): New internal function - checks that that __dtf_cmd ends with proper exit status.
* tests-api: fix 'dtf_prereq pkg installed/missing'Pavel Raiskup2015-11-201-8/+6
| | | | | * share/dtf/lib/tests (dtf_pkg_install): Fix C&P mistakes. (dtf_pkg_remove): Likewise.
* tests-api: new 'dtf prereq pkg missing' addedPavel Raiskup2015-11-191-5/+37
| | | | | | | | * bin/dtf-gen (DG): Allow to be overridden from environment. * share/dtf/lib/tests (dtf_pkg): Merge similar functions into one. (dtf_pkg_install): Use dtf_pkg. (dtf_pkg_remove): New function. (__dtf_prereq_pkg): Handle 'missing' argument.
* tests-api: new 'dtf_prereq pkg' methodPavel Raiskup2015-11-191-5/+35
| | | | | | | | * share/dtf/lib/tests (dtf_debug): New function to simplify debugging. (__dtf_debug): Internal wrapper for debugging. (dtf_pkg_install): Be more verbose if the method is used wrongly. (dtf_prereq): Accept 'pkg installed' subaction.
* lib: add 'tests' filePavel Raiskup2015-11-191-0/+119
This is useful for particular test-cases. Also, this is generated for target system/architecture. * bin/dtf-gen: Include expanded 'tests' template into 'library'. * share/dtf/lib/tests: New library file.