summaryrefslogtreecommitdiffstats
path: root/tests/expected/script
Commit message (Collapse)AuthorAgeFilesLines
* tests: update script done messagesKarel Zak2018-05-145-12/+12
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update script headersKarel Zak2018-05-145-12/+12
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* script: add the -o/--output-limit option. Fix race test.Fred Mora2018-05-141-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | When script is used on a host with a relatively small free disk space, it is sometimes desirable to limit the size of the captured output. This can now be enforced with the --output-limit option. The --output-limit option lets the user specify a maximum size. The program uses the size parsing from strutils and thus supports the usual multiplicative suffixes (kiB, KB, MiB, MB, etc.). After the specified number of bytes have been written to the output file, the script program will terminate the child process. Due to buffering, the size of the output file might exceed the specified limit. This limit also does not include the start and done messages. The race test was throwing an error dur to a variable being "" in some cases. Quoting the variable in the equal test took care of that test. [kzak@redhat.com: - use done() to stop script - count also timing file - remove unnamed member initialization in ctl struct - add to bash-completion] Signed-off-by: Fred Mora <fmora@datto.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: adjust for ISO timezone colon useJ William Piggott2017-11-124-20/+20
| | | | | | | Fix several tests broken by adding a timezone colon in the timeutils ISO format functions. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* tests: update script(1) testsKarel Zak2017-04-184-18/+22
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: don't skip case "output undefined"Ruediger Meier2016-03-071-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | Treat missing expected files as empty and let the test fail if there is non-empty output. Expected output may be missing in these cases: 1. forgot to commit the file after changing/adding a (sub)test 2. a bug in a test where we do tricks with TS_EXPECTED 3. and most notable if ts_die() is called before a subtest is initialized, e.g. in ts_scsi_debug_init() I always wondered why we don't treat this as FAILED. Now we do so, ts_finalize and ts_gen_diff looks much cleaner now. The change discovers that tests with subtest were ignoring the "non-sub" expected files which had to be fixed. BTW we removed any zero sized files. Moreover now we respect diff's return value. In past all test succeeded when diff was not able to write to diffdir, e.g. when running tests as normal user after they run as root. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: add scriptreplay testSami Kerola2015-06-081-0/+9
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: check script options work as expectedSami Kerola2015-06-065-0/+42
| | | | | | | Options --flush and --timing remain unchecked, as I do not have an idea how to check them reliably. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: add script output buffering race checkSami Kerola2015-06-061-0/+3
| | | | | | | | Regression check to a fix by Stanislav Brabec. Reference: 0b285b84b2f14339fd86857244654ba25fac7d73 CC: Stanislav Brabec <sbrabec@suse.cz> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: script/race would work with variable loop countRuediger Meier2014-05-131-1/+1
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: create expected/$(component)/$(testname)Karel Zak2009-02-111-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>