summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* licensing: use GPLv2+ and LGPLv2+HEADmasterPavel Raiskup2015-11-267-10/+966
| | | | | | | | | 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-202-1/+11
| | | | | | | * 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.
* TODO: new filePavel Raiskup2015-11-201-0/+16
|
* 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-192-6/+38
| | | | | | | | * 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-192-0/+121
| | | | | | | | 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
|
* dtf-gen: use 'exit' more consistentlyPavel Raiskup2015-11-181-5/+12
| | | | | | * bin/dtf-gen (die): New wrapper. (generate_wrapper): Use die instead of exit. (dg_call): Die if $DG fails.
* dtf-gen: use distgen for generating from templatesPavel Raiskup2015-11-182-5/+24
| | | | | | | | * bin/dtf-gen: Accept '--distro' option. ($DG): New constant. (dg_call): New wrapper for dg. (generate_wrapper): Use 'dg_call' instead of cp & cat. * dtf-gen: Pass all options down to bin/dtf-gen.
* 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-163-12/+41
| | | | | | | | | * 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-164-0/+248
* 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.