Commit Graph

8 Commits

Author SHA1 Message Date
Alexander Couzens c18fe7f651 start-testsuite.sh: remove superflouse `set -e`
The set -e will not interfere with the next command,
as it's executed and not included.
The exit code of the last command is returned with and without -e.

Change-Id: I820d59b29b4ba4a1d094c5c2a2af367e6ef4e5b6
2019-05-19 07:33:56 +00:00
Neels Hofmeyr 1fd6679d9d fix build: don't clean out expected-results.log: rename to *.xml
'make clean' as generated by ttcn3_makefilegen removes all *.log files, which
of course cleans out expected-results.log, which should not happen. Since this
is a junit XML file, rename the suffix to .xml.

Change-Id: Ic334f6b758eef865e3a497aa430691a3ae696d25
2018-04-11 19:29:18 +02:00
Neels Hofmeyr 3cf797d7a5 add compare-results.sh, call from start-testsuite.sh
Compare current test results to the expected results, and exit in error on
discrepancies.

Add compare-result.sh: (trivially) grep junit xml output to determine which
tests passed and which didn't, and compare against an expected-result.log,
another junit file from a previous run. Summarize and determine success.

Include an "xfail" feature: tests that are expected to fail are marked as
"xfail", unexpected failures as "FAIL".

In various subdirs, copy the current jenkins jobs' junit xml outputs as
expected-results.log, so that we will start getting useful output in both
jenkins runs and manual local runs.

In start-testsuite.sh, after running the tests, invoke the results comparison.

Due to the single-line parsing nature, the script so far does not distinguish
between error and failure. I doubt that we actually need to do that though.

Related: OS#3136
Change-Id: I87d62a8be73d73a5eeff61a842e7c27a0066079d
2018-04-06 01:07:15 +02:00
Harald Welte 04b5ec3ec7 fix regression in start-testsuite.sh (false shellcheck advice)
Change-Id: If05d13c0dedfedf517005e5418acc677ddc5e75f
2018-03-18 23:10:01 +01:00
Harald Welte ae5791defd start-testsuite.sh: Use shellcheck to harden script
Change-Id: Iaf887da7ad95ba8b1fe93fe6c29f0518961d2fbb
2018-03-18 15:22:39 +01:00
Daniel Willmann 47fb0f4871 start-testsuite.sh: Pass a third parameter to ttcn3_start
The name of the parameters is a little misleading, since the second
parameter could just be a testname.

Change-Id: Ibe207a83c477c918a865a8a34cad7ca5d45c7eac
2018-02-06 16:05:04 +01:00
Pau Espin bd939f0307 start-testsuite.sh: Add archlinux tccn3 path to LD_LIBRARY_PATH
Archlinux installs ttcn33 libaries in /usr/ttcn3/lib (titan-git package from AUR).

Change-Id: I99219f4ab36c82e562ef3fed047d3c52d64497f1
2018-01-29 11:51:49 +01:00
Harald Welte 4d7722900a generalize 'start.sh' script for executing synamically linked testsuite 2017-08-19 15:27:10 +02:00