In an attempt to fix https://bugzilla.redhat.com/show_bug.cgi?id=2381020:
diff --git a/hpx.spec b/hpx.spec
index 94548c3..cadca25 100644
--- a/hpx.spec
+++ b/hpx.spec
@@ -215,7 +216,7 @@ rm %{buildroot}/%{_datadir}/%{name}/LICENSE_1_0.txt
. /etc/profile.d/modules.sh
for mpi in '' openmpi mpich ; do
test -n "${mpi}" && module load mpi/${mpi}-%{_arch}
- make -C %{__cmake_builddir}/ tests.examples
+ %ctest --tests-regex tests.examples
test -n "${mpi}" && module unload mpi/${mpi}-%{_arch}
done
I realized we actually never ran the tests during the rpm build after enabling the test we get:
Pass: buildArch (hpx-1.10.0-7.fc44.src.rpm, x86_64)
Pass: buildArch (hpx-1.10.0-7.fc44.src.rpm, aarch64)
Fail: buildArch (hpx-1.10.0-7.fc44.src.rpm, ppc64le)
Fail: buildArch (hpx-1.10.0-7.fc44.src.rpm, s390x)
(see https://koji.fedoraproject.org/koji/taskinfo?taskID=135996561)
In the ppc64le build log it has:
98% tests passed, 2 tests failed out of 120
Total Test time (real) = 63.65 sec
The following tests FAILED:
1088 - tests.examples.1d_stencil.1d_stencil_4_parallel (Failed)
1091 - tests.examples.1d_stencil.1d_stencil_7 (Failed)
Errors while running CTest
with
pure virtual method called
terminate called without an active exception
Base command is "/builddir/build/BUILD/hpx-1.10.0-build/hpx-1.10.0/ppc64le-redhat-linux-gnu-serial/bin/1d_stencil_7 --hpx:threads=4"
Executing command: /builddir/build/BUILD/hpx-1.10.0-build/hpx-1.10.0/ppc64le-redhat-linux-gnu-serial/bin/1d_stencil_7 --hpx:threads=4
Process 0 failed with an unexpected error code of 255 (expected 0) <_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>
and
35/120 Test #1088: tests.examples.1d_stencil.1d_stencil_4_parallel .............................................***Failed 0.12 sec
...
{what}: Segmentation fault
Base command is "/builddir/build/BUILD/hpx-1.10.0-build/hpx-1.10.0/ppc64le-redhat-linux-gnu-serial/bin/1d_stencil_4_parallel --hpx:threads=4"
Executing command: /builddir/build/BUILD/hpx-1.10.0-build/hpx-1.10.0/ppc64le-redhat-linux-gnu-serial/bin/1d_stencil_4_parallel --hpx:threads=4
Process 0 failed with an unexpected error code of 255 (expected 0) <_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>
Build log: build_ppc64le.txt.zip
s390x is much worse:
11% tests passed, 107 tests failed out of 120
Total Test time (real) = 4511.38 sec
Build log: build_s390x.txt.zip
In an attempt to fix https://bugzilla.redhat.com/show_bug.cgi?id=2381020:
I realized we actually never ran the tests during the rpm build after enabling the test we get:
Pass: buildArch (hpx-1.10.0-7.fc44.src.rpm, x86_64)
Pass: buildArch (hpx-1.10.0-7.fc44.src.rpm, aarch64)
Fail: buildArch (hpx-1.10.0-7.fc44.src.rpm, ppc64le)
Fail: buildArch (hpx-1.10.0-7.fc44.src.rpm, s390x)
(see https://koji.fedoraproject.org/koji/taskinfo?taskID=135996561)
In the ppc64le build log it has:
with
and
Build log: build_ppc64le.txt.zip
s390x is much worse:
Build log: build_s390x.txt.zip