gnuastro-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master 9fe1aac3: Tests: missing check_with_program (f


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 9fe1aac3: Tests: missing check_with_program (for valgrind) commands fixed
Date: Fri, 5 Apr 2024 09:13:13 -0400 (EDT)

branch: master
commit 9fe1aac30c6b81cb96c5e0346a907def5d0e2938
Author: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>

    Tests: missing check_with_program (for valgrind) commands fixed
    
    Until now, some of the tests were missing the '$check_with_program' command
    at the start of the final command to run the test. Currently this is used
    for optionally running the test within Valgrind.
    
    With this commit, this command has been placed at the start of those tests
    that didn't have it. In particular, it was the tests on the 3D features of
    NoiseChisel, Segment and MakeCatalog (that were developed on a separate
    branch for a long time; and I forgot to bring this feature into them during
    the merge).
---
 tests/mkcatalog/simple-3d.sh        | 4 ++--
 tests/mkprof/3d-cat.sh              | 4 ++--
 tests/mkprof/3d-kernel.sh           | 4 ++--
 tests/noisechisel/noisechisel-3d.sh | 2 +-
 tests/segment/segment-3d.sh         | 4 ++--
 5 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/tests/mkcatalog/simple-3d.sh b/tests/mkcatalog/simple-3d.sh
index 83ae4016..cdbc62d4 100755
--- a/tests/mkcatalog/simple-3d.sh
+++ b/tests/mkcatalog/simple-3d.sh
@@ -49,5 +49,5 @@ if [ ! -f $img      ]; then echo "$img does not exist.";   
exit 77; fi
 
 # Actual test script
 # ==================
-$execname $img --x --y --z --w1 --w2 --w3 --area --sum --sn  \
-          --upperlimit
+$check_with_program $execname $img --x --y --z --w1 --w2 --w3 \
+                    --area --sum --sn --upperlimit
diff --git a/tests/mkprof/3d-cat.sh b/tests/mkprof/3d-cat.sh
index bd7f3d33..7f35e44b 100755
--- a/tests/mkprof/3d-cat.sh
+++ b/tests/mkprof/3d-cat.sh
@@ -45,5 +45,5 @@ if [ ! -f $cat      ]; then echo "$cat does not exist.";   
exit 77; fi
 
 # Actual test script
 # ==================
-$execname $cat --config=.gnuastro/astmkprof-3d.conf --oversample=1 \
-          --output=3d-cat.fits
+$check_with_program $execname $cat --config=.gnuastro/astmkprof-3d.conf \
+                              --oversample=1 --output=3d-cat.fits
diff --git a/tests/mkprof/3d-kernel.sh b/tests/mkprof/3d-kernel.sh
index d89f25eb..0fd6d5dd 100755
--- a/tests/mkprof/3d-kernel.sh
+++ b/tests/mkprof/3d-kernel.sh
@@ -43,5 +43,5 @@ if [ ! -f $execname ]; then echo "$execname not created."; 
exit 77; fi
 
 # Actual test script
 # ==================
-$execname $cat --kernel=gaussian-3d,2,3,0.5 --oversample=1    \
-          --output=3d-kernel.fits
+$check_with_program $execname $cat --kernel=gaussian-3d,2,3,0.5 --oversample=1 
\
+                              --output=3d-kernel.fits
diff --git a/tests/noisechisel/noisechisel-3d.sh 
b/tests/noisechisel/noisechisel-3d.sh
index a08ad5a3..4b498fbb 100755
--- a/tests/noisechisel/noisechisel-3d.sh
+++ b/tests/noisechisel/noisechisel-3d.sh
@@ -49,4 +49,4 @@ if [ ! -f $img      ]; then echo "$img does not exist.";    
exit 77; fi
 
 # Actual test script
 # ==================
-$execname $img --config=.gnuastro/astnoisechisel-3d.conf
+$check_with_program $execname $img --config=.gnuastro/astnoisechisel-3d.conf
diff --git a/tests/segment/segment-3d.sh b/tests/segment/segment-3d.sh
index 871f1086..b6c17541 100755
--- a/tests/segment/segment-3d.sh
+++ b/tests/segment/segment-3d.sh
@@ -49,5 +49,5 @@ if [ ! -f $img      ]; then echo "$img does not exist.";   
exit 77; fi
 
 # Actual test script
 # ==================
-$execname $img --largetilesize=100,100,30 --snquant=0.99   \
-          --config=.gnuastro/astsegment-3d.conf
+$check_with_program $execname $img --largetilesize=100,100,30 --snquant=0.99 \
+                              --config=.gnuastro/astsegment-3d.conf



reply via email to

[Prev in Thread] Current Thread [Next in Thread]