summaryrefslogtreecommitdiffstats
path: root/share
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* dtf-run: fix quotationPavel Raiskup2015-11-181-1/+1
| | | | * share/dtf/tpl/run.tpl: Fix quotation.
* lib: document 'default' file is not a templatePavel Raiskup2015-11-181-0/+2
|
* lib: properly go to subdir in DTF_RESULTSPavel Raiskup2015-11-161-1/+1
| | | | | | | | ROOT testname is not the same as $__DTF_TOP_TEST for run files within subdirectory. * share/dtf/lib/default: Check for $testname = ROOT rather than for $__DTF_TOP_TEST.
* lib: don't require bashPavel Raiskup2015-11-162-8/+39
| | | | | | | | | * bin/dtf-gen: Use /bin/sh shebang. * share/dtf/lib/default: Likewise. (__dtf_internal_fail): New internal method. (__dtf_run_testcase): Play with mkfifo. * share/dtf/tpl/run.tpl: Use /bin/sh shebang. Remove $outputdir before script start.
* initial commitPavel Raiskup2015-11-162-0/+139
* bin/dtf-gen: New script. * dtf-gen: New wrapper to be run from git. * share/dtf/lib/default: Library script. * share/dtf/tpl/run.tpl: Template for 'run' wrapper.