Commit ed51f8b8 authored by Shane Snyder's avatar Shane Snyder

update dynamic regression scripts to test ls cmd

parent 88851749
......@@ -45,17 +45,6 @@ fi
# set up environment for tests according to platform
source $DARSHAN_TESTDIR/$DARSHAN_PLATFORM/env.sh
# in case of using LD_PRELOAD, it is possible errors with Darshan symbols
# (e..g, forgetting to resolve a symbol Darshan wraps using dlsym) can
# cause arbitrary binaries to crash. We check the output of the true
# command to successfully identify failures like this and exit
true_out=`/bin/true 2>&1`
if [ $? -ne 0 -o -n "$true_out" ]; then
echo -n $true_out > tmp
echo "environment setup failed"
exit 1
fi
failure_count=0
for i in `ls $DARSHAN_TESTDIR/test-cases/*.sh`; do
......
......@@ -38,3 +38,20 @@ FULL_MPICC_PATH=`which mpicc`
export LD_PRELOAD=`dirname $FULL_MPICC_PATH`/../lib/libfmpich.so:$DARSHAN_PATH/lib/libdarshan.so:$LD_PRELOAD
export DARSHAN_RUNJOB="mpiexec -n $DARSHAN_DEFAULT_NPROCS"
# in case of using LD_PRELOAD, it is possible errors with Darshan symbols
# (e..g, forgetting to resolve a symbol Darshan wraps using dlsym) can
# cause arbitrary binaries to crash. We check the output of the true
# command and ls to try to identify failures like this and exit
true_out=`true`
if [ $? -ne 0 -o -n "$true_out" ]; then
echo -n "$true_out"
echo "true command test failed"
exit 1
fi
ls_out=`ls 1>/dev/null`
if [ $? -ne 0 -o -n "$ls_out" ]; then
echo -n "$ls_out"
echo "ls command test failed"
exit 1
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment