Ignore:
Timestamp:
Apr 27, 2011, 8:59:00 AM (14 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
Children:
caeeb8
Parents:
61749d1
Message:

Restructured test*.at files: 3-step-rule.

  • three-step rule: setup, test, cleanup is now each separated by empty line.
  • test file name is (most of the time) placed into variable $file.
Location:
tests/regression/Selection/Atoms
Files:
2 added
7 edited

Legend:

Unmodified
Added
Removed
  • tests/regression/Selection/Atoms/AllAtoms/testsuite-selection-all-atoms.at

    r61749d1 r23b0c2  
    33AT_SETUP([Selection - All Atoms])
    44AT_KEYWORDS([selection])
    5 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtoms/pre/box.xyz allatoms.xyz], 0)
    6 AT_CHECK([../../molecuilder -i allatoms.xyz -v 3 --select-all-atoms -r], 0, [stdout], [stderr])
    7 AT_CHECK([file=allatoms.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtoms/post/$file], 0, [ignore], [ignore])
    8 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtoms/pre/box.xyz allatoms.xyz], 0)
    9 AT_CHECK([../../molecuilder -i allatoms.xyz -v 3 --select-all-atoms --undo -r], 0, [stdout], [stderr])
    10 AT_CHECK([file=allatoms.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtoms/pre/box.xyz], 0, [ignore], [ignore])
    11 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtoms/pre/box.xyz allatoms.xyz], 0)
    12 AT_CHECK([../../molecuilder -i allatoms.xyz -v 3 --select-all-atoms --undo --redo -r], 0, [stdout], [stderr])
    13 AT_CHECK([file=allatoms.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtoms/post/$file], 0, [ignore], [ignore])
     5
     6file=allatoms.xyz
     7AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtoms/pre/box.xyz $file], 0)
     8AT_CHECK([chmod u+w $file], 0)
     9AT_CHECK([../../molecuilder -i $file -v 3 --select-all-atoms -r], 0, [stdout], [stderr])
     10AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtoms/post/allatoms.xyz], 0, [ignore], [ignore])
     11
     12file=allatoms.xyz
     13AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtoms/pre/box.xyz $file], 0)
     14AT_CHECK([chmod u+w $file], 0)
     15AT_CHECK([../../molecuilder -i $file -v 3 --select-all-atoms --undo -r], 0, [stdout], [stderr])
     16AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtoms/post/box.xyz], 0, [ignore], [ignore])
     17
     18file=allatoms.xyz
     19AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtoms/pre/box.xyz $file], 0)
     20AT_CHECK([chmod u+w $file], 0)
     21AT_CHECK([../../molecuilder -i $file -v 3 --select-all-atoms --undo --redo -r], 0, [stdout], [stderr])
     22AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtoms/post/allatoms.xyz], 0, [ignore], [ignore])
     23
    1424AT_CLEANUP
     25
    1526
    1627AT_SETUP([Unselection - All Atoms])
    1728AT_KEYWORDS([selection])
     29
     30file=box.xyz
     31AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtoms/pre/box.xyz $file], 0)
     32AT_CHECK([chmod u+w $file], 0)
     33AT_CHECK([../../molecuilder -i $file -v 3 --select-atom-by-id 0 --unselect-all-atoms -r], 0, [stdout], [stderr])
     34AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtoms/post/box.xyz], 0, [ignore], [ignore])
     35
     36file=id0_missing.xyz
     37AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtoms/pre/box.xyz $file], 0)
     38AT_CHECK([chmod u+w $file], 0)
     39AT_CHECK([../../molecuilder -i $file -v 3 --select-atom-by-id 0 --unselect-all-atoms --undo -r], 0, [stdout], [stderr])
     40AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtoms/post/id0_missing.xyz], 0, [ignore], [ignore])
     41
     42file=box.xyz
    1843AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtoms/pre/box.xyz .], 0)
    19 AT_CHECK([../../molecuilder -i box.xyz -v 3 --select-atom-by-id 0 --unselect-all-atoms -r], 0, [stdout], [stderr])
    20 AT_CHECK([file=box.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtoms/pre/$file], 0, [ignore], [ignore])
    21 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtoms/pre/box.xyz id0_missing.xyz], 0)
    22 AT_CHECK([../../molecuilder -i id0_missing.xyz -v 3 --select-atom-by-id 0 --unselect-all-atoms --undo -r], 0, [stdout], [stderr])
    23 AT_CHECK([file=id0_missing.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtoms/post/$file], 0, [ignore], [ignore])
    24 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtoms/pre/box.xyz .], 0)
    25 AT_CHECK([../../molecuilder -i box.xyz -v 3 --select-atom-by-id 0 --unselect-all-atoms --undo --redo -r], 0, [stdout], [stderr])
    26 AT_CHECK([file=box.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtoms/pre/$file], 0, [ignore], [ignore])
     44AT_CHECK([chmod u+w $file], 0)
     45AT_CHECK([../../molecuilder -i $file -v 3 --select-atom-by-id 0 --unselect-all-atoms --undo --redo -r], 0, [stdout], [stderr])
     46AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtoms/post/box.xyz], 0, [ignore], [ignore])
     47
    2748AT_CLEANUP
  • tests/regression/Selection/Atoms/AllAtomsOfMolecule/testsuite-selection-all-atoms-of-molecule.at

    r61749d1 r23b0c2  
    33AT_SETUP([Selection - All atoms of selected molecules])
    44AT_KEYWORDS([selection])
     5
    56file=molecule1.xyz
    67AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/pre/test.xyz $file], 0)
     8AT_CHECK([chmod u+w $file], 0)
    79AT_CHECK([../../molecuilder -i $file -v 3 -I --select-molecule-by-id 0 --select-molecules-atoms -r], 0, [stdout], [stderr])
    8 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/post/$file], 0, [ignore], [ignore])
     10AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/post/molecule1.xyz], 0, [ignore], [ignore])
     11
     12file=molecule1.xyz
    913AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/pre/test.xyz $file], 0)
     14AT_CHECK([chmod u+w $file], 0)
    1015AT_CHECK([../../molecuilder -i $file -v 3 -I --select-molecule-by-id 0 --select-molecules-atoms --undo -r], 0, [stdout], [stderr])
    11 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/pre/test.xyz], 0, [ignore], [ignore])
     16AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/post/test.xyz], 0, [ignore], [ignore])
     17
     18file=molecule1.xyz
    1219AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/pre/test.xyz $file], 0)
     20AT_CHECK([chmod u+w $file], 0)
    1321AT_CHECK([../../molecuilder -i $file -v 3 -I --select-molecule-by-id 0 --select-molecules-atoms --undo --redo -r], 0, [stdout], [stderr])
    14 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/post/$file], 0, [ignore], [ignore])
     22AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/post/molecule1.xyz], 0, [ignore], [ignore])
     23
    1524file=molecule0.xyz
    1625AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/pre/test.xyz $file], 0)
     26AT_CHECK([chmod u+w $file], 0)
    1727AT_CHECK([../../molecuilder -i $file -v 3 -I --select-molecule-by-id 1 --select-molecules-atoms -r], 0, [stdout], [stderr])
    18 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/post/$file], 0, [ignore], [ignore])
     28AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/post/molecule0.xyz], 0, [ignore], [ignore])
     29
     30file=molecule0.xyz
    1931AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/pre/test.xyz $file], 0)
     32AT_CHECK([chmod u+w $file], 0)
    2033AT_CHECK([../../molecuilder -i $file -v 3 -I --select-molecule-by-id 1 --select-molecules-atoms --undo -r], 0, [stdout], [stderr])
    21 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/pre/test.xyz], 0, [ignore], [ignore])
     34AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/post/test.xyz], 0, [ignore], [ignore])
     35
     36file=molecule0.xyz
    2237AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/pre/test.xyz $file], 0)
     38AT_CHECK([chmod u+w $file], 0)
    2339AT_CHECK([../../molecuilder -i $file -v 3 -I --select-molecule-by-id 1 --select-molecules-atoms --undo --redo -r], 0, [stdout], [stderr])
    24 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/post/$file], 0, [ignore], [ignore])
     40AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/post/molecule0.xyz], 0, [ignore], [ignore])
     41
    2542AT_CLEANUP
     43
    2644
    2745AT_SETUP([Unselection - All atoms of selected molecules])
    2846AT_KEYWORDS([selection])
     47
    2948file=molecule0.xyz
    3049AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/pre/test.xyz $file], 0)
     50AT_CHECK([chmod u+w $file], 0)
    3151AT_CHECK([../../molecuilder -i $file -v 3 -I --select-all-atoms --select-molecule-by-id 0 --unselect-molecules-atoms -r], 0, [stdout], [stderr])
    32 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/post/$file], 0, [ignore], [ignore])
     52AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/post/molecule0.xyz], 0, [ignore], [ignore])
     53
     54file=molecule0.xyz
    3355AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/pre/test.xyz $file], 0)
     56AT_CHECK([chmod u+w $file], 0)
    3457AT_CHECK([../../molecuilder -i $file -v 3 -I --select-all-atoms --select-molecule-by-id 0 --unselect-molecules-atoms --undo -r], 0, [stdout], [stderr])
    3558AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/post/empty.xyz], 0, [ignore], [ignore])
     59
     60file=molecule0.xyz
    3661AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/pre/test.xyz $file], 0)
     62AT_CHECK([chmod u+w $file], 0)
    3763AT_CHECK([../../molecuilder -i $file -v 3 -I --select-all-atoms --select-molecule-by-id 0 --unselect-molecules-atoms --undo --redo -r], 0, [stdout], [stderr])
    38 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/post/$file], 0, [ignore], [ignore])
     64AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/post/molecule0.xyz], 0, [ignore], [ignore])
     65
    3966file=molecule1.xyz
    4067AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/pre/test.xyz $file], 0)
     68AT_CHECK([chmod u+w $file], 0)
    4169AT_CHECK([../../molecuilder -i $file -v 3 -I --select-all-atoms --select-molecule-by-id 1 --unselect-molecules-atoms -r], 0, [stdout], [stderr])
    42 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/post/$file], 0, [ignore], [ignore])
     70AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/post/molecule1.xyz], 0, [ignore], [ignore])
     71
     72file=molecule1.xyz
    4373AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/pre/test.xyz $file], 0)
     74AT_CHECK([chmod u+w $file], 0)
    4475AT_CHECK([../../molecuilder -i $file -v 3 -I --select-all-atoms --select-molecule-by-id 1 --unselect-molecules-atoms --undo -r], 0, [stdout], [stderr])
    4576AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/post/empty.xyz], 0, [ignore], [ignore])
     77
     78file=molecule1.xyz
    4679AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/pre/test.xyz $file], 0)
     80AT_CHECK([chmod u+w $file], 0)
    4781AT_CHECK([../../molecuilder -i $file -v 3 -I --select-all-atoms --select-molecule-by-id 1 --unselect-molecules-atoms --undo --redo -r], 0, [stdout], [stderr])
    48 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/post/$file], 0, [ignore], [ignore])
     82AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AllAtomsOfMolecule/post/molecule1.xyz], 0, [ignore], [ignore])
     83
    4984AT_CLEANUP
  • tests/regression/Selection/Atoms/AtomByElement/testsuite-selection-atoms-by-element.at

    r61749d1 r23b0c2  
    44AT_SETUP([Selection - All atoms with specific element by atomic number])
    55AT_KEYWORDS([selection,atom,element,atomic number])
    6 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomByElement/pre/test.xyz test-H_missing.xyz], 0)
    7 AT_CHECK([../../molecuilder -i test-H_missing.xyz -v 3 --select-atom-by-element 1 -r], 0, [stdout], [stderr])
    8 AT_CHECK([file=test-H_missing.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomByElement/post/$file], 0, [ignore], [ignore])
    9 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomByElement/pre/test.xyz test-Be_missing.xyz], 0)
    10 AT_CHECK([../../molecuilder -i test-Be_missing.xyz -v 3 --select-atom-by-element 4 -r], 0, [stdout], [stderr])
    11 AT_CHECK([file=test-Be_missing.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomByElement/post/$file], 0, [ignore], [ignore])
     6
     7file=test-H_missing.xyz
     8AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomByElement/pre/test.xyz $file], 0)
     9AT_CHECK([chmod u+w $file], 0)
     10AT_CHECK([../../molecuilder -i $file -v 3 --select-atom-by-element 1 -r], 0, [stdout], [stderr])
     11AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomByElement/post/test-H_missing.xyz], 0, [ignore], [ignore])
     12
     13file=test-Be_missing.xyz
     14AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomByElement/pre/test.xyz $file], 0)
     15AT_CHECK([chmod u+w $file], 0)
     16AT_CHECK([../../molecuilder -i $file -v 3 --select-atom-by-element 4 -r], 0, [stdout], [stderr])
     17AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomByElement/post/test-Be_missing.xyz], 0, [ignore], [ignore])
     18
    1219AT_CLEANUP
     20
    1321
    1422AT_SETUP([Selection - All atoms with specific element by symbol with Undo/Redo])
    1523AT_KEYWORDS([element,symbol])
     24
     25file=test.xyz
     26AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomByElement/pre/test.xyz $file], 0)
     27AT_CHECK([chmod u+w $file], 0)
     28AT_CHECK([../../molecuilder -i $file -v 3 --select-atom-by-element 1 --undo -r], 0, [stdout], [stderr])
     29AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomByElement/post/test.xyz], 0, [ignore], [ignore])
     30
     31file=test.xyz
    1632AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomByElement/pre/test.xyz test.xyz], 0)
    17 AT_CHECK([../../molecuilder -i test.xyz -v 3 --select-atom-by-element 1 --undo -r], 0, [stdout], [stderr])
    18 AT_CHECK([file=test.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomByElement/post/$file], 0, [ignore], [ignore])
    19 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomByElement/pre/test.xyz test.xyz], 0)
    20 AT_CHECK([../../molecuilder -i test.xyz -v 3 --select-atom-by-element 4 --undo -r], 0, [stdout], [stderr])
    21 AT_CHECK([file=test.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomByElement/post/$file], 0, [ignore], [ignore])
     33AT_CHECK([chmod u+w $file], 0)
     34AT_CHECK([../../molecuilder -i $file -v 3 --select-atom-by-element 4 --undo -r], 0, [stdout], [stderr])
     35AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomByElement/post/test.xyz], 0, [ignore], [ignore])
     36
     37file=test-H_missing.xyz
    2238AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomByElement/pre/test.xyz test-H_missing.xyz], 0)
    23 AT_CHECK([../../molecuilder -i test-H_missing.xyz -v 3 --select-atom-by-element 1 --undo --redo -r], 0, [stdout], [stderr])
    24 AT_CHECK([file=test-H_missing.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomByElement/post/$file], 0, [ignore], [ignore])
     39AT_CHECK([chmod u+w $file], 0)
     40AT_CHECK([../../molecuilder -i $file -v 3 --select-atom-by-element 1 --undo --redo -r], 0, [stdout], [stderr])
     41AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomByElement/post/test-H_missing.xyz], 0, [ignore], [ignore])
     42
     43file=test-Be_missing.xyz
    2544AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomByElement/pre/test.xyz test-Be_missing.xyz], 0)
    26 AT_CHECK([../../molecuilder -i test-Be_missing.xyz -v 3 --select-atom-by-element 4 --undo --redo -r], 0, [stdout], [stderr])
    27 AT_CHECK([file=test-Be_missing.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomByElement/post/$file], 0, [ignore], [ignore])
     45AT_CHECK([chmod u+w $file], 0)
     46AT_CHECK([../../molecuilder -i $file -v 3 --select-atom-by-element 4 --undo --redo -r], 0, [stdout], [stderr])
     47AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomByElement/post/test-Be_missing.xyz], 0, [ignore], [ignore])
     48
    2849AT_CLEANUP
  • tests/regression/Selection/Atoms/AtomById/testsuite-selection-atom-by-id.at

    r61749d1 r23b0c2  
    99  # normal
    1010  AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomById/pre/test.xyz $file])
     11  AT_CHECK([chmod u+w $file], 0)
    1112  AT_CHECK([../../molecuilder -i $file -v 3 --select-atom-by-id ${i} -r], [], [ignore], [ignore])
    1213  AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomById/post/$file])
    1314  # normal
    1415  AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomById/pre/test.xyz $file])
     16  AT_CHECK([chmod u+w $file], 0)
    1517  AT_CHECK([../../molecuilder -i $file -v 3 --select-atom-by-id ${i} --undo -r], [], [ignore], [ignore])
    1618  AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomById/pre/test.xyz])
    1719  # redo
    1820  AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomById/pre/test.xyz $file])
     21  AT_CHECK([chmod u+w $file], 0)
    1922  AT_CHECK([../../molecuilder -i $file -v 3 --select-atom-by-id ${i} --undo --redo -r], [], [ignore], [ignore])
    2023  AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomById/post/$file])
     
    3134  # normal
    3235  AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomById/pre/test.xyz $file])
     36  AT_CHECK([chmod u+w $file], 0)
    3337  AT_CHECK([../../molecuilder -i $file -v 3 --select-all-atoms --unselect-atom-by-id ${i} -r], [], [ignore], [ignore])
    3438  AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomById/post/$file])
    3539  # normal
    3640  AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomById/pre/test.xyz $file])
     41  AT_CHECK([chmod u+w $file], 0)
    3742  AT_CHECK([../../molecuilder -i $file -v 3 --select-all-atoms --unselect-atom-by-id ${i} --undo -r], [], [ignore], [ignore])
    3843  AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomById/post/empty.xyz])
    3944  # redo
    4045  AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomById/pre/test.xyz $file])
     46  AT_CHECK([chmod u+w $file], 0)
    4147  AT_CHECK([../../molecuilder -i $file -v 3 --select-all-atoms --unselect-atom-by-id ${i} --undo --redo -r], [], [ignore], [ignore])
    4248  AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomById/post/$file])
  • tests/regression/Selection/Atoms/AtomsInsideCuboid/testsuite-selection-atoms-inside-cuboid.at

    r61749d1 r23b0c2  
    33AT_SETUP([Selection - All atoms inside cuboid])
    44AT_KEYWORDS([selection,cuboid])
     5
    56file=allatomsoutsidecuboid.xyz
    67AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideCuboid/pre/box.xyz $file], 0)
     8AT_CHECK([chmod u+w $file], 0)
    79AT_CHECK([../../molecuilder -i $file -v 5 --select-atoms-inside-cuboid "10,10,10" --position "0,0,0" --angle-x 0 --angle-y 0 --angle-z 0 -r], 0, [stdout], [stderr])
    8 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideCuboid/post/$file], 0, [ignore], [ignore])
     10AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideCuboid/post/allatomsoutsidecuboid.xyz], 0, [ignore], [ignore])
     11
     12file=allatomsoutsidecuboid.xyz
    913AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideCuboid/pre/box.xyz $file], 0)
     14AT_CHECK([chmod u+w $file], 0)
    1015AT_CHECK([../../molecuilder -i $file -v 5 --select-atoms-inside-cuboid "10,10,10" --position "0,0,0" --angle-x 0 --angle-y 0 --angle-z 0  --undo -r], 0, [stdout], [stderr])
    1116AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideCuboid/pre/box.xyz], 0, [ignore], [ignore])
     17
     18file=allatomsoutsidecuboid.xyz
    1219AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideCuboid/pre/box.xyz $file], 0)
     20AT_CHECK([chmod u+w $file], 0)
    1321AT_CHECK([../../molecuilder -i $file -v 5 --select-atoms-inside-cuboid "10,10,10" --position "0,0,0" --angle-x 0 --angle-y 0 --angle-z 0  --undo --redo -r], 0, [stdout], [stderr])
    14 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideCuboid/post/$file], 0, [ignore], [ignore])
     22AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideCuboid/post/allatomsoutsidecuboid.xyz], 0, [ignore], [ignore])
     23
    1524# check size of cuboid
    1625AT_SKIP_IF([! awk '' < /dev/null])  # check whether awk is there
     
    2130AT_CHECK([cat < $file | awk -F" " '{ if (($2 < 10) && ($3 < 10) && ($4 < 10)) print $1,$2,$3,$4;}' | wc -l], 0, [stdout], [ignore])
    2231AT_CHECK([fgrep "1" stdout], 0, [ignore], [ignore])
     32
    2333AT_CLEANUP
     34
    2435
    2536AT_SETUP([Selection - All atoms inside cuboid with defaults])
    2637AT_KEYWORDS([selection,cuboid])
     38
    2739file=allatomsoutsidecuboid.xyz
    2840AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideCuboid/pre/box.xyz $file], 0)
     41AT_CHECK([chmod u+w $file], 0)
    2942AT_CHECK([../../molecuilder -i $file -v 5 --select-atoms-inside-cuboid "10,10,10" --position "0,0,0" -r], 0, [stdout], [stderr])
    30 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideCuboid/post/$file], 0, [ignore], [ignore])
     43AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideCuboid/post/allatomsoutsidecuboid.xyz], 0, [ignore], [ignore])
     44
     45file=allatomsoutsidecuboid.xyz
    3146AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideCuboid/pre/box.xyz $file], 0)
     47AT_CHECK([chmod u+w $file], 0)
    3248AT_CHECK([../../molecuilder -i $file -v 5 --select-atoms-inside-cuboid "10,10,10" --position "0,0,0" --undo -r], 0, [stdout], [stderr])
    3349AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideCuboid/pre/box.xyz], 0, [ignore], [ignore])
     50
     51file=allatomsoutsidecuboid.xyz
    3452AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideCuboid/pre/box.xyz $file], 0)
     53AT_CHECK([chmod u+w $file], 0)
    3554AT_CHECK([../../molecuilder -i $file -v 5 --select-atoms-inside-cuboid "10,10,10" --position "0,0,0" --undo --redo -r], 0, [stdout], [stderr])
    36 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideCuboid/post/$file], 0, [ignore], [ignore])
     55AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideCuboid/post/allatomsoutsidecuboid.xyz], 0, [ignore], [ignore])
     56
    3757# check size of cuboid
    3858AT_SKIP_IF([! awk '' < /dev/null])  # check whether awk is there
     
    4363AT_CHECK([cat < $file | awk -F" " '{ if (($2 < 10) && ($3 < 10) && ($4 < 10)) print $1,$2,$3,$4;}' | wc -l], 0, [stdout], [ignore])
    4464AT_CHECK([fgrep "1" stdout], 0, [ignore], [ignore])
     65
    4566AT_CLEANUP
     67
    4668
    4769AT_SETUP([Unselection - All atoms inside cuboid])
    4870AT_KEYWORDS([selection,cuboid])
     71
    4972file=allatomsinsidecuboid.xyz
    5073AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideCuboid/pre/box.xyz $file], 0)
     74AT_CHECK([chmod u+w $file], 0)
    5175AT_CHECK([../../molecuilder -i $file -v 5 --select-all-atoms --unselect-atoms-inside-cuboid "10,10,10" --position "0,0,0" --angle-x 0 --angle-y 0 --angle-z 0 -r], 0, [stdout], [stderr])
    52 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideCuboid/post/$file], 0, [ignore], [ignore])
     76AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideCuboid/post/allatomsinsidecuboid.xyz], 0, [ignore], [ignore])
     77
     78file=allatomsinsidecuboid.xyz
    5379AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideCuboid/pre/box.xyz $file], 0)
     80AT_CHECK([chmod u+w $file], 0)
    5481AT_CHECK([../../molecuilder -i $file -v 5 --select-all-atoms --unselect-atoms-inside-cuboid "10,10,10" --position "0,0,0" --angle-x 0 --angle-y 0 --angle-z 0  --undo -r], 0, [stdout], [stderr])
    5582AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideCuboid/post/empty.xyz], 0, [ignore], [ignore])
     83
     84file=allatomsinsidecuboid.xyz
    5685AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideCuboid/pre/box.xyz $file], 0)
     86AT_CHECK([chmod u+w $file], 0)
    5787AT_CHECK([../../molecuilder -i $file -v 5 --select-all-atoms --unselect-atoms-inside-cuboid "10,10,10" --position "0,0,0" --angle-x 0 --angle-y 0 --angle-z 0  --undo --redo -r], 0, [stdout], [stderr])
    58 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideCuboid/post/$file], 0, [ignore], [ignore])
     88AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideCuboid/post/allatomsinsidecuboid.xyz], 0, [ignore], [ignore])
     89
    5990# check size of cuboid
    6091AT_SKIP_IF([! awk '' < /dev/null])  # check whether awk is there
     
    6596AT_CHECK([cat < $file | awk -F" " '{ if (($2 > 10) && ($3 > 10) && ($4 > 10)) print $1,$2,$3,$4;}' | wc -l], 0, [stdout], [ignore])
    6697AT_CHECK([fgrep "1" stdout], 0, [ignore], [ignore])
     98
    6799AT_CLEANUP
  • tests/regression/Selection/Atoms/AtomsInsideSphere/testsuite-selection-atoms-inside-sphere.at

    r61749d1 r23b0c2  
    33AT_SETUP([Selection - All atoms inside sphere])
    44AT_KEYWORDS([selection,sphere])
     5
    56file=allatomsoutsidesphere.xyz
    67AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideSphere/pre/box.xyz $file], 0)
     8AT_CHECK([chmod u+w $file], 0)
    79AT_CHECK([../../molecuilder -i $file -v 5 --select-atoms-inside-sphere 10 --position "10,10,10" -r], 0, [stdout], [stderr])
    8 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideSphere/post/$file], 0, [ignore], [ignore])
     10AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideSphere/post/allatomsoutsidesphere.xyz], 0, [ignore], [ignore])
     11
     12file=allatomsoutsidesphere.xyz
    913AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideSphere/pre/box.xyz $file], 0)
     14AT_CHECK([chmod u+w $file], 0)
    1015AT_CHECK([../../molecuilder -i $file -v 5 --select-atoms-inside-sphere 10 --position "10,10,10" --undo -r], 0, [stdout], [stderr])
    1116AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideSphere/pre/box.xyz], 0, [ignore], [ignore])
     17
     18file=allatomsoutsidesphere.xyz
    1219AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideSphere/pre/box.xyz $file], 0)
     20AT_CHECK([chmod u+w $file], 0)
    1321AT_CHECK([../../molecuilder -i $file -v 5 --select-atoms-inside-sphere 10 --position "10,10,10" --undo --redo -r], 0, [stdout], [stderr])
    14 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideSphere/post/$file], 0, [ignore], [ignore])
     22AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideSphere/post/allatomsoutsidesphere.xyz], 0, [ignore], [ignore])
     23
    1524# check size of sphere
    1625AT_SKIP_IF([! awk '' < /dev/null])  # check whether awk is there
     
    2130AT_CHECK([cat < $file | awk -F" " '{ if (($2-10)*($2-10)+($3-10)*($3-10)+($4-10)*($4-10) < 100) print $1,$2,$3,$4;}' | wc -l], 0, [stdout], [ignore])
    2231AT_CHECK([fgrep "0" stdout], 0, [ignore], [ignore])
     32
    2333AT_CLEANUP
     34
     35
    2436
    2537AT_SETUP([Unselection - All atoms inside sphere])
    2638AT_KEYWORDS([selection,sphere])
     39
    2740file=allatomsinsidesphere.xyz
    2841AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideSphere/pre/box.xyz $file], 0)
     42AT_CHECK([chmod u+w $file], 0)
    2943AT_CHECK([../../molecuilder -i $file -v 5 --select-all-atoms --unselect-atoms-inside-sphere 10 --position "10,10,10" -r], 0, [stdout], [stderr])
    30 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideSphere/post/$file], 0, [ignore], [ignore])
     44AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideSphere/post/allatomsinsidesphere.xyz], 0, [ignore], [ignore])
     45
     46file=allatomsinsidesphere.xyz
    3147AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideSphere/pre/box.xyz $file], 0)
     48AT_CHECK([chmod u+w $file], 0)
    3249AT_CHECK([../../molecuilder -i $file -v 5 --select-all-atoms --unselect-atoms-inside-sphere 10 --position "10,10,10" --undo -r], 0, [stdout], [stderr])
    3350AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideSphere/post/empty.xyz], 0, [ignore], [ignore])
     51
     52file=allatomsinsidesphere.xyz
    3453AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideSphere/pre/box.xyz $file], 0)
     54AT_CHECK([chmod u+w $file], 0)
    3555AT_CHECK([../../molecuilder -i $file -v 5 --select-all-atoms --unselect-atoms-inside-sphere 10 --position "10,10,10" --undo --redo -r], 0, [stdout], [stderr])
    36 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideSphere/post/$file], 0, [ignore], [ignore])
     56AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/AtomsInsideSphere/post/allatomsinsidesphere.xyz], 0, [ignore], [ignore])
     57
    3758# check size of sphere
    3859AT_SKIP_IF([! awk '' < /dev/null])  # check whether cat is there
     
    4364AT_CHECK([cat < $file | awk -F" " '{ if (($2-10)*($2-10)+($3-10)*($3-10)+($4-10)*($4-10) < 100) print $1,$2,$3,$4;}' | wc -l], 0, [stdout], [ignore])
    4465AT_CHECK([fgrep "524" stdout], 0, [ignore], [ignore])
     66
    4567AT_CLEANUP
    4668
  • tests/regression/Selection/Atoms/ClearAtoms/testsuite-selection-clear-atoms.at

    r61749d1 r23b0c2  
    33AT_SETUP([Unselection - clear atom selection])
    44AT_KEYWORDS([selection,clear])
    5 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/ClearAtoms/pre/box.xyz .], 0)
    6 AT_CHECK([../../molecuilder -i box.xyz -v 3 --select-atom-by-id 0 --unselect-all-atoms -r], 0, [stdout], [stderr])
    7 AT_CHECK([file=box.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/ClearAtoms/pre/$file], 0, [ignore], [ignore])
    8 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/ClearAtoms/pre/box.xyz id0_missing.xyz], 0)
    9 AT_CHECK([../../molecuilder -i id0_missing.xyz -v 3 --select-atom-by-id 0 --unselect-all-atoms --undo -r], 0, [stdout], [stderr])
    10 AT_CHECK([file=id0_missing.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/ClearAtoms/post/$file], 0, [ignore], [ignore])
    11 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/ClearAtoms/pre/box.xyz .], 0)
    12 AT_CHECK([../../molecuilder -i box.xyz -v 3 --select-atom-by-id 0 --unselect-all-atoms --undo --redo -r], 0, [stdout], [stderr])
    13 AT_CHECK([file=box.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/ClearAtoms/pre/$file], 0, [ignore], [ignore])
     5
     6file=box.xyz
     7AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/ClearAtoms/pre/box.xyz $file], 0)
     8AT_CHECK([chmod u+w $file], 0)
     9AT_CHECK([../../molecuilder -i $file -v 3 --select-atom-by-id 0 --unselect-all-atoms -r], 0, [stdout], [stderr])
     10AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/ClearAtoms/pre/box.xyz], 0, [ignore], [ignore])
     11
     12file=id0_missing.xyz
     13AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/ClearAtoms/pre/box.xyz $file], 0)
     14AT_CHECK([chmod u+w $file], 0)
     15AT_CHECK([../../molecuilder -i $file -v 3 --select-atom-by-id 0 --unselect-all-atoms --undo -r], 0, [stdout], [stderr])
     16AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/ClearAtoms/post/id0_missing.xyz], 0, [ignore], [ignore])
     17
     18file=box.xyz
     19AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/ClearAtoms/pre/box.xyz $file], 0)
     20AT_CHECK([chmod u+w $file], 0)
     21AT_CHECK([../../molecuilder -i $file -v 3 --select-atom-by-id 0 --unselect-all-atoms --undo --redo -r], 0, [stdout], [stderr])
     22AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/ClearAtoms/pre/box.xyz], 0, [ignore], [ignore])
     23
    1424AT_CLEANUP
Note: See TracChangeset for help on using the changeset viewer.