Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/Tesselations/defs.in

    r491876 rbdedb1  
    2424if $need_testdir
    2525then
    26         if $testdir_exists; then :; else
    27                 mkdir $testdir
    28                 CLEANUP="$CLEANUP; rmdir $testdir"
     26        if $testdir_exists; then
     27                rm -rf $testdir
    2928        fi
    30         cp  @srcdir@/$testdir/* $testdir/
     29        mkdir $testdir
     30        CLEANUP="$CLEANUP; rm -rf $testdir"
     31        cp -r @srcdir@/$testdir/* $testdir/
    3132        cd $testdir
    3233        CLEANUP="rm -f stderr stdout diffstderr diffstdout; cd ..; $CLEANUP"
     
    5152        FILENAME="NonConvexEnvelope"
    5253        exitcode=0
    53         #echo "Current dir is `pwd`, calling $MOLECUILDER $mol.conf -e $exec_prefix -p $mol.xyz -c 5. 5. 5. -N $RADIUS $FILENAME."
     54        cd $RADIUS
     55        #echo "Current dir is `pwd`, calling $MOLECUILDER $mol.conf -e $exec_prefix -p ../$mol.xyz -N $RADIUS $FILENAME."
    5456        if [ -e $mol.dbond ]; then
    55                 $MOLECUILDER $mol.conf -e $exec_prefix -p $mol.xyz -c 5. 5. 5. -A $mol.dbond -N $RADIUS $FILENAME 2>stderr >stdout || exitcode=$?
     57                $MOLECUILDER $mol.conf -e $exec_prefix -p ../$mol.xyz -A $mol.dbond -N $RADIUS $FILENAME 2>stderr >stdout || exitcode=$?
    5658        else
    57                 $MOLECUILDER $mol.conf -e $exec_prefix -p $mol.xyz -c 5. 5. 5. -N $RADIUS $FILENAME 2>stderr >stdout || exitcode=$?
     59                $MOLECUILDER $mol.conf -e $exec_prefix -p ../$mol.xyz -N $RADIUS $FILENAME 2>stderr >stdout || exitcode=$?
    5860        fi
     61        #echo "Molecuilder done with exitcode $exitcode."
    5962        #cat stderr
    6063        #cat stdout
    61         #diff ${FILENAME}.dat @srcdir@/$mol/${FILENAME}-$mol.dat 2>diffstderr >diffstdout || exitcode=$?
     64        diff ${FILENAME}.dat ../@srcdir@/$mol/$2/${FILENAME}-$mol.dat 2>diffstderr >diffstdout || exitcode=$?
     65        #echo "Diff done with exitcode $exitcode."
     66        #cat diffstderr
     67        #cat diffstdout
     68        cd ..
    6269        test $exitcode = $expected_exitcode || exit 1
    6370}
Note: See TracChangeset for help on using the changeset viewer.