Skip to content

Commit 79a06d4

Browse files
authored
Merge pull request #1473 from jan-cerny/arf_debug
Fix tests on Travis to not ignore their results
2 parents 975c9f8 + 9d11a29 commit 79a06d4

File tree

6 files changed

+18
-7
lines changed

6 files changed

+18
-7
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,14 @@ matrix:
2626
- swig
2727
- librtmp-dev
2828
- xsltproc
29+
- rpm-common
30+
- lua50
2931
before_script:
3032
- cd build
3133
script:
3234
- cmake -DCMAKE_BUILD_TYPE=Debug ../
3335
- build-wrapper-linux-x86-64 --out-dir bw-output make all || make all # build-wrapper won't work on forked repositories.
34-
- ctest --output-on-failure || true # Tests won't pass on Ubuntu.
36+
- ctest --output-on-failure
3537
- (cd .. && sonar-scanner) || true # Will always fail builds on forked repositories.
3638
after_success:
3739
- curl -s https://codecov.io/bash > cov.sh && bash cov.sh -x "$GCOV"

docs/developer/developer.adoc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,13 @@ that you need to have these additional packages installed:
151151
wget lua which procps-ng initscripts chkconfig sendmail bzip2 rpm-build
152152
----
153153

154-
and it is also required to have `sendmail` service running on the system:
154+
On Ubuntu 18.04, also install:
155+
156+
----
157+
rpm-common
158+
----
159+
160+
It is also required to have `sendmail` service running on the system:
155161

156162
----
157163
$ systemctl start sendmail.service

tests/probes/rpm/rpminfo/test_probes_rpminfo.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@
1717

1818
set -e -o pipefail
1919

20-
require "rpm" || return 255
20+
require rpm || exit 255
2121
A_NAME=`rpm --qf "%{NAME}\n" -qa | sort | uniq -u | sed -n '1p'`
2222
B_NAME=`rpm --qf "%{NAME}\n" -qa | sort | uniq -u | sed -n '2p'`
2323

24+
[ -n "$A_NAME" ] || exit 255
2425

2526
test_init
2627

2728
test_run "rpminfo probe test" test_probes_rpminfo $A_NAME $B_NAME
2829

29-
test_exit
30+
test_exit

tests/probes/rpm/rpmverify/test_probes_rpmverify_not_equals_operation.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/env bash
1+
#!/usr/bin/env bash
22

33
. $builddir/tests/test_common.sh
44

@@ -7,6 +7,8 @@ set -e -o pipefail
77

88
function perform_test {
99
probecheck "rpmverify" || return 255
10+
require rpm || return 255
11+
rpm -qf /root || return 255
1012

1113
DF="$srcdir/test_probes_rpmverify_not_equals_operation.xml"
1214
RF="results.xml"

tests/probes/rpm/rpmverify/test_probes_rpmverify_not_equals_operation_offline.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/env bash
1+
#!/usr/bin/env bash
22

33
. $builddir/tests/test_common.sh
44
. $srcdir/../rpm_common.sh

tests/probes/rpm/rpmverifypackage/rpmverifypackage.xml.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/env bash
1+
#!/usr/bin/env bash
22

33
# This template generates OVAL definitions for rpmverifypackage_object.
44

0 commit comments

Comments
 (0)