1 | ### (un)select molecules by order
|
---|
2 |
|
---|
3 |
|
---|
4 | AT_SETUP([Unselection - Molecule by order, forward])
|
---|
5 | AT_KEYWORDS([unselection molecule unselect-molecule-by-order])
|
---|
6 |
|
---|
7 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByOrder"
|
---|
8 | srcfile=twowater.xyz
|
---|
9 | testfile=test.xyz
|
---|
10 | targetfile=water_id1.xyz
|
---|
11 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
12 | AT_CHECK([../../molecuilder -i $testfile -I --select-all-molecules --unselect-molecule-by-order 1 -s $targetfile], 0, [stdout], [stderr])
|
---|
13 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
14 |
|
---|
15 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByOrder"
|
---|
16 | srcfile=twowater.xyz
|
---|
17 | testfile=test.xyz
|
---|
18 | targetfile=water_id0.xyz
|
---|
19 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
20 | AT_CHECK([../../molecuilder -i $testfile -I --select-all-molecules --unselect-molecule-by-order 2 -s $targetfile], 0, [stdout], [stderr])
|
---|
21 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
22 |
|
---|
23 | AT_CLEANUP
|
---|
24 |
|
---|
25 |
|
---|
26 | AT_SETUP([Unselection - Molecule by order, forward with Undo])
|
---|
27 | AT_KEYWORDS([unselection molecule unselect-molecule-by-order undo])
|
---|
28 |
|
---|
29 | comparisonfile=twowater.xyz
|
---|
30 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByOrder"
|
---|
31 | srcfile=twowater.xyz
|
---|
32 | testfile=test.xyz
|
---|
33 | targetfile=twowater1.xyz
|
---|
34 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
35 | AT_CHECK([../../molecuilder -i $testfile -I --select-all-molecules --unselect-molecule-by-order 1 --undo -s $targetfile], 0, [stdout], [stderr])
|
---|
36 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$comparisonfile], 0, [ignore], [ignore])
|
---|
37 |
|
---|
38 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByOrder"
|
---|
39 | srcfile=twowater.xyz
|
---|
40 | testfile=test.xyz
|
---|
41 | targetfile=twowater2.xyz
|
---|
42 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
43 | AT_CHECK([../../molecuilder -i $testfile -I --select-all-molecules --unselect-molecule-by-order 2 --undo -s $targetfile], 0, [stdout], [stderr])
|
---|
44 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$comparisonfile], 0, [ignore], [ignore])
|
---|
45 |
|
---|
46 | AT_CLEANUP
|
---|
47 |
|
---|
48 |
|
---|
49 | AT_SETUP([Unselection - Molecule by order, forward with Redo])
|
---|
50 | AT_KEYWORDS([unselection molecule unselect-molecule-by-order redo])
|
---|
51 |
|
---|
52 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByOrder"
|
---|
53 | srcfile=twowater.xyz
|
---|
54 | testfile=test.xyz
|
---|
55 | targetfile=water_id1.xyz
|
---|
56 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
57 | AT_CHECK([../../molecuilder -i $testfile -I --select-all-molecules --unselect-molecule-by-order 1 --undo --redo -s $targetfile], 0, [stdout], [stderr])
|
---|
58 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
59 |
|
---|
60 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByOrder"
|
---|
61 | srcfile=twowater.xyz
|
---|
62 | testfile=test.xyz
|
---|
63 | targetfile=water_id0.xyz
|
---|
64 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
65 | AT_CHECK([../../molecuilder -i $testfile -I --select-all-molecules --unselect-molecule-by-order 2 --undo --redo -s $targetfile], 0, [stdout], [stderr])
|
---|
66 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
67 |
|
---|
68 | AT_CLEANUP
|
---|
69 |
|
---|