Require GCC in test build; adjust test messages

This commit is contained in:
Matěj Grabovský 2022-01-12 14:11:54 +01:00
parent a5f24502c1
commit aa655511eb
2 changed files with 7 additions and 2 deletions

View File

@ -1,8 +1,11 @@
#!/usr/bin/bash #!/usr/bin/bash
gcc -x c -o smoke_test -lreport -Wno-implicit-function-declaration - <<EOF gcc -x c -o smoke_test -lreport -Wno-implicit-function-declaration - <<EOF
#include <stdio.h>
int main(void) { int main(void) {
libreport_init(); libreport_init();
printf("libreport initialized OK\n");
return 0;
} }
EOF EOF
./smoke_test ./smoke_test

View File

@ -1,12 +1,14 @@
summary: Basic smoke test for libreport summary: Basic smoke test for libreport
require: gcc
prepare: prepare:
how: install how: install
# Do not attempt to install conflicting subpackages. # Do not attempt to install conflicting subpackages.
exclude: exclude:
- abrt-atomic - abrt-atomic
- python3-abrt-container-addon - python3-abrt-container-addon
# Prerequisite for smoke testing liblibreport.
package:
- gcc
execute: execute:
script: | script: |
tests/smoke.sh tests/library-smoke.sh
report-cli --version report-cli --version