Commit 343685dc authored by Kevin Harms's avatar Kevin Harms

Script that parses all the old example logs and generates PDFs. Then forces you to look at them.


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@311 3b7491f3-a168-0410-bf4b-c445ed680a29
parent 6993b2b3
#!/bin/bash
#
# Test darshan-parser/darshan-job-summary.pl on the previous versions
# of the darshan log format.
#
LOGS=../example-output
RUNLOG=/tmp/run.log
PATH=../:${PATH}
namelist=()
for log in $(ls ${LOGS});
do
if [ $log = 'README.txt' ];
then
continue;
fi
name=${log/.gz/.pdf}
namelist=(${namelist[*]} $name)
../util/bin/darshan-job-summary.pl --output=${LOGS}/$name ${LOGS}/$log >> $RUNLOG 2>&1
rc=$?
if [ $rc -ne 0 ];
then
echo "failed: $rc : $log";
fi
done
for name in ${namelist[*]};
do
if [ -f ${LOGS}/$name ];
then
xpdf ${LOGS}/$name;
rm ${LOGS}/$name;
else
echo "summary not found: $name";
fi
done
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