summaryrefslogtreecommitdiff
path: root/test/run-testdither
diff options
context:
space:
mode:
Diffstat (limited to 'test/run-testdither')
-rwxr-xr-xtest/run-testdither20
1 files changed, 16 insertions, 4 deletions
diff --git a/test/run-testdither b/test/run-testdither
index b402588..b6fd6ce 100755
--- a/test/run-testdither
+++ b/test/run-testdither
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Driver for testdither
#
@@ -15,8 +15,20 @@
# for more details.
#
# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+# Don't want to run this at all as part of automated test
+[ -n "$STP_TEST_SUITE" ] && exit 77
+
+if [[ -n "$STP_TEST_LOG_PREFIX" ]] ; then
+ redir="${STP_TEST_LOG_PREFIX}${0##*/}_$$.log"
+ if [[ -n $BUILD_VERBOSE ]] ; then
+ exec > >(tee -a "$redir" >&3)
+ else
+ exec 1>>"$redir"
+ fi
+ exec 2>&1
+fi
out_status=0
@@ -68,7 +80,7 @@ case "$valcount" in
esac
if [ -n "$valopts" ] ; then
- valgrind="valgrind $valopts"
+ valgrind="libtool --mode=execute valgrind $valopts"
fi
$valgrind ./testdither