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