[8c574b] | 1 | AT_BANNER([MoleCuilder - Molecules])
|
---|
| 2 | # 1. Bonds from file
|
---|
| 3 | AT_SETUP([Molecules - Bonds from file])
|
---|
| 4 | AT_KEYWORDS([Molecules])
|
---|
| 5 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/1/pre/test.* .], 0)
|
---|
[e6f9c5] | 6 | AT_CHECK([../../molecuilder -i test.conf -v 4 --select-molecule-by-id 0 -A test.dbond], 0, [stdout], [stderr])
|
---|
[8c574b] | 7 | AT_CHECK([fgrep "Looking for atoms 2 and 9." stdout], 0, [ignore], [ignore])
|
---|
| 8 | AT_CLEANUP
|
---|
| 9 |
|
---|
| 10 | # 2. Storing adjacency info
|
---|
| 11 | AT_SETUP([Molecules - Storing bond info])
|
---|
| 12 | AT_KEYWORDS([Molecules])
|
---|
| 13 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/2/pre/test.conf .], 0)
|
---|
[e6f9c5] | 14 | AT_CHECK([../../molecuilder -i test.conf -v 1 --select-molecule-by-id 0 -j test.dbond], 0, [stdout], [stderr])
|
---|
[8c574b] | 15 | AT_CHECK([file=test.dbond; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/2/post/$file], 0, [ignore], [ignore])
|
---|
[e6f9c5] | 16 | AT_CHECK([../../molecuilder -i test.conf -v 1 --select-molecule-by-id 0 -J test.adj], 0, [stdout], [stderr])
|
---|
[8c574b] | 17 | AT_CHECK([file=test.adj; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/2/post/$file], 0, [ignore], [ignore])
|
---|
| 18 | AT_CLEANUP
|
---|
| 19 |
|
---|
| 20 | # 3. Storing temperature
|
---|
| 21 | AT_SETUP([Molecules - Storing temperature])
|
---|
| 22 | AT_KEYWORDS([Molecules])
|
---|
| 23 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/3/pre/test.conf .], 0)
|
---|
[e6f9c5] | 24 | AT_CHECK([../../molecuilder -i test.conf --select-molecule-by-id 0 -S test.ekin], 0, [stdout], [stderr])
|
---|
[8c574b] | 25 | AT_CHECK([file=test.ekin; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/3/post/$file], 0, [ignore], [ignore])
|
---|
| 26 | AT_CLEANUP
|
---|
| 27 |
|
---|
| 28 | # 4. linear interpolation
|
---|
| 29 | AT_SETUP([Molecules - BROKEN: Linear interpolation])
|
---|
| 30 | AT_KEYWORDS([Molecules])
|
---|
| 31 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/4/pre/test.conf .], 0)
|
---|
[e6f9c5] | 32 | AT_CHECK([../../molecuilder -i test.conf --select-molecule-by-id 0 -L teststep --start-step 0 --end-step 1 --id-mapping 1], 0, [stdout], [stderr])
|
---|
[8c574b] | 33 | AT_CLEANUP
|
---|
| 34 |
|
---|
| 35 | # 5. Verlet force integration
|
---|
| 36 | AT_SETUP([Molecules - BROKEN: Verlet force integration])
|
---|
| 37 | AT_KEYWORDS([Molecules])
|
---|
| 38 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/5/pre/test.* .], 0)
|
---|
[e6f9c5] | 39 | AT_CHECK([../../molecuilder -i test.conf --select-molecule-by-id 0 -P test.forces], 0, [stdout], [stderr])
|
---|
[8c574b] | 40 | #AT_CHECK([file=test.conf; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/5/post/$file], 0, [ignore], [ignore])
|
---|
| 41 | AT_CLEANUP
|
---|
| 42 |
|
---|
| 43 | # 6. Translation
|
---|
| 44 | AT_SETUP([Molecules - Translation])
|
---|
| 45 | AT_KEYWORDS([Molecules])
|
---|
| 46 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/6/pre/test.* .], 0)
|
---|
[e6f9c5] | 47 | AT_CHECK([../../molecuilder -i test.conf --select-molecule-by-id 0 --select-molecules-atoms -t "1., 1., 1." --periodic 0], 0, [stdout], [stderr])
|
---|
[8c574b] | 48 | AT_CHECK([file=test.conf; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/6/post/$file], 0, [ignore], [ignore])
|
---|
[b540f3] | 49 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/6/pre/test2.* .], 0)
|
---|
[e6f9c5] | 50 | AT_CHECK([../../molecuilder -i test2.conf --select-molecule-by-id 0 --select-molecules-atoms -t "-1., -1., -1." --periodic 0], 0, [stdout], [stderr])
|
---|
[b540f3] | 51 | AT_CHECK([file=test2.conf; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/6/post/$file], 0, [ignore], [ignore])
|
---|
[8c574b] | 52 | AT_CLEANUP
|
---|
| 53 |
|
---|
[aacce8] | 54 | # 8. Rotate to PAS
|
---|
[327364] | 55 | AT_SETUP([Molecules - Rotate to PAS])
|
---|
[8c574b] | 56 | AT_KEYWORDS([Molecules])
|
---|
[327364] | 57 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/8/pre/test-*.xyz .], 0)
|
---|
[e6f9c5] | 58 | AT_CHECK([../../molecuilder -i test-rotated-z90.xyz --select-molecule-by-id 0 -m "0,0,1"], 0, [stdout], [stderr])
|
---|
[cabb46] | 59 | AT_CHECK([file="test-rotated-z90.xyz"; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/8/post/$file], 0, [ignore], [ignore])
|
---|
[e6f9c5] | 60 | AT_CHECK([../../molecuilder -i test-rotated-z180.xyz --select-molecule-by-id 0 -m "0,0,1"], 0, [stdout], [stderr])
|
---|
[cabb46] | 61 | AT_CHECK([file="test-rotated-z180.xyz"; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/8/post/$file], 0, [ignore], [ignore])
|
---|
[e6f9c5] | 62 | AT_CHECK([../../molecuilder -i test-rotated-z360.xyz --select-molecule-by-id 0 -m "0,0,1"], 0, [stdout], [stderr])
|
---|
[cabb46] | 63 | AT_CHECK([file="test-rotated-z360.xyz"; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/8/post/$file], 0, [ignore], [ignore])
|
---|
[e6f9c5] | 64 | AT_CHECK([../../molecuilder -i test-rotated-xYz20.xyz --select-molecule-by-id 0 -m "0,0,1"], 0, [stdout], [stderr])
|
---|
[cabb46] | 65 | AT_CHECK([file="test-rotated-xYz20.xyz"; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/8/post/$file], 0, [ignore], [ignore])
|
---|
[8c574b] | 66 | AT_CLEANUP
|
---|
| 67 |
|
---|
[31db5b] | 68 | # 9. Rotate around origin
|
---|
| 69 | AT_SETUP([Molecules - Rotate around origin])
|
---|
| 70 | AT_KEYWORDS([Molecules])
|
---|
| 71 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/9/pre/test.xyz .], 0)
|
---|
[e6f9c5] | 72 | AT_CHECK([../../molecuilder -i test.xyz --select-all-atoms --rotate-origin 90. --position "0,0,1"], 0, [stdout], [stderr])
|
---|
[cabb46] | 73 | AT_CHECK([diff -I '.*Created by molecuilder.*' test.xyz ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/9/post/test-rotated-z90.xyz], 0, [ignore], [ignore])
|
---|
[31db5b] | 74 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/9/pre/test.xyz .], 0)
|
---|
[e6f9c5] | 75 | AT_CHECK([../../molecuilder -i test.xyz --select-all-atoms --rotate-origin 180. --position "0,0,1"], 0, [stdout], [stderr])
|
---|
[cabb46] | 76 | AT_CHECK([diff -I '.*Created by molecuilder.*' test.xyz ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/9/post/test-rotated-z180.xyz], 0, [ignore], [ignore])
|
---|
[31db5b] | 77 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/9/pre/test.xyz .], 0)
|
---|
[e6f9c5] | 78 | AT_CHECK([../../molecuilder -i test.xyz --select-all-atoms --rotate-origin 360. --position "0,0,1"], 0, [stdout], [stderr])
|
---|
[cabb46] | 79 | AT_CHECK([diff -I '.*Created by molecuilder.*' test.xyz ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/9/post/test-rotated-z360.xyz], 0, [ignore], [ignore])
|
---|
| 80 | AT_CHECK([diff -I '.*Created by molecuilder.*' test.xyz ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/9/pre/test.xyz], 0, [ignore], [ignore])
|
---|
[31db5b] | 81 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/9/pre/test.xyz .], 0)
|
---|
[e6f9c5] | 82 | AT_CHECK([../../molecuilder -i test.xyz --select-all-atoms --rotate-origin 20. --position "1,2,1"], 0, [stdout], [stderr])
|
---|
[cabb46] | 83 | AT_CHECK([diff -I '.*Created by molecuilder.*' test.xyz ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/9/post/test-rotated-xYz20.xyz], 0, [ignore], [ignore])
|
---|
[31db5b] | 84 | AT_CLEANUP
|
---|
| 85 |
|
---|
[22c44bf] | 86 | # 10. Rotate around self
|
---|
[31db5b] | 87 | AT_SETUP([Molecules - Rotate around self])
|
---|
| 88 | AT_KEYWORDS([Molecules])
|
---|
| 89 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/10/pre/test.xyz .], 0)
|
---|
[cb9de4] | 90 | AT_CHECK([../../molecuilder -i test.xyz --select-all-molecules --rotate-self 90. --axis "0,0,1"], 0, [stdout], [stderr])
|
---|
[cabb46] | 91 | AT_CHECK([diff -I '.*Created by molecuilder.*' test.xyz ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/10/post/test-rotated-z90.xyz], 0, [ignore], [ignore])
|
---|
[31db5b] | 92 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/10/pre/test.xyz .], 0)
|
---|
[cb9de4] | 93 | AT_CHECK([../../molecuilder -i test.xyz --select-all-molecules --rotate-self 180. --axis "0,0,1"], 0, [stdout], [stderr])
|
---|
[cabb46] | 94 | AT_CHECK([diff -I '.*Created by molecuilder.*' test.xyz ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/10/post/test-rotated-z180.xyz], 0, [ignore], [ignore])
|
---|
[31db5b] | 95 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/10/pre/test.xyz .], 0)
|
---|
[cb9de4] | 96 | AT_CHECK([../../molecuilder -i test.xyz --select-all-molecules --rotate-self 360. --axis "0,0,1"], 0, [stdout], [stderr])
|
---|
[cabb46] | 97 | AT_CHECK([diff -I '.*Created by molecuilder.*' test.xyz ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/10/post/test-rotated-z360.xyz], 0, [ignore], [ignore])
|
---|
| 98 | AT_CHECK([diff -I '.*Created by molecuilder.*' test.xyz ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/10/pre/test.xyz], 0, [ignore], [ignore])
|
---|
[31db5b] | 99 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/10/pre/test.xyz .], 0)
|
---|
[cb9de4] | 100 | AT_CHECK([../../molecuilder -i test.xyz --select-all-molecules --rotate-self 20. --axis "1,2,1"], 0, [stdout], [stderr])
|
---|
[cabb46] | 101 | AT_CHECK([diff -I '.*Created by molecuilder.*' test.xyz ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/10/post/test-rotated-xYz20.xyz], 0, [ignore], [ignore])
|
---|
[31db5b] | 102 | AT_CLEANUP
|
---|
| 103 |
|
---|
[1a7fd2] | 104 | # 11. copy molecule
|
---|
| 105 | AT_SETUP([Molecules - Copy molecule])
|
---|
| 106 | AT_KEYWORDS([Molecules])
|
---|
| 107 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/11/pre/test.xyz test-copy.xyz], 0)
|
---|
[e6f9c5] | 108 | AT_CHECK([../../molecuilder -i test-copy.xyz --copy-molecule 0 --position "0,0,10"], 0, [stdout], [stderr])
|
---|
[cabb46] | 109 | AT_CHECK([diff -I '.*Created by molecuilder.*' test-copy.xyz ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/11/post/test-copy.xyz], 0, [ignore], [ignore])
|
---|
[1a7fd2] | 110 | AT_CLEANUP
|
---|
| 111 |
|
---|
| 112 | AT_SETUP([Molecules - Copy molecule with Undo/Redo])
|
---|
| 113 | AT_KEYWORDS([Molecules])
|
---|
| 114 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/11/pre/test.xyz test-copy.xyz], 0)
|
---|
[e6f9c5] | 115 | AT_CHECK([../../molecuilder -i test-copy.xyz --copy-molecule 0 --position "0,0,10" --undo], 0, [stdout], [stderr])
|
---|
[cabb46] | 116 | AT_CHECK([diff -I '.*Created by molecuilder.*' test-copy.xyz ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/11/pre/test.xyz], 0, [ignore], [ignore])
|
---|
[1a7fd2] | 117 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/11/pre/test.xyz test-copy.xyz], 0)
|
---|
[e6f9c5] | 118 | AT_CHECK([../../molecuilder -i test-copy.xyz --copy-molecule 0 --position "0,0,10" --undo --redo], 0, [stdout], [stderr])
|
---|
[cabb46] | 119 | AT_CHECK([diff -I '.*Created by molecuilder.*' test-copy.xyz ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/11/post/test-copy.xyz], 0, [ignore], [ignore])
|
---|
[1a7fd2] | 120 | AT_CLEANUP
|
---|