git: f14c2607f943 - main - science/octopus: Backport the fix for testsuite

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 06 Jan 2022 21:53:41 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f14c2607f943a74cbd3a62a2a245383cf6c325f5

commit f14c2607f943a74cbd3a62a2a245383cf6c325f5
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-01-06 21:52:47 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-01-06 21:53:38 +0000

    science/octopus: Backport the fix for testsuite
---
 science/octopus/Makefile                                    |  2 +-
 .../octopus/files/patch-testsuite_oct-run__testsuite.sh.in  | 13 +++++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/science/octopus/Makefile b/science/octopus/Makefile
index 67b68df43580..ac90982394a2 100644
--- a/science/octopus/Makefile
+++ b/science/octopus/Makefile
@@ -42,7 +42,7 @@ LDFLAGS+=	-lsymspg
 FCFLAGS+=	-I${LOCALBASE}/include -ffree-line-length-none
 
 INSTALL_TARGET=	install-strip
-TEST_TARGET=	check-short # tests fail: https://gitlab.com/octopus-code/octopus/-/issues/536
+TEST_TARGET=	check-short # some tests fail
 
 OPTIONS_DEFINE=			OPENMP
 OPTIONS_DEFAULT=		OPENMP
diff --git a/science/octopus/files/patch-testsuite_oct-run__testsuite.sh.in b/science/octopus/files/patch-testsuite_oct-run__testsuite.sh.in
new file mode 100644
index 000000000000..11d7827d709c
--- /dev/null
+++ b/science/octopus/files/patch-testsuite_oct-run__testsuite.sh.in
@@ -0,0 +1,13 @@
+- backport of https://gitlab.com/octopus-code/octopus/-/merge_requests/1598
+
+--- testsuite/oct-run_testsuite.sh.in.orig	2022-01-06 16:59:24 UTC
++++ testsuite/oct-run_testsuite.sh.in
+@@ -141,7 +141,7 @@ function checkqueue {
+                 break;
+             fi
+         done
+-        sleep 0.1s;
++        sleep 0.1;
+     done
+ 
+     logfile=`basename $test_name .test`.log