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