summaryrefslogtreecommitdiffstats
path: root/share/dtf
Commit message (Collapse)AuthorAgeFilesLines
* licensing: use GPLv2+ and LGPLv2+HEADmasterPavel Raiskup2015-11-263-10/+60
| | | | | | | | | 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
* dtf-gen: don't take $outputdir as test candidatePavel Raiskup2015-11-201-1/+6
| | | | | | | * bin/dtf-gen: Ensure that $outputdir is absolute path. * share/dtf/lib/default (__dtf_is_testdir): Readlink -f for both outputdir and test case candidate directory. This is OK because we don't have to make 'dtf-gen' script terribly portable.
* 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.
* 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.