1 | ### 6. (un)select molecule from atom selection
|
---|
2 |
|
---|
3 |
|
---|
4 | AT_SETUP([Unselection - Molecules by atom selection])
|
---|
5 | AT_KEYWORDS([unselection molecule unselect-atoms-molecules])
|
---|
6 |
|
---|
7 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeOfAtom"
|
---|
8 | srcfile=box.xyz
|
---|
9 | testfile=test.xyz
|
---|
10 | targetfile=water_missing.xyz
|
---|
11 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
12 | AT_CHECK([../../molecuilder -i $testfile -I --select-all-molecules --select-atom-by-id 0 --unselect-atoms-molecules -s $targetfile], 0, [stdout], [stderr])
|
---|
13 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
14 |
|
---|
15 | AT_CLEANUP
|
---|
16 |
|
---|
17 |
|
---|
18 | AT_SETUP([Unselection - Molecules by atom selection with Undo])
|
---|
19 | AT_KEYWORDS([unselection molecule unselect-atoms-molecules undo])
|
---|
20 |
|
---|
21 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeOfAtom"
|
---|
22 | srcfile=box.xyz
|
---|
23 | testfile=test.xyz
|
---|
24 | targetfile=box.xyz
|
---|
25 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
26 | AT_CHECK([../../molecuilder -i $testfile -I --select-all-molecules --select-atom-by-id 0 --unselect-atoms-molecules --undo -s $targetfile], 0, [stdout], [stderr])
|
---|
27 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
28 |
|
---|
29 | AT_CLEANUP
|
---|
30 |
|
---|
31 |
|
---|
32 | AT_SETUP([Unselection - Molecules by atom selection with Redo])
|
---|
33 | AT_KEYWORDS([unselection molecule unselect-atoms-molecules redo])
|
---|
34 |
|
---|
35 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeOfAtom"
|
---|
36 | srcfile=box.xyz
|
---|
37 | testfile=test.xyz
|
---|
38 | targetfile=water_missing.xyz
|
---|
39 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
40 | AT_CHECK([../../molecuilder -i $testfile -I --select-all-molecules --select-atom-by-id 0 --unselect-atoms-molecules --undo --redo -s $targetfile], 0, [stdout], [stderr])
|
---|
41 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
42 |
|
---|
43 | AT_CLEANUP
|
---|