16 Commits (23e29e9527ed18e8946cdffe7a830e08d3030b1c)

Author SHA1 Message Date
Dan Čermák 53c265f8a7 [testsuite] Add path conversion function 7 years ago
Dan Čermák 300b1dc0ef [testsuite] Testsuite injects config file values into its namespace 7 years ago
Dan Čermák 90c8d754b7 [testsuite] Call subprocess.Popen() with shell=True on Windows 7 years ago
Dan Čermák 939ded283f [testsuite] check stderr before stdout
That way you get to see error messages about wrong filenames instead of an
empty stdout
7 years ago
Dan Čermák b364e075c6 [testsuite] Implement DeleteFiles decorator
- Refactor FileDecoratorBase to use an arbitrary property in the decorated
  class where the list of files is saved
- Add DeleteFiles decorator which deletes all files passed to it after the test
  finished
7 years ago
Dan Čermák d1714f6564 [testsuite] Fix typo and obsolete syntax 7 years ago
Dan Čermák fe98936375 [testsuite] Fixed infinite iteration in CaseMeta.__new__
The loop condition in the variable expansion loop was faulty and caused an
infinite loop when no change occured (i.e. no variables were expanded)
7 years ago
Dan Čermák 740e4ecad1 [testsuite] Improve output in case of errors
use the msg= option of unittest.assertXyz() to improve the error
reporting
7 years ago
Dan Čermák b6d93558ee [testsuite] Added option to use different encodings for the output 7 years ago
Dan Čermák dd3bcaf41f [testsuite] Added check that test list have same length
commands, retval, stdout & stderr are lists
if they don't have the same length, they are truncated to the smallest list
thereby silently dropping test cases
=> now a ValueError is raised preventing that
7 years ago
Dan Čermák c40c90141f [testsuite] Add debug mode & search directory to runner 7 years ago
Dan Čermák bd9d085141 [testsuite] Refactor test suite to use metaclasses & template module
The testsuite now uses python's template module for string substitutions which
allows for a more natural substitution syntax known from the shell. Also, it
allows to run the substitutions multiple times, which is not possible with
string.format().
The heavy-lifting is now performed via a metaclass, which expands all variables
on the class creation.
7 years ago
Dan Čermák 4533d60e74 [testsuite] Added helper function for system_tests.Case.compare_stderr 7 years ago
Dan Čermák 02f60f11ae [testsuite] Reimplemented a part of system_tests.CopyFiles
- main file handling functionality is performed by a base class => can
  be easier extended if required
7 years ago
Dan Čermák a15f090f81 Modified test suite so that case sensitive keys are possible 7 years ago
Dan Čermák 2e745b0b26 Added replacement for the current regression test suite 8 years ago