[8c574b] | 1 | AT_BANNER([MoleCuilder - Tesselation test])
|
---|
| 2 | # 1. Non convex tesselation
|
---|
| 3 | AT_SETUP([Tesselation - Non-Convex Envelope])
|
---|
| 4 | AT_KEYWORDS([Tesselation])
|
---|
| 5 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/1/pre/* .], 0)
|
---|
[1d9b7d2] | 6 | AT_CHECK([../../molecuilder -i test.conf -e ${abs_top_srcdir}/src/ --select-molecule-by-id 0 -N 4. --nonconvex-file NonConvexEnvelope], 0, [stdout], [stderr])
|
---|
[8c574b] | 7 | AT_CHECK([file=NonConvexEnvelope.dat; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/1/post/$file], 0, [ignore], [ignore])
|
---|
[274d45] | 8 | #AT_CHECK([file=NonConvexEnvelope.r3d; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/1/post/$file], 0, [ignore], [ignore])
|
---|
[8c574b] | 9 | AT_CLEANUP
|
---|
| 10 |
|
---|
| 11 | # 2. convex tesselation (where the non-convex is already convex)
|
---|
| 12 | AT_SETUP([Tesselation - Convex Envelope])
|
---|
| 13 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/2/pre/* .], 0)
|
---|
[1d9b7d2] | 14 | AT_CHECK([../../molecuilder -i test.conf -e ${abs_top_srcdir}/src/ --select-molecule-by-id 0 --convex-envelope --convex-file ConvexEnvelope --nonconvex-file NonConvexEnvelope], 0, [stdout], [stderr])
|
---|
[8c574b] | 15 | AT_CHECK([file=ConvexEnvelope.dat; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/2/post/$file], 0, [ignore], [ignore])
|
---|
[274d45] | 16 | #AT_CHECK([file=ConvexEnvelope.r3d; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/2/post/$file], 0, [ignore], [ignore])
|
---|
[8c574b] | 17 | AT_CHECK([fgrep "tesselated volume area is 16.4016 angstrom^3" stdout], 0, [ignore], [ignore])
|
---|
| 18 | AT_CHECK([diff ConvexEnvelope.dat NonConvexEnvelope.dat], 0, [ignore], [ignore])
|
---|
| 19 | AT_CLEANUP
|
---|
| 20 |
|
---|
| 21 | # 3. Big Non convex tesselation
|
---|
| 22 | AT_SETUP([Tesselation - Big non-Convex Envelope])
|
---|
| 23 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/3/pre/* .], 0)
|
---|
[1d9b7d2] | 24 | AT_CHECK([../../molecuilder -i test.conf -e ${abs_top_srcdir}/src/ --select-molecule-by-id 0 -N 4. --nonconvex-file NonConvexEnvelope], 0, [stdout], [stderr])
|
---|
[8c574b] | 25 | AT_CHECK([file=NonConvexEnvelope.dat; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/3/post/$file], 0, [ignore], [ignore])
|
---|
[274d45] | 26 | #AT_CHECK([file=NonConvexEnvelope.r3d; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/3/post/$file], 0, [ignore], [ignore])
|
---|
[8c574b] | 27 | AT_CLEANUP
|
---|
| 28 |
|
---|
| 29 | # 4. Big convex tesselation - is not working yet
|
---|
| 30 | #AT_SETUP([Tesselation - big convex Envelope])
|
---|
| 31 | #AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/4/pre/* .], 0)
|
---|
[1d9b7d2] | 32 | #AT_CHECK([../../molecuilder -i test.conf -e ${abs_top_srcdir}/src/ --select-molecule-by-id 0 --convex-envelope ConvexEnvelope NonConvexEnvelope], 0, [stdout], [stderr])
|
---|
[8c574b] | 33 | #AT_CHECK([file=ConvexEnvelope.dat; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/4/post/$file], 0, [ignore], [ignore])
|
---|
| 34 | #AT_CHECK([file=ConvexEnvelope.r3d; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/4/post/$file], 0, [ignore], [ignore])
|
---|
| 35 | #AT_CHECK([fgrep "tesselated volume area is 16.4016 angstrom^3" stdout], 0, [ignore], [ignore])
|
---|
| 36 | #AT_CLEANUP
|
---|