[8c574b] | 1 | AT_BANNER([MoleCuilder - simulation domain])
|
---|
| 2 | # 1. define box setting
|
---|
| 3 | AT_SETUP([Domain - defining simulation domain])
|
---|
| 4 | AT_KEYWORDS([domain])
|
---|
[192f6e] | 5 | AT_CHECK([../../molecuilder -i test.conf -e ${abs_top_srcdir}/src/ -o pcp -B "10, 0, 10, 0, 0, 10"], 0, [stdout], [stderr])
|
---|
[8c574b] | 6 | AT_CHECK([fgrep "BoxLength" test.conf], 0, [stdout], [stderr])
|
---|
| 7 | AT_CHECK([diff test.conf ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/1/post/test.conf], 0, [stdout], [stderr])
|
---|
| 8 | AT_CLEANUP
|
---|
| 9 |
|
---|
| 10 | # 2. center atoms in defined domain
|
---|
| 11 | AT_SETUP([Domain - setting and centering in domain])
|
---|
| 12 | AT_KEYWORDS([domain])
|
---|
| 13 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/2/pre/test.conf .], 0)
|
---|
[192f6e] | 14 | AT_CHECK([../../molecuilder -i test.conf -e ${abs_top_srcdir}/src/ -b "15, 0, 15, 0, 0, 15"], 0, [stdout], [stderr])
|
---|
[8c574b] | 15 | AT_CHECK([diff test.conf ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/2/post/test.conf], 0, [stdout], [stderr])
|
---|
| 16 | AT_CLEANUP
|
---|
| 17 |
|
---|
| 18 | # 3. center atoms with defined boundary
|
---|
| 19 | AT_SETUP([Domain - centering with defined boundary])
|
---|
| 20 | AT_KEYWORDS([domain])
|
---|
| 21 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/3/pre/test.conf .], 0)
|
---|
[192f6e] | 22 | AT_CHECK([../../molecuilder -i test.conf -e ${abs_top_srcdir}/src/ -c "5, 10, 15"], 0, [stdout], [stderr])
|
---|
[8c574b] | 23 | AT_CHECK([diff test.conf ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/3/post/test.conf], 0, [stdout], [stderr])
|
---|
| 24 | AT_CLEANUP
|
---|
| 25 |
|
---|
| 26 | # 4. center atoms and adjusting boundary
|
---|
| 27 | AT_SETUP([Domain - centering and setting domain])
|
---|
| 28 | AT_KEYWORDS([domain])
|
---|
| 29 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/4/pre/test.conf .], 0)
|
---|
[192f6e] | 30 | AT_CHECK([../../molecuilder -i test.conf -e ${abs_top_srcdir}/src/ -O], 0, [stdout], [stderr])
|
---|
[8c574b] | 31 | AT_CHECK([diff test.conf ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/4/post/test.conf], 0, [stdout], [stderr])
|
---|
| 32 | AT_CLEANUP
|
---|
| 33 |
|
---|
| 34 | # 5. scaling box
|
---|
| 35 | AT_SETUP([Domain - scaling box])
|
---|
| 36 | AT_KEYWORDS([domain])
|
---|
| 37 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/5/pre/test.conf .], 0)
|
---|
[cabb46] | 38 | AT_CHECK([../../molecuilder -i test.conf -e ${abs_top_srcdir}/src/ --scale-box "0.5, 1., 0.9"], 0, [stdout], [stderr])
|
---|
[8c574b] | 39 | AT_CHECK([diff test.conf ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/5/post/test.conf], 0, [stdout], [stderr])
|
---|
| 40 | AT_CLEANUP
|
---|
| 41 |
|
---|
| 42 | # 6. duplicating box
|
---|
| 43 | AT_SETUP([Domain - duplicating box])
|
---|
| 44 | AT_KEYWORDS([domain])
|
---|
| 45 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/6/pre/test.conf .], 0)
|
---|
[192f6e] | 46 | AT_CHECK([../../molecuilder -i test.conf -e ${abs_top_srcdir}/src/ -o xyz -d "1, 1, 1"], 0, [stdout], [stderr])
|
---|
[86cff86] | 47 | AT_CHECK([file=test.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
| 48 | AT_CHECK([file=test.xyz;sort -n ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/6/post/$file | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
| 49 | AT_CHECK([file=test.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
[1024cb] | 50 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/6/pre/test.conf test-x.conf], 0)
|
---|
[192f6e] | 51 | AT_CHECK([../../molecuilder -i test-x.conf -e ${abs_top_srcdir}/src/ -o xyz -d "2, 1, 1"], 0, [stdout], [stderr])
|
---|
[86cff86] | 52 | AT_CHECK([file=test-x.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
| 53 | AT_CHECK([file=test-x.xyz;sort -n ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/6/post/$file | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
| 54 | AT_CHECK([file=test-x.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
[1024cb] | 55 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/6/pre/test.conf test-y.conf], 0)
|
---|
[192f6e] | 56 | AT_CHECK([../../molecuilder -i test-y.conf -e ${abs_top_srcdir}/src/ -o xyz -d "1, 2, 1"], 0, [stdout], [stderr])
|
---|
[86cff86] | 57 | AT_CHECK([file=test-y.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
| 58 | AT_CHECK([file=test-y.xyz;sort -n ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/6/post/$file | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
| 59 | AT_CHECK([file=test-y.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
[1024cb] | 60 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/6/pre/test.conf test-z.conf], 0)
|
---|
[192f6e] | 61 | AT_CHECK([../../molecuilder -i test-z.conf -e ${abs_top_srcdir}/src/ -o xyz -d "1, 1, 2"], 0, [stdout], [stderr])
|
---|
[86cff86] | 62 | AT_CHECK([file=test-z.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
| 63 | AT_CHECK([file=test-z.xyz;sort -n ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/6/post/$file | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
| 64 | AT_CHECK([file=test-z.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
[1024cb] | 65 | #AT_CHECK([/bin/false], 12, [ignore], [ignore])
|
---|
[8c574b] | 66 | AT_CLEANUP
|
---|