1 | AT_BANNER([MoleCuilder - simulation domain])
|
---|
2 | # 1. define box setting
|
---|
3 | AT_SETUP([Domain - defining simulation domain])
|
---|
4 | AT_KEYWORDS([domain])
|
---|
5 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -B 10 0 10 0 0 10], 0, [stdout], [stderr])
|
---|
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)
|
---|
14 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -b 15 0 15 0 0 15], 0, [stdout], [stderr])
|
---|
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)
|
---|
22 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -c 5 10 15], 0, [stdout], [stderr])
|
---|
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)
|
---|
30 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -O], 0, [stdout], [stderr])
|
---|
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)
|
---|
38 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -s 0.5 1. 0.9], 0, [stdout], [stderr])
|
---|
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)
|
---|
46 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -d 1 1 1], 0, [stdout], [stderr])
|
---|
47 | AT_CHECK([file=test.conf.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
48 | AT_CHECK([file=test.conf.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.conf.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
50 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/6/pre/test.conf test-x.conf], 0)
|
---|
51 | AT_CHECK([../../molecuilder test-x.conf -e ${abs_top_srcdir}/src/ -d 2 1 1], 0, [stdout], [stderr])
|
---|
52 | AT_CHECK([file=test-x.conf.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
53 | AT_CHECK([file=test-x.conf.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.conf.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
55 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/6/pre/test.conf test-y.conf], 0)
|
---|
56 | AT_CHECK([../../molecuilder test-y.conf -e ${abs_top_srcdir}/src/ -d 1 2 1], 0, [stdout], [stderr])
|
---|
57 | AT_CHECK([file=test-y.conf.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
58 | AT_CHECK([file=test-y.conf.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.conf.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
60 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/6/pre/test.conf test-z.conf], 0)
|
---|
61 | AT_CHECK([../../molecuilder test-z.conf -e ${abs_top_srcdir}/src/ -d 1 1 2], 0, [stdout], [stderr])
|
---|
62 | AT_CHECK([file=test-z.conf.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
63 | AT_CHECK([file=test-z.conf.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.conf.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
65 | #AT_CHECK([/bin/false], 12, [ignore], [ignore])
|
---|
66 | AT_CLEANUP
|
---|