diff --git a/tests/smoke.sh b/tests/library-smoke.sh similarity index 66% rename from tests/smoke.sh rename to tests/library-smoke.sh index b43e98d..ed1322f 100755 --- a/tests/smoke.sh +++ b/tests/library-smoke.sh @@ -1,8 +1,11 @@ #!/usr/bin/bash gcc -x c -o smoke_test -lreport -Wno-implicit-function-declaration - < int main(void) { libreport_init(); + printf("libreport initialized OK\n"); + return 0; } EOF ./smoke_test diff --git a/tests/smoke.fmf b/tests/smoke.fmf index 092c42a..150d7b0 100644 --- a/tests/smoke.fmf +++ b/tests/smoke.fmf @@ -1,12 +1,14 @@ summary: Basic smoke test for libreport -require: gcc prepare: how: install # Do not attempt to install conflicting subpackages. exclude: - abrt-atomic - python3-abrt-container-addon + # Prerequisite for smoke testing liblibreport. + package: + - gcc execute: script: | - tests/smoke.sh + tests/library-smoke.sh report-cli --version