Ignore:
Timestamp:
Apr 11, 2018, 6:30:10 AM (7 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.6.1, ChemicalSpaceEvaluator, PythonUI_with_named_parameters, TremoloParser_IncreasedPrecision
Children:
fba720
Parents:
e7ad08
git-author:
Frederik Heber <frederik.heber@…> (09/06/17 14:04:23)
git-committer:
Frederik Heber <frederik.heber@…> (04/11/18 06:30:10)
Message:

TESTFIX: Changes to test scripts because now keyword arguments are used in store-session.

  • TESTS: Removed XFAIL from failing tests again.
  • FIX: Removed doubled disclaimer in python tests.
Location:
tests/Python/AllActions
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • tests/Python/AllActions/moltest.py

    re7ad08 rcd91bd  
    3939def ParseParameters(docstring):
    4040    result = []
    41     params = re.findall(r'\(str\)([-a-zA-Z]*)', docstring)
     41    params = re.findall(r'\(str\)([-_a-zA-Z]*)', docstring)
    4242
    4343    for param in params:
  • tests/Python/AllActions/moltest_check.py

    re7ad08 rcd91bd  
    2424def CheckParameters(docstring):
    2525    result = 0
    26     params = re.findall(r'\(str\)([-a-zA-Z]*)', docstring)
     26    params = re.findall(r'\(str\)([-_a-zA-Z]*)', docstring)
    2727
    2828    for param in params:
  • tests/Python/AllActions/options.dat

    re7ad08 rcd91bd  
    11#key    value
    2 add-atom        "1"
    3 add-empty-boundary      "5,5,5"
    4 Alignment-Axis  "0,0,1"
    5 angle-x "0."
    6 angle-x "0"
    7 angle-y "0."
    8 angle-y "0"
    9 angle-z "0 "
    10 angle-z "0."
    11 angle-z "0"
     2add_atom        "1"
     3add_empty_boundary      "5,5,5"
     4Alignment_Axis  "0,0,1"
     5angle_x "0."
     6angle_x "0"
     7angle_y "0."
     8angle_y "0"
     9angle_z "0 "
     10angle_z "0."
     11angle_z "0"
    1212axis    "0 0 1"
    1313axis    "0 1 0"
    1414axis    "1 2 1"
    15 bin-end "10"
    16 bin-end "20"
    17 bin-end "359"
    18 bin-end "359.5"
    19 bin-end "5"
    20 bin-output-file "bin_output-10.csv"
    21 bin-output-file "bin_output-20.csv"
    22 bin-output-file "bin_output-5.csv"
    23 bin-output-file "bin_output.csv"
    24 bin-output-file "emptybox_histogram.dat"
    25 bin-output-file "hydrogenbox_histogram.dat"
    26 bin-output-file "waterbox_histogram.dat"
    27 bin-output-file "waterbox-mirrored_histogram.dat"
    28 bin-start       "0"
    29 bin-start       "-0.5"
    30 bin-start       "10"
    31 bin-start       "5"
    32 bin-width       "1."
    33 bond-degree     "1"
    34 bond-file       "bond.dat"
     15bin_end "10"
     16bin_end "20"
     17bin_end "359"
     18bin_end "359.5"
     19bin_end "5"
     20bin_output_file "bin_output-10.csv"
     21bin_output_file "bin_output-20.csv"
     22bin_output_file "bin_output-5.csv"
     23bin_output_file "bin_output.csv"
     24bin_output_file "emptybox_histogram.dat"
     25bin_output_file "hydrogenbox_histogram.dat"
     26bin_output_file "waterbox_histogram.dat"
     27bin_output_file "waterbox-mirrored_histogram.dat"
     28bin_start       "0"
     29bin_start       "-0.5"
     30bin_start       "10"
     31bin_start       "5"
     32bin_width       "1."
     33bond_degree     "1"
     34bond_file       "bond.dat"
    3535bondside        "1"
    36 bond-table      "table.dat"
    37 calculate-bounding-box  ""
    38 calculate-molar-mass    ""
     36bond_table      "table.dat"
     37calculate_bounding_box  ""
     38calculate_molar_mass    ""
    3939center  "10. 10. 10."
    40 center-in-box   "10 0 0 10 0 10"
    41 change-bond-angle       "100."
    42 change-box      "10 0 0 10 0 10"
    43 change-element  "1"
    44 change-molname  "water"
    45 convex-envelope "50."
    46 convex-file     "convexfile"
     40center_in_box   "10 0 0 10 0 10"
     41change_bond_angle       "100."
     42change_box      "10 0 0 10 0 10"
     43change_element  "1"
     44change_molname  "water"
     45convex_envelope "50."
     46convex_file     "convexfile"
    4747coordinates     "1,0,0"
    48 copy-molecule   "0"
     48copy_molecule   "0"
    4949count   "12"
    50 create-micelle  "200"
    51 damping-factor  "0.5"
    52 default-molname "molname"
     50create_micelle  "200"
     51damping_factor  "0.5"
     52default_molname "molname"
    5353deltat  "0.01"
    5454density "1.0"
    55 depth-first-search      "2."
    56 dipole-angular-correlation      "H2O"
     55depth_first_search      "2."
     56dipole_angular_correlation      "H2O"
    5757distance        "1.55"
    5858distances       "3.1 3.1 3.1"
    5959distances       "3.1 3.1 3.1"
    60 distance-to-boundary    "1."
    61 distance-to-molecule    "1.5"
    62 distance-to-molecule    "2.1"
    63 distance-to-vector      "named_vector"
    64 domain-position "0.  0. 0."
    65 domain-position "0 0 0"
    66 domain-position "10. 10. 10."
     60distance_to_boundary    "1."
     61distance_to_molecule    "1.5"
     62distance_to_molecule    "2.1"
     63distance_to_vector      "named_vector"
     64domain_position "0.  0. 0."
     65domain_position "0 0 0"
     66domain_position "10. 10. 10."
    6767DoCyclesFull    "0"
    6868DoLongrange     "0"
     
    7373DoSmearElectronicCharges        "0"
    7474DoValenceOnly   "0"
    75 element-db      "./"
     75element_db      "./"
    7676elements        "1"
    7777elements        "1 8"
    78 end-step        "1"
    79 enforce-net-zero-charge "0"
     78end_step        "1"
     79enforce_net_zero_charge "0"
    8080ExcludeHydrogen "1"
    8181fastparsing     "1"
    8282filename        "test.exttypes"
    83 fill-molecule   "filler.xyz"
    84 fill-void       "hydrogen.xyz"
    85 fill-void       "water.data"
    86 fill-void       "water.xyz"
    87 forces-file     "test.forces"
    88 fragment-charges        "1 1"
    89 fragment-executable     "mpqc"
    90 fragment-jobs   "Job00.in"
    91 fragment-molecule       "./"
    92 fragment-path   "test/"
    93 fragment-prefix "BondFragment"
    94 grid-level      "5"
     83fill_molecule   "filler.xyz"
     84fill_void       "hydrogen.xyz"
     85fill_void       "water.data"
     86fill_void       "water.xyz"
     87forces_file     "test.forces"
     88fragment_charges        "1 1"
     89fragment_executable     "mpqc"
     90fragment_jobs   "Job00.in"
     91fragment_molecule       "./"
     92fragment_path   "test/"
     93fragment_prefix "BondFragment"
     94grid_level      "5"
    9595help    "help"
    96 id-mapping      "1"
     96id_mapping      "1"
    9797input   "test.data"
    98 input-to-vector "named_vector"
    99 inter-order     "2"
    100 interpolation-degree    "5"
    101 interpolation-steps     "9"
    102 keep-bondgraph  "1"
    103 keep-fixed-CenterOfMass "0"
     98input_to_vector "named_vector"
     99inter_order     "2"
     100interpolation_degree    "5"
     101interpolation_steps     "9"
     102keep_bondgraph  "1"
     103keep_fixed_CenterOfMass "0"
    104104load    "test.data"
    105 load-session    "test.py"
     105load_session    "test.py"
    106106MaxDistance     "-1"
    107 max-distance    "0"
    108 max-meshwidth   "0.3"
    109 mesh-offset     "0.5,0.5,0.5"
    110 mesh-size       "10,10,10"
    111 min-distance    "1."
    112 mirror-atoms    "1.,1.,1."
    113 molecule-by-id  "0"
    114 near-field-cells        "3"
    115 nonconvex-envelope      "25"
    116 nonconvex-file  "NonConvexEnvelope"
    117 nonconvex-file  "nonconvexfile"
     107max_distance    "0"
     108max_meshwidth   "0.3"
     109mesh_offset     "0.5,0.5,0.5"
     110mesh_size       "10,10,10"
     111min_distance    "1."
     112mirror_atoms    "1.,1.,1."
     113molecule_by_id  "0"
     114near_field_cells        "3"
     115nonconvex_envelope      "25"
     116nonconvex_file  "NonConvexEnvelope"
     117nonconvex_file  "nonconvexfile"
    118118offset  "0"
    119119offset  "1"
    120120order   "2"
    121 output-as       "store.conf"
    122 output-as       "store.data"
    123 output-as       "store.pdb"
    124 output-as       "store.xyz"
    125 output-as       "test.in"
    126 output-every-step       "1"
    127 output-file     "emptybox_values.dat"
    128 output-file     "hydrogenbox_values.dat"
    129 output-file     "output-10.csv"
    130 output-file     "output-20.csv"
    131 output-file     "output-5.csv"
    132 output-file     "output.csv"
    133 output-file     "waterbox-mirrored_values.dat"
    134 output-file     "waterbox_values.dat"
    135 output-types    "xyz"
    136 output-types    "xyz mpqc"
    137 parse-atom-fragments    "atomfragments.dat"
    138 parse-fragment-results  "results.dat"
    139 parse-homologies        "homology.dat"
    140 parse-particle-parameters       "water.particles"
    141 parse-potentials        "water.potentials"
    142 parse-state-files       "1"
    143 parse-tremolo-potentials        "argon.potentials"
    144 parse-tremolo-potentials        "tensid.potentials"
    145 parser-parameters       "mpqc"
    146 parser-parameters       "psi3"
     121output_as       "store.conf"
     122output_as       "store.data"
     123output_as       "store.pdb"
     124output_as       "store.xyz"
     125output_as       "test.in"
     126output_every_step       "1"
     127output_file     "emptybox_values.dat"
     128output_file     "hydrogenbox_values.dat"
     129output_file     "output-10.csv"
     130output_file     "output-20.csv"
     131output_file     "output-5.csv"
     132output_file     "output.csv"
     133output_file     "waterbox-mirrored_values.dat"
     134output_file     "waterbox_values.dat"
     135output_types    "xyz"
     136output_types    "xyz mpqc"
     137parse_atom_fragments    "atomfragments.dat"
     138parse_fragment_results  "results.dat"
     139parse_homologies        "homology.dat"
     140parse_particle_parameters       "water.particles"
     141parse_potentials        "water.potentials"
     142parse_state_files       "1"
     143parse_tremolo_potentials        "argon.potentials"
     144parse_tremolo_potentials        "tensid.potentials"
     145parser_parameters       "mpqc"
     146parser_parameters       "psi3"
    147147periodic        "0"
    148 plane-offset    "5."
    149 plane-to-vector "named_vector"
     148plane_offset    "5."
     149plane_to_vector "named_vector"
    150150position        "0 0 0"
    151151position        "0 0 1"
     
    157157position        "7.283585982 3.275186040 3.535886037"
    158158position        "9.78 2.64 2.64"
    159 position-to-vector      "named_vector"
    160 potential-charges       "1 1"
    161 potential-type  "morse"
     159position_to_vector      "named_vector"
     160potential_charges       "1 1"
     161potential_type  "morse"
    162162radius  "20."
    163 random-atom-displacement        "0."
    164 random-molecule-displacement    "0."
    165 random-number-distribution-parameters   "max=20;"
    166 random-number-engine-parameters "seed=2;"
    167 random-perturbation     "0.1"
    168 remove-geometry "named_vector"
    169 repeat-box      "1 1 1"
     163random_atom_displacement        "0."
     164random_molecule_displacement    "0."
     165random_number_distribution_parameters   "max=20;"
     166random_number_engine_parameters "seed=2;"
     167random_perturbation     "0.1"
     168remove_geometry "named_vector"
     169repeat_box      "1 1 1"
    170170reset   1
    171171reverse "0"
    172 rotate-around-bond      "90."
    173 rotate-around-origin    "180."
    174 rotate-around-origin    "20."
    175 rotate-around-origin    "360."
    176 rotate-around-origin    "90."
    177 rotate-around-self      "180."
    178 rotate-around-self      "180"
    179 rotate-around-self      "20."
    180 rotate-around-self      "360."
    181 rotate-around-self      "90."
    182 rotate-to-principal-axis-system "0,0,1"
    183 save-adjacency  "test.adj"
    184 save-bonds      "test.bond"
    185 save-atom-fragments     "atomfragments.dat"
    186 save-fragment-results   "results.dat"
    187 save-homologies "homology.dat"
    188 save-particle-parameters        "water.particles"
    189 save-potentials "water.potentials"
    190 save-selected-atoms     "testsave.xyz"
    191 save-selected-atoms-as-exttypes "test.exttypes"
    192 save-selected-molecules "testsave.xyz"
    193 save-temperature        "test.ekin"
    194 scale-box       "0.5 1. 0.9"
    195 select-atom-by-element  "1"
    196 select-atom-by-element  "4"
    197 select-atom-by-id       "0"
    198 select-atom-by-name     "H1"
    199 select-atom-by-order    "1"
    200 select-atoms-inside-cuboid      "10 10 10"
    201 select-atoms-inside-cuboid      "2 2 2"
    202 select-atoms-inside-sphere      "0.2"
    203 select-atoms-inside-sphere      "10"
    204 select-atoms-inside-sphere      "7."
    205 select-molecule-by-id   "0"
    206 select-molecule-by-id   "1"
    207 select-molecule-by-id   "4"
    208 select-molecule-by-order        "-1"
    209 select-molecule-by-order        "1"
    210 select-molecule-by-order        "-2"
    211 select-molecule-by-order        "2"
    212 select-molecules-by-formula     "C2H5(OH)"
    213 select-molecules-by-formula     "C6H6"
    214 select-molecules-by-formula     "H2O"
    215 select-molecules-by-name        "water"
    216 select-shape-by-name    "sphere2"
    217 server-address  "127.0.0.1"
    218 server-port     "1026"
    219 session-type    "cli"
    220 set-bond-degree "1"
    221 set-boundary-conditions "Wrap, Wrap, Wrap"
    222 set-max-iterations      "10"
    223 set-parser-parameters   "basis = 4-31G"
    224 set-parser-parameters   "basis = 4-31G;maxiter=499;theory=CLKS;"
    225 set-parser-parameters   "maxiter = 499"
    226 set-parser-parameters   "theory=CLKS"
    227 set-parser-parameters   "wfn=scf"
    228 set-parser-parameters   "ref=uhf"
    229 set-output      "tremolo"
    230 set-random-number-distribution  "uniform_int"
    231 set-random-number-engine        "lagged_fibonacci607"
    232 set-threshold   "1e-6"
    233 set-tremolo-atomdata    "ATOMDATA type id x=3"
    234 set-world-time  "10"
    235 shape-name      "sphere1"
    236 shape-op        "AND"
    237 shape-type      "sphere"
     172rotate_around_bond      "90."
     173rotate_around_origin    "180."
     174rotate_around_origin    "20."
     175rotate_around_origin    "360."
     176rotate_around_origin    "90."
     177rotate_around_self      "180."
     178rotate_around_self      "180"
     179rotate_around_self      "20."
     180rotate_around_self      "360."
     181rotate_around_self      "90."
     182rotate_to_principal_axis_system "0,0,1"
     183save_adjacency  "test.adj"
     184save_bonds      "test.bond"
     185save_atom_fragments     "atomfragments.dat"
     186save_fragment_results   "results.dat"
     187save_homologies "homology.dat"
     188save_particle_parameters        "water.particles"
     189save_potentials "water.potentials"
     190save_selected_atoms     "testsave.xyz"
     191save_selected_atoms_as_exttypes "test.exttypes"
     192save_selected_molecules "testsave.xyz"
     193save_temperature        "test.ekin"
     194scale_box       "0.5 1. 0.9"
     195select_atom_by_element  "1"
     196select_atom_by_element  "4"
     197select_atom_by_id       "0"
     198select_atom_by_name     "H1"
     199select_atom_by_order    "1"
     200select_atoms_inside_cuboid      "10 10 10"
     201select_atoms_inside_cuboid      "2 2 2"
     202select_atoms_inside_sphere      "0.2"
     203select_atoms_inside_sphere      "10"
     204select_atoms_inside_sphere      "7."
     205select_molecule_by_id   "0"
     206select_molecule_by_id   "1"
     207select_molecule_by_id   "4"
     208select_molecule_by_order        "-1"
     209select_molecule_by_order        "1"
     210select_molecule_by_order        "-2"
     211select_molecule_by_order        "2"
     212select_molecules_by_formula     "C2H5(OH)"
     213select_molecules_by_formula     "C6H6"
     214select_molecules_by_formula     "H2O"
     215select_molecules_by_name        "water"
     216select_shape_by_name    "sphere2"
     217server_address  "127.0.0.1"
     218server_port     "1026"
     219session_type    "cli"
     220set_bond_degree "1"
     221set_boundary_conditions "Wrap, Wrap, Wrap"
     222set_max_iterations      "10"
     223set_parser_parameters   "basis = 4-31G"
     224set_parser_parameters   "basis = 4-31G;maxiter=499;theory=CLKS;"
     225set_parser_parameters   "maxiter = 499"
     226set_parser_parameters   "theory=CLKS"
     227set_parser_parameters   "wfn=scf"
     228set_parser_parameters   "ref=uhf"
     229set_output      "tremolo"
     230set_random_number_distribution  "uniform_int"
     231set_random_number_engine        "lagged_fibonacci607"
     232set_threshold   "1e-6"
     233set_tremolo_atomdata    "ATOMDATA type id x=3"
     234set_world_time  "10"
     235shape_name      "sphere1"
     236shape_op        "AND"
     237shape_type      "sphere"
    238238skiplines       "1"
    239239skiplines       "2"
    240 start-step      "0"
     240start_step      "0"
    241241steps   "5"
    242 step-world-time "1"
    243 store-grids     "0"
    244 store-saturated-fragment        "BondFragment"
    245 store-session   "test.sh"
    246 stretch-bond    "1.5"
     242step_world_time "1"
     243store_grids     "0"
     244store_saturated_fragment        "BondFragment"
     245store_session   "test.sh"
     246stretch_bond    "1.5"
    247247stretch "1. 1. 1."
    248 stretch-shapes  "1. 2. 3."
    249 take-best-of            "5"
    250 tesselation-radius      "5."
    251 time-step-zero  "0"
    252 training-file   "training.dat"
    253 translate-atoms "1. 0. 0."
    254 translate-shapes        "1. 2. 3."
     248stretch_shapes  "1. 2. 3."
     249take_best_of            "5"
     250tesselation_radius      "5."
     251time_step_zero  "0"
     252training_file   "training.dat"
     253translate_atoms "1. 0. 0."
     254translate_shapes        "1. 2. 3."
    255255translation     "0. 0. 0."
    256 unselect-atom-by-element        "1"
    257 unselect-atom-by-element        "4"
    258 unselect-atom-by-id     "0"
    259 unselect-atom-by-name   "H1"
    260 unselect-atom-by-order  "1"
    261 unselect-atoms-inside-cuboid    "10 10 10"
    262 unselect-atoms-inside-cuboid    "2 2 2"
    263 unselect-atoms-inside-sphere    "10"
    264 unselect-atoms-inside-sphere    "7."
    265 unselect-molecule-by-id "0"
    266 unselect-molecule-by-id "4"
    267 unselect-molecule-by-order      "-1"
    268 unselect-molecule-by-order      "1"
    269 unselect-molecule-by-order      "-2"
    270 unselect-molecule-by-order      "2"
    271 unselect-molecules-by-formula   "C2H5(OH)"
    272 unselect-molecules-by-formula   "C3H8"
    273 unselect-molecules-by-formula   "C6H6"
    274 unselect-molecules-by-formula   "H2O"
    275 unselect-molecules-by-name      "water"
    276 unselect-shape-by-name  "cube42"
    277 use-bondgraph   "1"
     256unselect_atom_by_element        "1"
     257unselect_atom_by_element        "4"
     258unselect_atom_by_id     "0"
     259unselect_atom_by_name   "H1"
     260unselect_atom_by_order  "1"
     261unselect_atoms_inside_cuboid    "10 10 10"
     262unselect_atoms_inside_cuboid    "2 2 2"
     263unselect_atoms_inside_sphere    "10"
     264unselect_atoms_inside_sphere    "7."
     265unselect_molecule_by_id "0"
     266unselect_molecule_by_id "4"
     267unselect_molecule_by_order      "-1"
     268unselect_molecule_by_order      "1"
     269unselect_molecule_by_order      "-2"
     270unselect_molecule_by_order      "2"
     271unselect_molecules_by_formula   "C2H5(OH)"
     272unselect_molecules_by_formula   "C3H8"
     273unselect_molecules_by_formula   "C6H6"
     274unselect_molecules_by_formula   "H2O"
     275unselect_molecules_by_name      "water"
     276unselect_shape_by_name  "cube42"
     277use_bondgraph   "1"
    278278UseImplicitCharges      "1"
    279279verbose "3"
    280 verlet-integration      "forces.dat"
     280verlet_integration      "forces.dat"
  • tests/Python/AllActions/testsuite-python-allactions.at

    re7ad08 rcd91bd  
    1616#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1717#
    18 #
    19 #    MoleCuilder - creates and alters molecular systems
    20 #    Copyright (C) 2008-2012 University of Bonn
    21 #
    22 #    This program is free software: you can redistribute it and/or modify
    23 #    it under the terms of the GNU General Public License as published by
    24 #    the Free Software Foundation, either version 3 of the License, or
    25 #    (at your option) any later version.
    26 #
    27 #    This program is distributed in the hope that it will be useful,
    28 #    but WITHOUT ANY WARRANTY; without even the implied warranty of
    29 #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    30 #    GNU General Public License for more details.
    31 #
    32 #    You should have received a copy of the GNU General Public License
    33 #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
    3418#
    3519# AllActions
  • tests/Python/AllActions/testsuite-python-options_dat.at

    re7ad08 rcd91bd  
    1717#
    1818#
    19 #    MoleCuilder - creates and alters molecular systems
    20 #    Copyright (C) 2008-2012 University of Bonn
    21 #
    22 #    This program is free software: you can redistribute it and/or modify
    23 #    it under the terms of the GNU General Public License as published by
    24 #    the Free Software Foundation, either version 3 of the License, or
    25 #    (at your option) any later version.
    26 #
    27 #    This program is distributed in the hope that it will be useful,
    28 #    but WITHOUT ANY WARRANTY; without even the implied warranty of
    29 #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    30 #    GNU General Public License for more details.
    31 #
    32 #    You should have received a copy of the GNU General Public License
    33 #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
    3419#
    3520AT_SETUP([Python externalization - Completeness of default options])
    3621AT_KEYWORDS([python options_dat])
    37 AT_XFAIL_IF([/bin/true])
    3822m4_include(atlocal)
    3923AT_CHECK([cp -f ${abs_top_srcdir}/tests/Python/AllActions/options.dat .], 0, [ignore], [ignore])
Note: See TracChangeset for help on using the changeset viewer.