### 4. (un)select molecules by id AT_SETUP([Selection - Molecule by id]) AT_KEYWORDS([selection,molecule]) # some variables before srcpath="Selection/Molecules/4" srcfile=box.xyz m4_include(CheckCommand.sh) # the tests check_command_output $srcpath $srcfile "water_id5.xyz" "-I --select-molecule-by-id 5 -s water_id5.xyz" mv water_id5.xyz water_id5_a.xyz check_command_output $srcpath $srcfile "empty.xyz" "-I --select-molecule-by-id 5 --undo -s empty.xyz" check_command_output $srcpath $srcfile "water_id5.xyz" "-I --select-molecule-by-id 5 --undo --redo -s water_id5.xyz" mv water_id5.xyz water_id5_b.xyz AT_CHECK([diff -I '.*Created by molecuilder.*' water_id5_a.xyz water_id5_b.xyz], 0, [ignore], [ignore]) AT_CLEANUP AT_SETUP([Unselection - Molecule by id]) AT_KEYWORDS([selection,molecule]) # some variables before srcpath="Selection/Molecules/4" srcfile=box.xyz m4_include(CheckCommand.sh) # the tests check_command_output $srcpath $srcfile "id5_missing.xyz" "-I --select-all-molecules --unselect-molecule-by-id 5 -s id5_missing.xyz" mv id5_missing.xyz id5_missing_a.xyz check_command_output $srcpath $srcfile "box.xyz" "-I --select-all-molecules --unselect-molecule-by-id 5 --undo -s box.xyz" check_command_output $srcpath $srcfile "id5_missing.xyz" "-I --select-all-molecules --unselect-molecule-by-id 5 --undo --redo -s id5_missing.xyz" mv id5_missing.xyz id5_missing_b.xyz AT_CHECK([diff -I '.*Created by molecuilder.*' id5_missing_a.xyz id5_missing_b.xyz], 0, [ignore], [ignore]) AT_CLEANUP