Zdenek Kabelac
1a8a33ae9b
tests: a bit more fancy way to initialized struct
...
Older g++ is not smart enough to figure this out, so add a bit more push.
2021-09-20 16:01:22 +02:00
Zdenek Kabelac
1b52451996
cov: mask some warning about leakage
...
Mask false-positive leak report.
2021-09-20 14:26:09 +02:00
Zdenek Kabelac
efaab93491
cov: ignore syscall
2021-09-20 14:26:09 +02:00
Zdenek Kabelac
055406bb39
cov: validate syscall result
2021-09-20 14:26:09 +02:00
Zdenek Kabelac
3f946bfce7
cov: capture runtime exception
2021-09-20 14:26:09 +02:00
Zdenek Kabelac
d5c82b0e73
cov: better defined constructors
...
Ensure C++ initializes all struct members.
Also some deterministic buffer initialization.
2021-09-20 14:26:09 +02:00
David Teigland
df36a8eadf
tests: don't change real test output
2019-09-12 14:45:13 -05:00
Zdenek Kabelac
18aa541ca2
configure: avoid repeative inclusion of configure.h
...
Since configure.h is a generated header and it's missing traditional
ifdefs preambule - it can be included & parsed multiple times.
Normally compiler is fine when defines have same value and there is
no warning - yet we don't need to parse this several times
and by adding -include directive we can ensure every file
in the package is rightly compile with configure.h as the
first header file.
2018-12-21 19:19:50 +01:00
Zdenek Kabelac
78e0fdb618
tests: correcting kernel version test
...
Debug force leaked in.
2016-09-20 22:50:43 +02:00
Zdenek Kabelac
994df22b60
tests: read messages instead of syslog
...
Since on those older system there is rather 'fight' over
syslog reading buffer - lets read output from /var/log/messages
intead.
2016-09-20 22:36:29 +02:00
Zdenek Kabelac
a9c2a62939
tests: kernel message for <3.5 kernels
...
Since /dev/kmsg is useless on kernel <3.5 user there automatically
syslog to obtain traces from kernel log buffer during test.
2016-09-20 17:09:46 +02:00
Zdenek Kabelac
11dd362454
tests: GLIBC decided to obsolete readdir_r
...
Keep the code compilatible without warnings on newer glibc.
2016-04-21 17:48:19 +02:00
Marian Csontos
2a23550cf3
tests: add missing --skip option and S env.variable
2015-11-19 12:00:59 +01:00
Zdenek Kabelac
6e1e0e8813
tests: using matching type
...
Compare time_t.
2015-10-27 16:00:10 +01:00
Zdenek Kabelac
c301cc5d38
tests: extend timer for 4 hours
...
Extend max time for test suite to 4 hours.
Also replace some 'non-ascii' chars from source files
and keep them plain ascii.
2015-10-26 23:57:47 +01:00
Marian Csontos
efcb3bbc8d
test: Fix timeout handling
...
Timeouts were considered as warnings only. Signalling failure is
preferred.
2015-10-01 13:19:29 +02:00
Marian Csontos
b785a50da4
test: Help, default and relative paths in runner
...
Add help message.
Handle relative paths first.
Use `.` for OUTDIR instead of `/` if empty.
2015-07-17 20:36:50 +02:00
Marian Csontos
2bc0525e93
test: Fix hardcoded /usr/share in testsuite
2015-07-17 20:36:50 +02:00
Zdenek Kabelac
abcab54cca
tests: avoid clobering dmesg
...
Restore old harness access to /dev/kmsg.
2015-05-09 09:17:26 +02:00
Zdenek Kabelac
85e833c172
tests: add extra keyword for timing control
...
Control logging of timer with
"## timing off" and "## timing on"
2015-04-20 19:18:56 +02:00
Zdenek Kabelac
53c2c45625
tests: align test result in batch mode
2015-04-15 13:35:42 +02:00
Zdenek Kabelac
e478471dd5
tests: move stamp handling
...
Shift stamp handling into TimedBuffer,
so it's same everywhere.
2015-04-15 13:35:42 +02:00
Zdenek Kabelac
75454c2b32
tests: rusage skipped only for skipped
2015-04-14 13:29:43 +02:00
Zdenek Kabelac
e4261ba037
tests: update runner
...
Reenable TESTDIR & PREFIX replacement.
Since we need to replace string in proper order (1st. @TESTDIR@,
2nd. @PREFIX@), drop map and use plain string.
Drop timestamp logging when 'stacktracing'
2015-04-13 16:38:32 +02:00
Zdenek Kabelac
eded54df7b
tests: avoid loop on older system
...
Cleanup overload of 'push'.
Don't busy-loop when reading is finished.
2015-03-12 00:07:45 +01:00
Zdenek Kabelac
26f5ec0e98
tests: update runner
...
Avoid busy-looping on CPU while reading socket pipe
and always call read only when select tells there is
something for read.
Change the batch output to old nicer output.
2015-03-11 21:17:23 +01:00
Zdenek Kabelac
bdf4e3e2f2
tests: do not leak in mem in destructor
2015-03-11 21:17:23 +01:00
Zdenek Kabelac
6cecf61cc3
tests: cleanup some cxx warnings
2015-03-11 11:02:35 +01:00
Zdenek Kabelac
3f7e62b340
tests: enable kmsg by default
...
By default we want to capture kernel log into test trace
(since when test crashes it could be problem to reproduce).
2015-03-11 11:02:35 +01:00
Zdenek Kabelac
db5166fbfa
tests: extend test timeout to 180sec
...
Some test could take more then minute (with slow udev and slow
emulation) - extend timeout to 180sec.
2015-03-11 11:02:35 +01:00
Zdenek Kabelac
739b751046
tests: don't crash if checked string is shorter
...
Not really sure what is this testing - just avoid coredump if
the test cannot happen since the index would too high.
2015-02-12 15:38:51 +01:00
Marian Csontos
a8b45b7a4c
test: Fix harness not building on RHEL5
2015-02-10 17:02:01 +01:00
Petr Rockai
4686b8cea5
test: Fix a segfault in the test runner.
2015-02-05 13:51:06 +01:00
Petr Rockai
d8983d4bd4
test: Properly detect warnings from testcases.
2015-02-05 13:51:06 +01:00
Petr Rockai
c96e42006d
test: Only force an IO sync when the testcase has finished.
2015-02-05 13:51:06 +01:00
Petr Rockai
c82c69bb56
test: Update brick-shelltest (configurable timeout, better banner, exit code).
2015-02-05 13:47:20 +01:00
Petr Rockai
7ed8fc8f7d
test: Update brick-shelltest.h.
2015-02-05 13:47:20 +01:00
Petr Rockai
19bb62e2ec
test: Update brick-shelltest, adding timestamps to logs.
2015-02-05 13:47:20 +01:00
Petr Rockai
8646b50aa9
test: Package up the test runner in a reusable C++ "brick".
2015-02-05 13:47:19 +01:00