Changeset 2b0041


Ignore:
Timestamp:
May 15, 2010, 10:11:50 PM (15 years ago)
Author:
Frederik Heber <heber@…>
Children:
494bf6
Parents:
abde75
Message:

FIX: Don't compare tesselation files directly but rather sorted list of triangle nodes.

  • As the order of the triangle's creation is not fixed (unknown why), the order of the triangle nodes in the tesselation files is not fixed.
  • Hence, checking by diff'ing whether it's the same as the reference is not sensible.
  • Now, we pick out the triangle nodes, sort them and compare against reference.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/tests/Tesselations/defs.in

    rabde75 r2b0041  
    6262        #cat stderr
    6363        #cat stdout
    64         diff ${FILENAME}.dat ../@srcdir@/$mol/$2/${FILENAME}-$mol.dat 2>diffstderr >diffstdout || exitcode=$?
     64        grep -E "^[0-9]* [0-9]* [0-9]*$" ../../../../../molecuilder/tests/Tesselations/$mol/$2/${FILENAME}-$mol.dat | sort -n >reference-triangles.dat
     65        grep -E "^[0-9]* [0-9]* [0-9]*$" ${FILENAME}.dat | sort -n >new-triangles.dat
     66        diff reference-triangles.dat new-triangles.dat 2>diffstderr >diffstdout || exitcode=$?
    6567        #echo "Diff done with exitcode $exitcode."
    6668        #cat diffstderr
Note: See TracChangeset for help on using the changeset viewer.