1. binet
  2. mana-core-athenarootcomps

Source

mana-core-athenarootcomps / test / run_test_athena_ntuple_dumper.sh

#!/bin/sh

function run_test() {
    echo "::: retrieve reference ascii file..."
    reffile=ref.d3pd.ascii
    chkfile=d3pd.ascii
    /bin/rm -f $reffile > /dev/null
    /bin/rm -f $chkfile > /dev/null
    refdir=root://eosatlas//eos/atlas/user/b/binet/utests/utests/filter-d3pd/
    xrdcp $refdir/$reffile $reffile || return 1

    echo "::: run athena-ntuple-dumper..."
    (athena.py AthenaRootComps/test_athena_ntuple_dumper.py >& d3pd.log.txt) || return 1

    echo "::: comparing ascii dumps..."
    diff $reffile $chkfile
    sc=$?
    echo "::: comparing ascii dumps...[$sc]"
    return $sc
}

run_test