1 | ### 5. (un)select molecule by name
|
---|
2 |
|
---|
3 | AT_SETUP([Selection - Molecules by name])
|
---|
4 | AT_KEYWORDS([selection,molecule,select-molecules-by-name])
|
---|
5 |
|
---|
6 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByName"
|
---|
7 | srcfile=test.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-molecule-by-id 0 --change-molname \"water\" --unselect-molecule-by-id 0 --select-molecules-by-name \"water\" -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 name with Undo])
|
---|
18 | AT_KEYWORDS([selection,molecule,select-molecules-by-name,undo])
|
---|
19 |
|
---|
20 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByName"
|
---|
21 | srcfile=test.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-molecule-by-id 0 --change-molname \"water\" --unselect-molecule-by-id 0 --select-molecules-by-name \"water\" --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 name with Redo])
|
---|
32 | AT_KEYWORDS([selection,molecule,select-molecules-by-name,redo])
|
---|
33 |
|
---|
34 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByName"
|
---|
35 | srcfile=test.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-molecule-by-id 0 --change-molname \"water\" --unselect-molecule-by-id 0 --select-molecules-by-name \"water\" --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
|
---|
43 |
|
---|