From 358b7ca7bb13b5f59e51d0f70e6877b3eb73841c Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Fri, 1 Feb 2013 15:22:32 -0500 Subject: [PATCH] Added test suite based on nosetests. Closes #27. --- tests/test_basic/geometry.xml | 8 + tests/test_basic/materials.xml | 9 + tests/test_basic/settings.xml | 16 ++ tests/test_basic/test_basic.py | 25 ++ tests/test_compile/test_compile.py | 111 +++++++ tests/test_confidence_intervals/geometry.xml | 8 + tests/test_confidence_intervals/materials.xml | 9 + tests/test_confidence_intervals/settings.xml | 18 ++ tests/test_confidence_intervals/tallies.xml | 9 + .../test_confidence_intervals.py | 28 ++ tests/test_density_atombcm/geometry.xml | 8 + tests/test_density_atombcm/materials.xml | 9 + tests/test_density_atombcm/settings.xml | 16 ++ .../test_density_atombcm.py | 22 ++ tests/test_density_atomcm3/geometry.xml | 8 + tests/test_density_atomcm3/materials.xml | 9 + tests/test_density_atomcm3/settings.xml | 16 ++ .../test_density_atomcm3.py | 22 ++ tests/test_density_kgm3/geometry.xml | 8 + tests/test_density_kgm3/materials.xml | 9 + tests/test_density_kgm3/settings.xml | 16 ++ tests/test_density_kgm3/test_density_kgm3.py | 22 ++ tests/test_density_sum/geometry.xml | 8 + tests/test_density_sum/materials.xml | 11 + tests/test_density_sum/settings.xml | 16 ++ tests/test_density_sum/test_density_sum.py | 25 ++ .../test_eigenvalue_genperbatch/geometry.xml | 8 + .../test_eigenvalue_genperbatch/materials.xml | 9 + .../test_eigenvalue_genperbatch/settings.xml | 17 ++ .../test_eigenvalue_genperbatch.py | 25 ++ .../test_eigenvalue_no_inactive/geometry.xml | 8 + .../test_eigenvalue_no_inactive/materials.xml | 9 + .../test_eigenvalue_no_inactive/settings.xml | 16 ++ .../test_eigenvalue_no_inactive.py | 25 ++ tests/test_energy_grid/geometry.xml | 8 + tests/test_energy_grid/materials.xml | 11 + tests/test_energy_grid/settings.xml | 18 ++ tests/test_energy_grid/test_energy_grid.py | 22 ++ tests/test_entropy/geometry.xml | 8 + tests/test_entropy/materials.xml | 9 + tests/test_entropy/settings.xml | 22 ++ tests/test_entropy/test_entropy.py | 25 ++ tests/test_filter_cell/geometry.xml | 185 ++++++++++++ tests/test_filter_cell/materials.xml | 272 ++++++++++++++++++ tests/test_filter_cell/settings.xml | 19 ++ tests/test_filter_cell/tallies.xml | 9 + tests/test_filter_cell/test_filter_cell.py | 28 ++ tests/test_filter_cellborn/geometry.xml | 185 ++++++++++++ tests/test_filter_cellborn/materials.xml | 272 ++++++++++++++++++ tests/test_filter_cellborn/settings.xml | 19 ++ tests/test_filter_cellborn/tallies.xml | 9 + .../test_filter_cellborn.py | 28 ++ tests/test_filter_energy/geometry.xml | 185 ++++++++++++ tests/test_filter_energy/materials.xml | 272 ++++++++++++++++++ tests/test_filter_energy/settings.xml | 19 ++ tests/test_filter_energy/tallies.xml | 9 + .../test_filter_energy/test_filter_energy.py | 28 ++ tests/test_filter_energyout/geometry.xml | 185 ++++++++++++ tests/test_filter_energyout/materials.xml | 272 ++++++++++++++++++ tests/test_filter_energyout/settings.xml | 19 ++ tests/test_filter_energyout/tallies.xml | 9 + .../test_filter_energyout.py | 28 ++ tests/test_filter_group_transfer/geometry.xml | 185 ++++++++++++ .../test_filter_group_transfer/materials.xml | 272 ++++++++++++++++++ tests/test_filter_group_transfer/settings.xml | 19 ++ tests/test_filter_group_transfer/tallies.xml | 10 + .../test_filter_group_transfer.py | 28 ++ tests/test_filter_material/geometry.xml | 185 ++++++++++++ tests/test_filter_material/materials.xml | 272 ++++++++++++++++++ tests/test_filter_material/settings.xml | 19 ++ tests/test_filter_material/tallies.xml | 9 + .../test_filter_material.py | 28 ++ tests/test_filter_mesh_2d/geometry.xml | 185 ++++++++++++ tests/test_filter_mesh_2d/materials.xml | 272 ++++++++++++++++++ tests/test_filter_mesh_2d/settings.xml | 19 ++ tests/test_filter_mesh_2d/tallies.xml | 16 ++ .../test_filter_mesh_2d.py | 28 ++ tests/test_filter_mesh_3d/geometry.xml | 185 ++++++++++++ tests/test_filter_mesh_3d/materials.xml | 272 ++++++++++++++++++ tests/test_filter_mesh_3d/settings.xml | 19 ++ tests/test_filter_mesh_3d/tallies.xml | 16 ++ .../test_filter_mesh_3d.py | 28 ++ tests/test_filter_universe/geometry.xml | 185 ++++++++++++ tests/test_filter_universe/materials.xml | 272 ++++++++++++++++++ tests/test_filter_universe/settings.xml | 19 ++ tests/test_filter_universe/tallies.xml | 9 + .../test_filter_universe.py | 28 ++ tests/test_fixed_source/geometry.xml | 8 + tests/test_fixed_source/materials.xml | 9 + tests/test_fixed_source/settings.xml | 13 + tests/test_fixed_source/test_fixed_source.py | 25 ++ tests/test_lattice/geometry.xml | 123 ++++++++ tests/test_lattice/materials.xml | 141 +++++++++ tests/test_lattice/plots.xml | 20 ++ tests/test_lattice/settings.xml | 28 ++ tests/test_lattice/test_lattice.py | 22 ++ tests/test_lattice_multiple/geometry.xml | 185 ++++++++++++ tests/test_lattice_multiple/materials.xml | 272 ++++++++++++++++++ tests/test_lattice_multiple/settings.xml | 19 ++ .../test_lattice_multiple.py | 22 ++ tests/test_output/geometry.xml | 8 + tests/test_output/materials.xml | 9 + tests/test_output/settings.xml | 18 ++ tests/test_output/test_output.py | 32 +++ tests/test_plot_background/geometry.xml | 8 + tests/test_plot_background/materials.xml | 9 + tests/test_plot_background/plots.xml | 11 + tests/test_plot_background/settings.xml | 16 ++ .../test_plot_background.py | 25 ++ tests/test_plot_basis/geometry.xml | 13 + tests/test_plot_basis/materials.xml | 19 ++ tests/test_plot_basis/plots.xml | 22 ++ tests/test_plot_basis/settings.xml | 16 ++ tests/test_plot_basis/test_plot_basis.py | 27 ++ tests/test_plot_colspec/geometry.xml | 8 + tests/test_plot_colspec/materials.xml | 9 + tests/test_plot_colspec/plots.xml | 11 + tests/test_plot_colspec/settings.xml | 16 ++ tests/test_plot_colspec/test_plot_colspec.py | 25 ++ tests/test_plot_mask/geometry.xml | 13 + tests/test_plot_mask/materials.xml | 19 ++ tests/test_plot_mask/plots.xml | 25 ++ tests/test_plot_mask/settings.xml | 16 ++ tests/test_plot_mask/test_plot_mask.py | 27 ++ tests/test_ptables_off/geometry.xml | 8 + tests/test_ptables_off/materials.xml | 9 + tests/test_ptables_off/settings.xml | 18 ++ tests/test_ptables_off/test_ptables_off.py | 25 ++ tests/test_reflective_cone/geometry.xml | 8 + tests/test_reflective_cone/materials.xml | 9 + tests/test_reflective_cone/settings.xml | 14 + .../test_reflective_cone.py | 22 ++ tests/test_reflective_cylinder/geometry.xml | 8 + tests/test_reflective_cylinder/materials.xml | 9 + tests/test_reflective_cylinder/settings.xml | 16 ++ .../test_reflective_cylinder.py | 22 ++ tests/test_reflective_plane/geometry.xml | 13 + tests/test_reflective_plane/materials.xml | 9 + tests/test_reflective_plane/settings.xml | 16 ++ .../test_reflective_plane.py | 22 ++ tests/test_reflective_sphere/geometry.xml | 8 + tests/test_reflective_sphere/materials.xml | 9 + tests/test_reflective_sphere/settings.xml | 16 ++ .../test_reflective_sphere.py | 22 ++ tests/test_rotation/geometry.xml | 11 + tests/test_rotation/materials.xml | 9 + tests/test_rotation/settings.xml | 16 ++ tests/test_rotation/test_rotation.py | 22 ++ tests/test_salphabeta/geometry.xml | 13 + tests/test_salphabeta/materials.xml | 28 ++ tests/test_salphabeta/settings.xml | 16 ++ tests/test_salphabeta/test_salphabeta.py | 22 ++ tests/test_score_MT/geometry.xml | 185 ++++++++++++ tests/test_score_MT/materials.xml | 272 ++++++++++++++++++ tests/test_score_MT/settings.xml | 19 ++ tests/test_score_MT/tallies.xml | 9 + tests/test_score_MT/test_score_MT.py | 28 ++ tests/test_score_absorption/geometry.xml | 185 ++++++++++++ tests/test_score_absorption/materials.xml | 272 ++++++++++++++++++ tests/test_score_absorption/settings.xml | 19 ++ tests/test_score_absorption/tallies.xml | 15 + .../test_score_absorption.py | 28 ++ tests/test_score_current/geometry.xml | 185 ++++++++++++ tests/test_score_current/materials.xml | 272 ++++++++++++++++++ tests/test_score_current/settings.xml | 19 ++ tests/test_score_current/tallies.xml | 22 ++ .../test_score_current/test_score_current.py | 28 ++ tests/test_score_events/geometry.xml | 185 ++++++++++++ tests/test_score_events/materials.xml | 272 ++++++++++++++++++ tests/test_score_events/settings.xml | 19 ++ tests/test_score_events/tallies.xml | 17 ++ tests/test_score_events/test_score_events.py | 28 ++ tests/test_score_fission/geometry.xml | 185 ++++++++++++ tests/test_score_fission/materials.xml | 272 ++++++++++++++++++ tests/test_score_fission/settings.xml | 19 ++ tests/test_score_fission/tallies.xml | 15 + .../test_score_fission/test_score_fission.py | 28 ++ tests/test_score_flux/geometry.xml | 185 ++++++++++++ tests/test_score_flux/materials.xml | 272 ++++++++++++++++++ tests/test_score_flux/settings.xml | 19 ++ tests/test_score_flux/tallies.xml | 9 + tests/test_score_flux/test_score_flux.py | 28 ++ tests/test_score_kappafission/geometry.xml | 185 ++++++++++++ tests/test_score_kappafission/materials.xml | 272 ++++++++++++++++++ tests/test_score_kappafission/settings.xml | 19 ++ tests/test_score_kappafission/tallies.xml | 9 + .../test_score_kappafission.py | 28 ++ tests/test_score_nufission/geometry.xml | 185 ++++++++++++ tests/test_score_nufission/materials.xml | 272 ++++++++++++++++++ tests/test_score_nufission/settings.xml | 19 ++ tests/test_score_nufission/tallies.xml | 9 + .../test_score_nufission.py | 28 ++ tests/test_score_nuscatter/geometry.xml | 185 ++++++++++++ tests/test_score_nuscatter/materials.xml | 272 ++++++++++++++++++ tests/test_score_nuscatter/settings.xml | 19 ++ tests/test_score_nuscatter/tallies.xml | 9 + .../test_score_nuscatter.py | 28 ++ tests/test_score_scatter/geometry.xml | 185 ++++++++++++ tests/test_score_scatter/materials.xml | 272 ++++++++++++++++++ tests/test_score_scatter/settings.xml | 19 ++ tests/test_score_scatter/tallies.xml | 9 + .../test_score_scatter/test_score_scatter.py | 28 ++ tests/test_score_scatter_n/geometry.xml | 185 ++++++++++++ tests/test_score_scatter_n/materials.xml | 272 ++++++++++++++++++ tests/test_score_scatter_n/settings.xml | 19 ++ tests/test_score_scatter_n/tallies.xml | 9 + .../test_score_scatter_n.py | 28 ++ tests/test_score_scatter_pn/geometry.xml | 185 ++++++++++++ tests/test_score_scatter_pn/materials.xml | 272 ++++++++++++++++++ tests/test_score_scatter_pn/settings.xml | 19 ++ tests/test_score_scatter_pn/tallies.xml | 14 + .../test_score_scatter_pn.py | 28 ++ tests/test_score_total/geometry.xml | 185 ++++++++++++ tests/test_score_total/materials.xml | 272 ++++++++++++++++++ tests/test_score_total/settings.xml | 19 ++ tests/test_score_total/tallies.xml | 9 + tests/test_score_total/test_score_total.py | 28 ++ tests/test_seed/geometry.xml | 8 + tests/test_seed/materials.xml | 9 + tests/test_seed/settings.xml | 18 ++ tests/test_seed/test_seed.py | 25 ++ tests/test_source_angle_mono/geometry.xml | 8 + tests/test_source_angle_mono/materials.xml | 9 + tests/test_source_angle_mono/settings.xml | 15 + .../test_source_angle_mono.py | 22 ++ tests/test_source_energy_maxwell/geometry.xml | 8 + .../test_source_energy_maxwell/materials.xml | 9 + tests/test_source_energy_maxwell/settings.xml | 15 + .../test_source_energy_maxwell.py | 22 ++ tests/test_source_energy_mono/geometry.xml | 8 + tests/test_source_energy_mono/materials.xml | 9 + tests/test_source_energy_mono/settings.xml | 15 + .../test_source_energy_mono.py | 22 ++ tests/test_source_point/geometry.xml | 8 + tests/test_source_point/materials.xml | 9 + tests/test_source_point/settings.xml | 14 + tests/test_source_point/test_source_point.py | 22 ++ tests/test_statepoint_batch/geometry.xml | 8 + tests/test_statepoint_batch/materials.xml | 9 + tests/test_statepoint_batch/settings.xml | 18 ++ .../test_statepoint_batch.py | 29 ++ tests/test_statepoint_interval/geometry.xml | 8 + tests/test_statepoint_interval/materials.xml | 9 + tests/test_statepoint_interval/settings.xml | 18 ++ .../test_statepoint_interval.py | 30 ++ tests/test_statepoint_restart/geometry.xml | 8 + tests/test_statepoint_restart/materials.xml | 9 + tests/test_statepoint_restart/settings.xml | 18 ++ .../test_statepoint_restart.py | 39 +++ tests/test_statepoint_sourcesep/geometry.xml | 8 + tests/test_statepoint_sourcesep/materials.xml | 9 + tests/test_statepoint_sourcesep/settings.xml | 18 ++ .../test_statepoint_sourcesep.py | 26 ++ tests/test_survival_biasing/geometry.xml | 8 + tests/test_survival_biasing/materials.xml | 9 + tests/test_survival_biasing/settings.xml | 23 ++ .../test_survival_biasing.py | 33 +++ tests/test_tally_assumesep/geometry.xml | 185 ++++++++++++ tests/test_tally_assumesep/materials.xml | 272 ++++++++++++++++++ tests/test_tally_assumesep/settings.xml | 19 ++ tests/test_tally_assumesep/tallies.xml | 21 ++ .../test_tally_assumesep.py | 28 ++ tests/test_trace/geometry.xml | 8 + tests/test_trace/materials.xml | 9 + tests/test_trace/settings.xml | 18 ++ tests/test_trace/test_trace.py | 22 ++ tests/test_translation/geometry.xml | 11 + tests/test_translation/materials.xml | 9 + tests/test_translation/settings.xml | 16 ++ tests/test_translation/test_translation.py | 22 ++ tests/test_uniform_fs/geometry.xml | 13 + tests/test_uniform_fs/materials.xml | 9 + tests/test_uniform_fs/settings.xml | 20 ++ tests/test_uniform_fs/test_uniform_fs.py | 22 ++ tests/test_universe/geometry.xml | 11 + tests/test_universe/materials.xml | 9 + tests/test_universe/settings.xml | 16 ++ tests/test_universe/test_universe.py | 22 ++ tests/test_void/geometry.xml | 40 +++ tests/test_void/materials.xml | 63 ++++ tests/test_void/settings.xml | 17 ++ tests/test_void/test_void.py | 22 ++ 282 files changed, 15270 insertions(+) create mode 100644 tests/test_basic/geometry.xml create mode 100644 tests/test_basic/materials.xml create mode 100644 tests/test_basic/settings.xml create mode 100644 tests/test_basic/test_basic.py create mode 100644 tests/test_compile/test_compile.py create mode 100644 tests/test_confidence_intervals/geometry.xml create mode 100644 tests/test_confidence_intervals/materials.xml create mode 100644 tests/test_confidence_intervals/settings.xml create mode 100644 tests/test_confidence_intervals/tallies.xml create mode 100644 tests/test_confidence_intervals/test_confidence_intervals.py create mode 100644 tests/test_density_atombcm/geometry.xml create mode 100644 tests/test_density_atombcm/materials.xml create mode 100644 tests/test_density_atombcm/settings.xml create mode 100644 tests/test_density_atombcm/test_density_atombcm.py create mode 100644 tests/test_density_atomcm3/geometry.xml create mode 100644 tests/test_density_atomcm3/materials.xml create mode 100644 tests/test_density_atomcm3/settings.xml create mode 100644 tests/test_density_atomcm3/test_density_atomcm3.py create mode 100644 tests/test_density_kgm3/geometry.xml create mode 100644 tests/test_density_kgm3/materials.xml create mode 100644 tests/test_density_kgm3/settings.xml create mode 100644 tests/test_density_kgm3/test_density_kgm3.py create mode 100644 tests/test_density_sum/geometry.xml create mode 100644 tests/test_density_sum/materials.xml create mode 100644 tests/test_density_sum/settings.xml create mode 100644 tests/test_density_sum/test_density_sum.py create mode 100644 tests/test_eigenvalue_genperbatch/geometry.xml create mode 100644 tests/test_eigenvalue_genperbatch/materials.xml create mode 100644 tests/test_eigenvalue_genperbatch/settings.xml create mode 100644 tests/test_eigenvalue_genperbatch/test_eigenvalue_genperbatch.py create mode 100644 tests/test_eigenvalue_no_inactive/geometry.xml create mode 100644 tests/test_eigenvalue_no_inactive/materials.xml create mode 100644 tests/test_eigenvalue_no_inactive/settings.xml create mode 100644 tests/test_eigenvalue_no_inactive/test_eigenvalue_no_inactive.py create mode 100644 tests/test_energy_grid/geometry.xml create mode 100644 tests/test_energy_grid/materials.xml create mode 100644 tests/test_energy_grid/settings.xml create mode 100644 tests/test_energy_grid/test_energy_grid.py create mode 100644 tests/test_entropy/geometry.xml create mode 100644 tests/test_entropy/materials.xml create mode 100644 tests/test_entropy/settings.xml create mode 100644 tests/test_entropy/test_entropy.py create mode 100644 tests/test_filter_cell/geometry.xml create mode 100644 tests/test_filter_cell/materials.xml create mode 100644 tests/test_filter_cell/settings.xml create mode 100644 tests/test_filter_cell/tallies.xml create mode 100644 tests/test_filter_cell/test_filter_cell.py create mode 100644 tests/test_filter_cellborn/geometry.xml create mode 100644 tests/test_filter_cellborn/materials.xml create mode 100644 tests/test_filter_cellborn/settings.xml create mode 100644 tests/test_filter_cellborn/tallies.xml create mode 100644 tests/test_filter_cellborn/test_filter_cellborn.py create mode 100644 tests/test_filter_energy/geometry.xml create mode 100644 tests/test_filter_energy/materials.xml create mode 100644 tests/test_filter_energy/settings.xml create mode 100644 tests/test_filter_energy/tallies.xml create mode 100644 tests/test_filter_energy/test_filter_energy.py create mode 100644 tests/test_filter_energyout/geometry.xml create mode 100644 tests/test_filter_energyout/materials.xml create mode 100644 tests/test_filter_energyout/settings.xml create mode 100644 tests/test_filter_energyout/tallies.xml create mode 100644 tests/test_filter_energyout/test_filter_energyout.py create mode 100644 tests/test_filter_group_transfer/geometry.xml create mode 100644 tests/test_filter_group_transfer/materials.xml create mode 100644 tests/test_filter_group_transfer/settings.xml create mode 100644 tests/test_filter_group_transfer/tallies.xml create mode 100644 tests/test_filter_group_transfer/test_filter_group_transfer.py create mode 100644 tests/test_filter_material/geometry.xml create mode 100644 tests/test_filter_material/materials.xml create mode 100644 tests/test_filter_material/settings.xml create mode 100644 tests/test_filter_material/tallies.xml create mode 100644 tests/test_filter_material/test_filter_material.py create mode 100644 tests/test_filter_mesh_2d/geometry.xml create mode 100644 tests/test_filter_mesh_2d/materials.xml create mode 100644 tests/test_filter_mesh_2d/settings.xml create mode 100644 tests/test_filter_mesh_2d/tallies.xml create mode 100644 tests/test_filter_mesh_2d/test_filter_mesh_2d.py create mode 100644 tests/test_filter_mesh_3d/geometry.xml create mode 100644 tests/test_filter_mesh_3d/materials.xml create mode 100644 tests/test_filter_mesh_3d/settings.xml create mode 100644 tests/test_filter_mesh_3d/tallies.xml create mode 100644 tests/test_filter_mesh_3d/test_filter_mesh_3d.py create mode 100644 tests/test_filter_universe/geometry.xml create mode 100644 tests/test_filter_universe/materials.xml create mode 100644 tests/test_filter_universe/settings.xml create mode 100644 tests/test_filter_universe/tallies.xml create mode 100644 tests/test_filter_universe/test_filter_universe.py create mode 100644 tests/test_fixed_source/geometry.xml create mode 100644 tests/test_fixed_source/materials.xml create mode 100644 tests/test_fixed_source/settings.xml create mode 100644 tests/test_fixed_source/test_fixed_source.py create mode 100644 tests/test_lattice/geometry.xml create mode 100644 tests/test_lattice/materials.xml create mode 100644 tests/test_lattice/plots.xml create mode 100644 tests/test_lattice/settings.xml create mode 100644 tests/test_lattice/test_lattice.py create mode 100644 tests/test_lattice_multiple/geometry.xml create mode 100644 tests/test_lattice_multiple/materials.xml create mode 100644 tests/test_lattice_multiple/settings.xml create mode 100644 tests/test_lattice_multiple/test_lattice_multiple.py create mode 100644 tests/test_output/geometry.xml create mode 100644 tests/test_output/materials.xml create mode 100644 tests/test_output/settings.xml create mode 100644 tests/test_output/test_output.py create mode 100644 tests/test_plot_background/geometry.xml create mode 100644 tests/test_plot_background/materials.xml create mode 100644 tests/test_plot_background/plots.xml create mode 100644 tests/test_plot_background/settings.xml create mode 100644 tests/test_plot_background/test_plot_background.py create mode 100644 tests/test_plot_basis/geometry.xml create mode 100644 tests/test_plot_basis/materials.xml create mode 100644 tests/test_plot_basis/plots.xml create mode 100644 tests/test_plot_basis/settings.xml create mode 100644 tests/test_plot_basis/test_plot_basis.py create mode 100644 tests/test_plot_colspec/geometry.xml create mode 100644 tests/test_plot_colspec/materials.xml create mode 100644 tests/test_plot_colspec/plots.xml create mode 100644 tests/test_plot_colspec/settings.xml create mode 100644 tests/test_plot_colspec/test_plot_colspec.py create mode 100644 tests/test_plot_mask/geometry.xml create mode 100644 tests/test_plot_mask/materials.xml create mode 100644 tests/test_plot_mask/plots.xml create mode 100644 tests/test_plot_mask/settings.xml create mode 100644 tests/test_plot_mask/test_plot_mask.py create mode 100644 tests/test_ptables_off/geometry.xml create mode 100644 tests/test_ptables_off/materials.xml create mode 100644 tests/test_ptables_off/settings.xml create mode 100644 tests/test_ptables_off/test_ptables_off.py create mode 100644 tests/test_reflective_cone/geometry.xml create mode 100644 tests/test_reflective_cone/materials.xml create mode 100644 tests/test_reflective_cone/settings.xml create mode 100644 tests/test_reflective_cone/test_reflective_cone.py create mode 100644 tests/test_reflective_cylinder/geometry.xml create mode 100644 tests/test_reflective_cylinder/materials.xml create mode 100644 tests/test_reflective_cylinder/settings.xml create mode 100644 tests/test_reflective_cylinder/test_reflective_cylinder.py create mode 100644 tests/test_reflective_plane/geometry.xml create mode 100644 tests/test_reflective_plane/materials.xml create mode 100644 tests/test_reflective_plane/settings.xml create mode 100644 tests/test_reflective_plane/test_reflective_plane.py create mode 100644 tests/test_reflective_sphere/geometry.xml create mode 100644 tests/test_reflective_sphere/materials.xml create mode 100644 tests/test_reflective_sphere/settings.xml create mode 100644 tests/test_reflective_sphere/test_reflective_sphere.py create mode 100644 tests/test_rotation/geometry.xml create mode 100644 tests/test_rotation/materials.xml create mode 100644 tests/test_rotation/settings.xml create mode 100644 tests/test_rotation/test_rotation.py create mode 100644 tests/test_salphabeta/geometry.xml create mode 100644 tests/test_salphabeta/materials.xml create mode 100644 tests/test_salphabeta/settings.xml create mode 100644 tests/test_salphabeta/test_salphabeta.py create mode 100644 tests/test_score_MT/geometry.xml create mode 100644 tests/test_score_MT/materials.xml create mode 100644 tests/test_score_MT/settings.xml create mode 100644 tests/test_score_MT/tallies.xml create mode 100644 tests/test_score_MT/test_score_MT.py create mode 100644 tests/test_score_absorption/geometry.xml create mode 100644 tests/test_score_absorption/materials.xml create mode 100644 tests/test_score_absorption/settings.xml create mode 100644 tests/test_score_absorption/tallies.xml create mode 100644 tests/test_score_absorption/test_score_absorption.py create mode 100644 tests/test_score_current/geometry.xml create mode 100644 tests/test_score_current/materials.xml create mode 100644 tests/test_score_current/settings.xml create mode 100644 tests/test_score_current/tallies.xml create mode 100644 tests/test_score_current/test_score_current.py create mode 100644 tests/test_score_events/geometry.xml create mode 100644 tests/test_score_events/materials.xml create mode 100644 tests/test_score_events/settings.xml create mode 100644 tests/test_score_events/tallies.xml create mode 100644 tests/test_score_events/test_score_events.py create mode 100644 tests/test_score_fission/geometry.xml create mode 100644 tests/test_score_fission/materials.xml create mode 100644 tests/test_score_fission/settings.xml create mode 100644 tests/test_score_fission/tallies.xml create mode 100644 tests/test_score_fission/test_score_fission.py create mode 100644 tests/test_score_flux/geometry.xml create mode 100644 tests/test_score_flux/materials.xml create mode 100644 tests/test_score_flux/settings.xml create mode 100644 tests/test_score_flux/tallies.xml create mode 100644 tests/test_score_flux/test_score_flux.py create mode 100644 tests/test_score_kappafission/geometry.xml create mode 100644 tests/test_score_kappafission/materials.xml create mode 100644 tests/test_score_kappafission/settings.xml create mode 100644 tests/test_score_kappafission/tallies.xml create mode 100644 tests/test_score_kappafission/test_score_kappafission.py create mode 100644 tests/test_score_nufission/geometry.xml create mode 100644 tests/test_score_nufission/materials.xml create mode 100644 tests/test_score_nufission/settings.xml create mode 100644 tests/test_score_nufission/tallies.xml create mode 100644 tests/test_score_nufission/test_score_nufission.py create mode 100644 tests/test_score_nuscatter/geometry.xml create mode 100644 tests/test_score_nuscatter/materials.xml create mode 100644 tests/test_score_nuscatter/settings.xml create mode 100644 tests/test_score_nuscatter/tallies.xml create mode 100644 tests/test_score_nuscatter/test_score_nuscatter.py create mode 100644 tests/test_score_scatter/geometry.xml create mode 100644 tests/test_score_scatter/materials.xml create mode 100644 tests/test_score_scatter/settings.xml create mode 100644 tests/test_score_scatter/tallies.xml create mode 100644 tests/test_score_scatter/test_score_scatter.py create mode 100644 tests/test_score_scatter_n/geometry.xml create mode 100644 tests/test_score_scatter_n/materials.xml create mode 100644 tests/test_score_scatter_n/settings.xml create mode 100644 tests/test_score_scatter_n/tallies.xml create mode 100644 tests/test_score_scatter_n/test_score_scatter_n.py create mode 100644 tests/test_score_scatter_pn/geometry.xml create mode 100644 tests/test_score_scatter_pn/materials.xml create mode 100644 tests/test_score_scatter_pn/settings.xml create mode 100644 tests/test_score_scatter_pn/tallies.xml create mode 100644 tests/test_score_scatter_pn/test_score_scatter_pn.py create mode 100644 tests/test_score_total/geometry.xml create mode 100644 tests/test_score_total/materials.xml create mode 100644 tests/test_score_total/settings.xml create mode 100644 tests/test_score_total/tallies.xml create mode 100644 tests/test_score_total/test_score_total.py create mode 100644 tests/test_seed/geometry.xml create mode 100644 tests/test_seed/materials.xml create mode 100644 tests/test_seed/settings.xml create mode 100644 tests/test_seed/test_seed.py create mode 100644 tests/test_source_angle_mono/geometry.xml create mode 100644 tests/test_source_angle_mono/materials.xml create mode 100644 tests/test_source_angle_mono/settings.xml create mode 100644 tests/test_source_angle_mono/test_source_angle_mono.py create mode 100644 tests/test_source_energy_maxwell/geometry.xml create mode 100644 tests/test_source_energy_maxwell/materials.xml create mode 100644 tests/test_source_energy_maxwell/settings.xml create mode 100644 tests/test_source_energy_maxwell/test_source_energy_maxwell.py create mode 100644 tests/test_source_energy_mono/geometry.xml create mode 100644 tests/test_source_energy_mono/materials.xml create mode 100644 tests/test_source_energy_mono/settings.xml create mode 100644 tests/test_source_energy_mono/test_source_energy_mono.py create mode 100644 tests/test_source_point/geometry.xml create mode 100644 tests/test_source_point/materials.xml create mode 100644 tests/test_source_point/settings.xml create mode 100644 tests/test_source_point/test_source_point.py create mode 100644 tests/test_statepoint_batch/geometry.xml create mode 100644 tests/test_statepoint_batch/materials.xml create mode 100644 tests/test_statepoint_batch/settings.xml create mode 100644 tests/test_statepoint_batch/test_statepoint_batch.py create mode 100644 tests/test_statepoint_interval/geometry.xml create mode 100644 tests/test_statepoint_interval/materials.xml create mode 100644 tests/test_statepoint_interval/settings.xml create mode 100644 tests/test_statepoint_interval/test_statepoint_interval.py create mode 100644 tests/test_statepoint_restart/geometry.xml create mode 100644 tests/test_statepoint_restart/materials.xml create mode 100644 tests/test_statepoint_restart/settings.xml create mode 100644 tests/test_statepoint_restart/test_statepoint_restart.py create mode 100644 tests/test_statepoint_sourcesep/geometry.xml create mode 100644 tests/test_statepoint_sourcesep/materials.xml create mode 100644 tests/test_statepoint_sourcesep/settings.xml create mode 100644 tests/test_statepoint_sourcesep/test_statepoint_sourcesep.py create mode 100644 tests/test_survival_biasing/geometry.xml create mode 100644 tests/test_survival_biasing/materials.xml create mode 100644 tests/test_survival_biasing/settings.xml create mode 100644 tests/test_survival_biasing/test_survival_biasing.py create mode 100644 tests/test_tally_assumesep/geometry.xml create mode 100644 tests/test_tally_assumesep/materials.xml create mode 100644 tests/test_tally_assumesep/settings.xml create mode 100644 tests/test_tally_assumesep/tallies.xml create mode 100644 tests/test_tally_assumesep/test_tally_assumesep.py create mode 100644 tests/test_trace/geometry.xml create mode 100644 tests/test_trace/materials.xml create mode 100644 tests/test_trace/settings.xml create mode 100644 tests/test_trace/test_trace.py create mode 100644 tests/test_translation/geometry.xml create mode 100644 tests/test_translation/materials.xml create mode 100644 tests/test_translation/settings.xml create mode 100644 tests/test_translation/test_translation.py create mode 100644 tests/test_uniform_fs/geometry.xml create mode 100644 tests/test_uniform_fs/materials.xml create mode 100644 tests/test_uniform_fs/settings.xml create mode 100644 tests/test_uniform_fs/test_uniform_fs.py create mode 100644 tests/test_universe/geometry.xml create mode 100644 tests/test_universe/materials.xml create mode 100644 tests/test_universe/settings.xml create mode 100644 tests/test_universe/test_universe.py create mode 100644 tests/test_void/geometry.xml create mode 100644 tests/test_void/materials.xml create mode 100644 tests/test_void/settings.xml create mode 100644 tests/test_void/test_void.py diff --git a/tests/test_basic/geometry.xml b/tests/test_basic/geometry.xml new file mode 100644 index 000000000..612e46132 --- /dev/null +++ b/tests/test_basic/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_basic/materials.xml b/tests/test_basic/materials.xml new file mode 100644 index 000000000..1f85510e0 --- /dev/null +++ b/tests/test_basic/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_basic/settings.xml b/tests/test_basic/settings.xml new file mode 100644 index 000000000..a6fd5da19 --- /dev/null +++ b/tests/test_basic/settings.xml @@ -0,0 +1,16 @@ + + + + + 10 + 5 + 1000 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_basic/test_basic.py b/tests/test_basic/test_basic.py new file mode 100644 index 000000000..260af7577 --- /dev/null +++ b/tests/test_basic/test_basic.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_created_statepoint(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def teardown(): + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_compile/test_compile.py b/tests/test_compile/test_compile.py new file mode 100644 index 000000000..6c6f2c455 --- /dev/null +++ b/tests/test_compile/test_compile.py @@ -0,0 +1,111 @@ +#!/usr/bin/env python + +"""Compilation tests + +This set of tests makes sure that OpenMC can compile for many different +combinations of compilation flags and options. By default, only the gfortran and +ifort compilers are tested. This requires that the MPI, HDF5, and PETSC +libraries are already set up appropriately in the Makefile. + +""" + +import os +from subprocess import Popen, STDOUT, PIPE +import shutil + +pwd = os.path.dirname(__file__) + +def setup(): + # Change to source directory + os.chdir(pwd + '/../../src') + +def test_gfortran(): + returncode = run(['make','distclean']) + returncode = run(['make']) + assert returncode == 0 + shutil.move('openmc', 'openmc-gfortran') + +def test_gfortran_debug(): + returncode = run(['make','distclean']) + returncode = run(['make', 'DEBUG=yes']) + assert returncode == 0 + +def test_gfortran_optimize(): + returncode = run(['make','distclean']) + returncode = run(['make', 'OPTIMIZE=yes']) + assert returncode == 0 + +def test_gfortran_mpi(): + returncode = run(['make','distclean']) + returncode = run(['make', 'MPI=yes']) + assert returncode == 0 + +def test_gfortran_hdf5(): + returncode = run(['make','distclean']) + returncode = run(['make', 'HDF5=yes']) + assert returncode == 0 + +def test_gfortran_petsc(): + returncode = run(['make','distclean']) + returncode = run(['make', 'MPI=yes', 'PETSC=yes']) + assert returncode == 0 + +def test_gfortran_mpi_hdf5(): + returncode = run(['make','distclean']) + returncode = run(['make', 'MPI=yes', 'HDF5=yes']) + assert returncode == 0 + +def test_gfortran_mpi_hdf5_petsc(): + returncode = run(['make','distclean']) + returncode = run(['make', 'MPI=yes', 'HDF5=yes', 'PETSC=yes']) + assert returncode == 0 + +def test_intel(): + returncode = run(['make','distclean']) + returncode = run(['make', 'COMPILER=intel']) + assert returncode == 0 + +def test_intel_debug(): + returncode = run(['make','distclean']) + returncode = run(['make', 'COMPILER=intel', 'DEBUG=yes']) + assert returncode == 0 + +def test_intel_optimize(): + returncode = run(['make','distclean']) + returncode = run(['make', 'COMPILER=intel', 'OPTIMIZE=yes']) + assert returncode == 0 + +def test_intel_mpi(): + returncode = run(['make','distclean']) + returncode = run(['make', 'COMPILER=intel', 'MPI=yes']) + assert returncode == 0 + +def test_intel_hdf5(): + returncode = run(['make','distclean']) + returncode = run(['make', 'COMPILER=intel', 'HDF5=yes']) + assert returncode == 0 + +def test_intel_petsc(): + returncode = run(['make','distclean']) + returncode = run(['make', 'COMPILER=intel', 'MPI=yes', 'PETSC=yes']) + assert returncode == 0 + +def test_intel_mpi_hdf5(): + returncode = run(['make','distclean']) + returncode = run(['make', 'COMPILER=intel', 'MPI=yes', 'HDF5=yes']) + assert returncode == 0 + +def test_intel_mpi_hdf5_petsc(): + returncode = run(['make','distclean']) + returncode = run(['make', 'COMPILER=intel', 'MPI=yes', 'HDF5=yes', 'PETSC=yes']) + assert returncode == 0 + +def run(commands): + proc = Popen(commands, stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + return returncode + +def teardown(commands): + returncode = run(['make','distclean']) + shutil.copy('openmc-gfortran','openmc') diff --git a/tests/test_confidence_intervals/geometry.xml b/tests/test_confidence_intervals/geometry.xml new file mode 100644 index 000000000..612e46132 --- /dev/null +++ b/tests/test_confidence_intervals/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_confidence_intervals/materials.xml b/tests/test_confidence_intervals/materials.xml new file mode 100644 index 000000000..1f85510e0 --- /dev/null +++ b/tests/test_confidence_intervals/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_confidence_intervals/settings.xml b/tests/test_confidence_intervals/settings.xml new file mode 100644 index 000000000..19a27694e --- /dev/null +++ b/tests/test_confidence_intervals/settings.xml @@ -0,0 +1,18 @@ + + + + true + + + 10 + 2 + 100 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_confidence_intervals/tallies.xml b/tests/test_confidence_intervals/tallies.xml new file mode 100644 index 000000000..0e1fe213c --- /dev/null +++ b/tests/test_confidence_intervals/tallies.xml @@ -0,0 +1,9 @@ + + + + + + flux + + + \ No newline at end of file diff --git a/tests/test_confidence_intervals/test_confidence_intervals.py b/tests/test_confidence_intervals/test_confidence_intervals.py new file mode 100644 index 000000000..ae387dbb1 --- /dev/null +++ b/tests/test_confidence_intervals/test_confidence_intervals.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_created_statepoint(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def test_created_output(): + assert os.path.exists(pwd + '/tallies.out') + +def teardown(): + output = [pwd + '/statepoint.10.binary', pwd + '/tallies.out'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_density_atombcm/geometry.xml b/tests/test_density_atombcm/geometry.xml new file mode 100644 index 000000000..612e46132 --- /dev/null +++ b/tests/test_density_atombcm/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_density_atombcm/materials.xml b/tests/test_density_atombcm/materials.xml new file mode 100644 index 000000000..f2b261f22 --- /dev/null +++ b/tests/test_density_atombcm/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_density_atombcm/settings.xml b/tests/test_density_atombcm/settings.xml new file mode 100644 index 000000000..a6fd5da19 --- /dev/null +++ b/tests/test_density_atombcm/settings.xml @@ -0,0 +1,16 @@ + + + + + 10 + 5 + 1000 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_density_atombcm/test_density_atombcm.py b/tests/test_density_atombcm/test_density_atombcm.py new file mode 100644 index 000000000..c2b419f64 --- /dev/null +++ b/tests/test_density_atombcm/test_density_atombcm.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def teardown(): + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_density_atomcm3/geometry.xml b/tests/test_density_atomcm3/geometry.xml new file mode 100644 index 000000000..612e46132 --- /dev/null +++ b/tests/test_density_atomcm3/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_density_atomcm3/materials.xml b/tests/test_density_atomcm3/materials.xml new file mode 100644 index 000000000..128093956 --- /dev/null +++ b/tests/test_density_atomcm3/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_density_atomcm3/settings.xml b/tests/test_density_atomcm3/settings.xml new file mode 100644 index 000000000..a6fd5da19 --- /dev/null +++ b/tests/test_density_atomcm3/settings.xml @@ -0,0 +1,16 @@ + + + + + 10 + 5 + 1000 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_density_atomcm3/test_density_atomcm3.py b/tests/test_density_atomcm3/test_density_atomcm3.py new file mode 100644 index 000000000..c2b419f64 --- /dev/null +++ b/tests/test_density_atomcm3/test_density_atomcm3.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def teardown(): + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_density_kgm3/geometry.xml b/tests/test_density_kgm3/geometry.xml new file mode 100644 index 000000000..612e46132 --- /dev/null +++ b/tests/test_density_kgm3/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_density_kgm3/materials.xml b/tests/test_density_kgm3/materials.xml new file mode 100644 index 000000000..8ace9afae --- /dev/null +++ b/tests/test_density_kgm3/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_density_kgm3/settings.xml b/tests/test_density_kgm3/settings.xml new file mode 100644 index 000000000..a6fd5da19 --- /dev/null +++ b/tests/test_density_kgm3/settings.xml @@ -0,0 +1,16 @@ + + + + + 10 + 5 + 1000 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_density_kgm3/test_density_kgm3.py b/tests/test_density_kgm3/test_density_kgm3.py new file mode 100644 index 000000000..c2b419f64 --- /dev/null +++ b/tests/test_density_kgm3/test_density_kgm3.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def teardown(): + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_density_sum/geometry.xml b/tests/test_density_sum/geometry.xml new file mode 100644 index 000000000..612e46132 --- /dev/null +++ b/tests/test_density_sum/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_density_sum/materials.xml b/tests/test_density_sum/materials.xml new file mode 100644 index 000000000..bd04d0b66 --- /dev/null +++ b/tests/test_density_sum/materials.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/tests/test_density_sum/settings.xml b/tests/test_density_sum/settings.xml new file mode 100644 index 000000000..a6fd5da19 --- /dev/null +++ b/tests/test_density_sum/settings.xml @@ -0,0 +1,16 @@ + + + + + 10 + 5 + 1000 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_density_sum/test_density_sum.py b/tests/test_density_sum/test_density_sum.py new file mode 100644 index 000000000..260af7577 --- /dev/null +++ b/tests/test_density_sum/test_density_sum.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_created_statepoint(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def teardown(): + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_eigenvalue_genperbatch/geometry.xml b/tests/test_eigenvalue_genperbatch/geometry.xml new file mode 100644 index 000000000..612e46132 --- /dev/null +++ b/tests/test_eigenvalue_genperbatch/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_eigenvalue_genperbatch/materials.xml b/tests/test_eigenvalue_genperbatch/materials.xml new file mode 100644 index 000000000..1f85510e0 --- /dev/null +++ b/tests/test_eigenvalue_genperbatch/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_eigenvalue_genperbatch/settings.xml b/tests/test_eigenvalue_genperbatch/settings.xml new file mode 100644 index 000000000..a64b477b8 --- /dev/null +++ b/tests/test_eigenvalue_genperbatch/settings.xml @@ -0,0 +1,17 @@ + + + + + 7 + 3 + 1000 + 3 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_eigenvalue_genperbatch/test_eigenvalue_genperbatch.py b/tests/test_eigenvalue_genperbatch/test_eigenvalue_genperbatch.py new file mode 100644 index 000000000..0265dc61e --- /dev/null +++ b/tests/test_eigenvalue_genperbatch/test_eigenvalue_genperbatch.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_created_statepoint(): + assert os.path.exists(pwd + '/statepoint.7.binary') + +def teardown(): + output = [pwd + '/statepoint.7.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_eigenvalue_no_inactive/geometry.xml b/tests/test_eigenvalue_no_inactive/geometry.xml new file mode 100644 index 000000000..612e46132 --- /dev/null +++ b/tests/test_eigenvalue_no_inactive/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_eigenvalue_no_inactive/materials.xml b/tests/test_eigenvalue_no_inactive/materials.xml new file mode 100644 index 000000000..1f85510e0 --- /dev/null +++ b/tests/test_eigenvalue_no_inactive/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_eigenvalue_no_inactive/settings.xml b/tests/test_eigenvalue_no_inactive/settings.xml new file mode 100644 index 000000000..36d323ac0 --- /dev/null +++ b/tests/test_eigenvalue_no_inactive/settings.xml @@ -0,0 +1,16 @@ + + + + + 10 + 0 + 1000 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_eigenvalue_no_inactive/test_eigenvalue_no_inactive.py b/tests/test_eigenvalue_no_inactive/test_eigenvalue_no_inactive.py new file mode 100644 index 000000000..260af7577 --- /dev/null +++ b/tests/test_eigenvalue_no_inactive/test_eigenvalue_no_inactive.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_created_statepoint(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def teardown(): + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_energy_grid/geometry.xml b/tests/test_energy_grid/geometry.xml new file mode 100644 index 000000000..612e46132 --- /dev/null +++ b/tests/test_energy_grid/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_energy_grid/materials.xml b/tests/test_energy_grid/materials.xml new file mode 100644 index 000000000..06a28e1a9 --- /dev/null +++ b/tests/test_energy_grid/materials.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/tests/test_energy_grid/settings.xml b/tests/test_energy_grid/settings.xml new file mode 100644 index 000000000..f925356a9 --- /dev/null +++ b/tests/test_energy_grid/settings.xml @@ -0,0 +1,18 @@ + + + + nuclide + + + 10 + 5 + 1000 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_energy_grid/test_energy_grid.py b/tests/test_energy_grid/test_energy_grid.py new file mode 100644 index 000000000..c2b419f64 --- /dev/null +++ b/tests/test_energy_grid/test_energy_grid.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def teardown(): + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_entropy/geometry.xml b/tests/test_entropy/geometry.xml new file mode 100644 index 000000000..612e46132 --- /dev/null +++ b/tests/test_entropy/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_entropy/materials.xml b/tests/test_entropy/materials.xml new file mode 100644 index 000000000..1f85510e0 --- /dev/null +++ b/tests/test_entropy/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_entropy/settings.xml b/tests/test_entropy/settings.xml new file mode 100644 index 000000000..d6c6c4a47 --- /dev/null +++ b/tests/test_entropy/settings.xml @@ -0,0 +1,22 @@ + + + + + 10 + 5 + 1000 + + + + + -4 -4 -4 4 4 4 + + + + + 10 10 10 + -10. -10. -10. + 10. 10. 10. + + + diff --git a/tests/test_entropy/test_entropy.py b/tests/test_entropy/test_entropy.py new file mode 100644 index 000000000..260af7577 --- /dev/null +++ b/tests/test_entropy/test_entropy.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_created_statepoint(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def teardown(): + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_filter_cell/geometry.xml b/tests/test_filter_cell/geometry.xml new file mode 100644 index 000000000..2407bf74b --- /dev/null +++ b/tests/test_filter_cell/geometry.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1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 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + + + + \ No newline at end of file diff --git a/tests/test_filter_cell/materials.xml b/tests/test_filter_cell/materials.xml new file mode 100644 index 000000000..fca25cc87 --- /dev/null +++ b/tests/test_filter_cell/materials.xml @@ -0,0 +1,272 @@ + + + + 70c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_filter_cell/settings.xml b/tests/test_filter_cell/settings.xml new file mode 100644 index 000000000..517637a59 --- /dev/null +++ b/tests/test_filter_cell/settings.xml @@ -0,0 +1,19 @@ + + + + + 10 + 5 + 100 + + + + + + -160 -160 -183 + 160 160 183 + + + + + diff --git a/tests/test_filter_cell/tallies.xml b/tests/test_filter_cell/tallies.xml new file mode 100644 index 000000000..815b84c14 --- /dev/null +++ b/tests/test_filter_cell/tallies.xml @@ -0,0 +1,9 @@ + + + + + + total + + + \ No newline at end of file diff --git a/tests/test_filter_cell/test_filter_cell.py b/tests/test_filter_cell/test_filter_cell.py new file mode 100644 index 000000000..ca8daa926 --- /dev/null +++ b/tests/test_filter_cell/test_filter_cell.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_statepoint_exists(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def test_output_exists(): + assert os.path.exists(pwd + '/tallies.out') + +def teardown(): + output = [pwd + '/statepoint.10.binary', pwd + '/tallies.out'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_filter_cellborn/geometry.xml b/tests/test_filter_cellborn/geometry.xml new file mode 100644 index 000000000..2407bf74b --- /dev/null +++ b/tests/test_filter_cellborn/geometry.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 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8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 + 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 7 + 7 7 7 7 7 7 7 8 8 8 8 8 8 8 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + + + + \ No newline at end of file diff --git a/tests/test_filter_cellborn/materials.xml b/tests/test_filter_cellborn/materials.xml new file mode 100644 index 000000000..fca25cc87 --- /dev/null +++ b/tests/test_filter_cellborn/materials.xml @@ -0,0 +1,272 @@ + + + + 70c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_filter_cellborn/settings.xml b/tests/test_filter_cellborn/settings.xml new file mode 100644 index 000000000..517637a59 --- /dev/null +++ b/tests/test_filter_cellborn/settings.xml @@ -0,0 +1,19 @@ + + + + + 10 + 5 + 100 + + + + + + -160 -160 -183 + 160 160 183 + + + + + diff --git a/tests/test_filter_cellborn/tallies.xml b/tests/test_filter_cellborn/tallies.xml new file mode 100644 index 000000000..b278b07ff --- /dev/null +++ b/tests/test_filter_cellborn/tallies.xml @@ -0,0 +1,9 @@ + + + + + + total + + + \ No newline at end of file diff --git a/tests/test_filter_cellborn/test_filter_cellborn.py b/tests/test_filter_cellborn/test_filter_cellborn.py new file mode 100644 index 000000000..ca8daa926 --- /dev/null +++ b/tests/test_filter_cellborn/test_filter_cellborn.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_statepoint_exists(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def test_output_exists(): + assert os.path.exists(pwd + '/tallies.out') + +def teardown(): + output = [pwd + '/statepoint.10.binary', pwd + '/tallies.out'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_filter_energy/geometry.xml b/tests/test_filter_energy/geometry.xml new file mode 100644 index 000000000..2407bf74b --- /dev/null +++ b/tests/test_filter_energy/geometry.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1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 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 8 8 8 8 8 8 8 7 7 7 7 7 7 7 + 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 7 + 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 + 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 7 + 7 7 7 7 7 7 7 8 8 8 8 8 8 8 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + + + + \ No newline at end of file diff --git a/tests/test_filter_energy/materials.xml b/tests/test_filter_energy/materials.xml new file mode 100644 index 000000000..fca25cc87 --- /dev/null +++ b/tests/test_filter_energy/materials.xml @@ -0,0 +1,272 @@ + + + + 70c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_filter_energy/settings.xml b/tests/test_filter_energy/settings.xml new file mode 100644 index 000000000..517637a59 --- /dev/null +++ b/tests/test_filter_energy/settings.xml @@ -0,0 +1,19 @@ + + + + + 10 + 5 + 100 + + + + + + -160 -160 -183 + 160 160 183 + + + + + diff --git a/tests/test_filter_energy/tallies.xml b/tests/test_filter_energy/tallies.xml new file mode 100644 index 000000000..69ce1d593 --- /dev/null +++ b/tests/test_filter_energy/tallies.xml @@ -0,0 +1,9 @@ + + + + + + total + + + \ No newline at end of file diff --git a/tests/test_filter_energy/test_filter_energy.py b/tests/test_filter_energy/test_filter_energy.py new file mode 100644 index 000000000..ca8daa926 --- /dev/null +++ b/tests/test_filter_energy/test_filter_energy.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_statepoint_exists(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def test_output_exists(): + assert os.path.exists(pwd + '/tallies.out') + +def teardown(): + output = [pwd + '/statepoint.10.binary', pwd + '/tallies.out'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_filter_energyout/geometry.xml b/tests/test_filter_energyout/geometry.xml new file mode 100644 index 000000000..2407bf74b --- /dev/null +++ b/tests/test_filter_energyout/geometry.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 + 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 + 3 3 3 3 3 4 3 3 4 3 3 4 3 3 3 3 3 + 3 3 3 4 3 3 3 3 3 3 3 3 3 4 3 3 3 + 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 + 3 3 4 3 3 4 3 3 4 3 3 4 3 3 4 3 3 + 3 3 3 3 3 3 3 3 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8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 + 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 7 + 7 7 7 7 7 7 7 8 8 8 8 8 8 8 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + + + + \ No newline at end of file diff --git a/tests/test_filter_energyout/materials.xml b/tests/test_filter_energyout/materials.xml new file mode 100644 index 000000000..fca25cc87 --- /dev/null +++ b/tests/test_filter_energyout/materials.xml @@ -0,0 +1,272 @@ + + + + 70c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_filter_energyout/settings.xml b/tests/test_filter_energyout/settings.xml new file mode 100644 index 000000000..517637a59 --- /dev/null +++ b/tests/test_filter_energyout/settings.xml @@ -0,0 +1,19 @@ + + + + + 10 + 5 + 100 + + + + + + -160 -160 -183 + 160 160 183 + + + + + diff --git a/tests/test_filter_energyout/tallies.xml b/tests/test_filter_energyout/tallies.xml new file mode 100644 index 000000000..ebec597f1 --- /dev/null +++ b/tests/test_filter_energyout/tallies.xml @@ -0,0 +1,9 @@ + + + + + + scatter + + + \ No newline at end of file diff --git a/tests/test_filter_energyout/test_filter_energyout.py b/tests/test_filter_energyout/test_filter_energyout.py new file mode 100644 index 000000000..ca8daa926 --- /dev/null +++ b/tests/test_filter_energyout/test_filter_energyout.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_statepoint_exists(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def test_output_exists(): + assert os.path.exists(pwd + '/tallies.out') + +def teardown(): + output = [pwd + '/statepoint.10.binary', pwd + '/tallies.out'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_filter_group_transfer/geometry.xml b/tests/test_filter_group_transfer/geometry.xml new file mode 100644 index 000000000..2407bf74b --- /dev/null +++ b/tests/test_filter_group_transfer/geometry.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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8 8 8 8 8 7 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 + 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 7 + 7 7 7 7 7 7 7 8 8 8 8 8 8 8 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + + + + \ No newline at end of file diff --git a/tests/test_filter_group_transfer/materials.xml b/tests/test_filter_group_transfer/materials.xml new file mode 100644 index 000000000..fca25cc87 --- /dev/null +++ b/tests/test_filter_group_transfer/materials.xml @@ -0,0 +1,272 @@ + + + + 70c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_filter_group_transfer/settings.xml b/tests/test_filter_group_transfer/settings.xml new file mode 100644 index 000000000..517637a59 --- /dev/null +++ b/tests/test_filter_group_transfer/settings.xml @@ -0,0 +1,19 @@ + + + + + 10 + 5 + 100 + + + + + + -160 -160 -183 + 160 160 183 + + + + + diff --git a/tests/test_filter_group_transfer/tallies.xml b/tests/test_filter_group_transfer/tallies.xml new file mode 100644 index 000000000..64a6fa5e1 --- /dev/null +++ b/tests/test_filter_group_transfer/tallies.xml @@ -0,0 +1,10 @@ + + + + + + + scatter nu-fission + + + \ No newline at end of file diff --git a/tests/test_filter_group_transfer/test_filter_group_transfer.py b/tests/test_filter_group_transfer/test_filter_group_transfer.py new file mode 100644 index 000000000..ca8daa926 --- /dev/null +++ b/tests/test_filter_group_transfer/test_filter_group_transfer.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_statepoint_exists(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def test_output_exists(): + assert os.path.exists(pwd + '/tallies.out') + +def teardown(): + output = [pwd + '/statepoint.10.binary', pwd + '/tallies.out'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_filter_material/geometry.xml b/tests/test_filter_material/geometry.xml new file mode 100644 index 000000000..2407bf74b --- /dev/null +++ b/tests/test_filter_material/geometry.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 1 1 1 1 1 1 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7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + + + + \ No newline at end of file diff --git a/tests/test_filter_material/materials.xml b/tests/test_filter_material/materials.xml new file mode 100644 index 000000000..fca25cc87 --- /dev/null +++ b/tests/test_filter_material/materials.xml @@ -0,0 +1,272 @@ + + + + 70c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_filter_material/settings.xml b/tests/test_filter_material/settings.xml new file mode 100644 index 000000000..517637a59 --- /dev/null +++ b/tests/test_filter_material/settings.xml @@ -0,0 +1,19 @@ + + + + + 10 + 5 + 100 + + + + + + -160 -160 -183 + 160 160 183 + + + + + diff --git a/tests/test_filter_material/tallies.xml b/tests/test_filter_material/tallies.xml new file mode 100644 index 000000000..4b8d1ce8f --- /dev/null +++ b/tests/test_filter_material/tallies.xml @@ -0,0 +1,9 @@ + + + + + + total + + + \ No newline at end of file diff --git a/tests/test_filter_material/test_filter_material.py b/tests/test_filter_material/test_filter_material.py new file mode 100644 index 000000000..ca8daa926 --- /dev/null +++ b/tests/test_filter_material/test_filter_material.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_statepoint_exists(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def test_output_exists(): + assert os.path.exists(pwd + '/tallies.out') + +def teardown(): + output = [pwd + '/statepoint.10.binary', pwd + '/tallies.out'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_filter_mesh_2d/geometry.xml b/tests/test_filter_mesh_2d/geometry.xml new file mode 100644 index 000000000..2407bf74b --- /dev/null +++ b/tests/test_filter_mesh_2d/geometry.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.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 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 + 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 7 + 7 7 7 7 7 7 7 8 8 8 8 8 8 8 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + + + + \ No newline at end of file diff --git a/tests/test_filter_mesh_2d/materials.xml b/tests/test_filter_mesh_2d/materials.xml new file mode 100644 index 000000000..fca25cc87 --- /dev/null +++ b/tests/test_filter_mesh_2d/materials.xml @@ -0,0 +1,272 @@ + + + + 70c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_filter_mesh_2d/settings.xml b/tests/test_filter_mesh_2d/settings.xml new file mode 100644 index 000000000..517637a59 --- /dev/null +++ b/tests/test_filter_mesh_2d/settings.xml @@ -0,0 +1,19 @@ + + + + + 10 + 5 + 100 + + + + + + -160 -160 -183 + 160 160 183 + + + + + diff --git a/tests/test_filter_mesh_2d/tallies.xml b/tests/test_filter_mesh_2d/tallies.xml new file mode 100644 index 000000000..e046549de --- /dev/null +++ b/tests/test_filter_mesh_2d/tallies.xml @@ -0,0 +1,16 @@ + + + + + rectangular + -182.07 -182.07 + 182.07 182.07 + 17 17 + + + + + total + + + \ No newline at end of file diff --git a/tests/test_filter_mesh_2d/test_filter_mesh_2d.py b/tests/test_filter_mesh_2d/test_filter_mesh_2d.py new file mode 100644 index 000000000..ca8daa926 --- /dev/null +++ b/tests/test_filter_mesh_2d/test_filter_mesh_2d.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_statepoint_exists(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def test_output_exists(): + assert os.path.exists(pwd + '/tallies.out') + +def teardown(): + output = [pwd + '/statepoint.10.binary', pwd + '/tallies.out'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_filter_mesh_3d/geometry.xml b/tests/test_filter_mesh_3d/geometry.xml new file mode 100644 index 000000000..2407bf74b --- /dev/null +++ b/tests/test_filter_mesh_3d/geometry.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1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h_3d/materials.xml b/tests/test_filter_mesh_3d/materials.xml new file mode 100644 index 000000000..fca25cc87 --- /dev/null +++ b/tests/test_filter_mesh_3d/materials.xml @@ -0,0 +1,272 @@ + + + + 70c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_filter_mesh_3d/settings.xml b/tests/test_filter_mesh_3d/settings.xml new file mode 100644 index 000000000..517637a59 --- /dev/null +++ b/tests/test_filter_mesh_3d/settings.xml @@ -0,0 +1,19 @@ + + + + + 10 + 5 + 100 + + + + + + -160 -160 -183 + 160 160 183 + + + + + diff --git a/tests/test_filter_mesh_3d/tallies.xml b/tests/test_filter_mesh_3d/tallies.xml new file mode 100644 index 000000000..b2be27279 --- /dev/null +++ b/tests/test_filter_mesh_3d/tallies.xml @@ -0,0 +1,16 @@ + + + + + rectangular + -182.07 -182.07 -183.00 + 182.07 182.07 183.00 + 17 17 17 + + + + + total + + + \ No newline at end of file diff --git a/tests/test_filter_mesh_3d/test_filter_mesh_3d.py b/tests/test_filter_mesh_3d/test_filter_mesh_3d.py new file mode 100644 index 000000000..ca8daa926 --- /dev/null +++ b/tests/test_filter_mesh_3d/test_filter_mesh_3d.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_statepoint_exists(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def test_output_exists(): + assert os.path.exists(pwd + '/tallies.out') + +def teardown(): + output = [pwd + '/statepoint.10.binary', pwd + '/tallies.out'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_filter_universe/geometry.xml b/tests/test_filter_universe/geometry.xml new file mode 100644 index 000000000..2407bf74b --- /dev/null +++ b/tests/test_filter_universe/geometry.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 3 3 3 3 3 3 3 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8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 + 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 7 + 7 7 7 7 7 7 7 8 8 8 8 8 8 8 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + + + + \ No newline at end of file diff --git a/tests/test_filter_universe/materials.xml b/tests/test_filter_universe/materials.xml new file mode 100644 index 000000000..fca25cc87 --- /dev/null +++ b/tests/test_filter_universe/materials.xml @@ -0,0 +1,272 @@ + + + + 70c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_filter_universe/settings.xml b/tests/test_filter_universe/settings.xml new file mode 100644 index 000000000..517637a59 --- /dev/null +++ b/tests/test_filter_universe/settings.xml @@ -0,0 +1,19 @@ + + + + + 10 + 5 + 100 + + + + + + -160 -160 -183 + 160 160 183 + + + + + diff --git a/tests/test_filter_universe/tallies.xml b/tests/test_filter_universe/tallies.xml new file mode 100644 index 000000000..bcf16f53a --- /dev/null +++ b/tests/test_filter_universe/tallies.xml @@ -0,0 +1,9 @@ + + + + + + total + + + \ No newline at end of file diff --git a/tests/test_filter_universe/test_filter_universe.py b/tests/test_filter_universe/test_filter_universe.py new file mode 100644 index 000000000..ca8daa926 --- /dev/null +++ b/tests/test_filter_universe/test_filter_universe.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_statepoint_exists(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def test_output_exists(): + assert os.path.exists(pwd + '/tallies.out') + +def teardown(): + output = [pwd + '/statepoint.10.binary', pwd + '/tallies.out'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_fixed_source/geometry.xml b/tests/test_fixed_source/geometry.xml new file mode 100644 index 000000000..612e46132 --- /dev/null +++ b/tests/test_fixed_source/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_fixed_source/materials.xml b/tests/test_fixed_source/materials.xml new file mode 100644 index 000000000..2913b2182 --- /dev/null +++ b/tests/test_fixed_source/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_fixed_source/settings.xml b/tests/test_fixed_source/settings.xml new file mode 100644 index 000000000..8a0ddb251 --- /dev/null +++ b/tests/test_fixed_source/settings.xml @@ -0,0 +1,13 @@ + + + + + 10 + 100 + + + + + + + diff --git a/tests/test_fixed_source/test_fixed_source.py b/tests/test_fixed_source/test_fixed_source.py new file mode 100644 index 000000000..260af7577 --- /dev/null +++ b/tests/test_fixed_source/test_fixed_source.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_created_statepoint(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def teardown(): + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_lattice/geometry.xml b/tests/test_lattice/geometry.xml new file mode 100644 index 000000000..49328d5a8 --- /dev/null +++ b/tests/test_lattice/geometry.xml @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rectangular + 29 29 + -0.889 -0.889 + 1.778 1.778 + + 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 + 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 + 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 + 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 + 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 + 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 + 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 + 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 + 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 + 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2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 2 + 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 + 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tests/test_lattice/materials.xml b/tests/test_lattice/materials.xml new file mode 100644 index 000000000..7ef015678 --- /dev/null +++ b/tests/test_lattice/materials.xml @@ -0,0 +1,141 @@ + + + + + + 70c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tests/test_lattice/plots.xml b/tests/test_lattice/plots.xml new file mode 100644 index 000000000..e44b90912 --- /dev/null +++ b/tests/test_lattice/plots.xml @@ -0,0 +1,20 @@ + + + + + + + xy + 25. 25. 4.5 + 50. 50. + 1000 1000 + + + \ No newline at end of file diff --git a/tests/test_lattice/settings.xml b/tests/test_lattice/settings.xml new file mode 100644 index 000000000..d152920c1 --- /dev/null +++ b/tests/test_lattice/settings.xml @@ -0,0 +1,28 @@ + + + + + + + 10 + 5 + 100 + + + + + + 0. 0. 3.5560 + 21.336 21.336 94.9960 + + + + + diff --git a/tests/test_lattice/test_lattice.py b/tests/test_lattice/test_lattice.py new file mode 100644 index 000000000..c2b419f64 --- /dev/null +++ b/tests/test_lattice/test_lattice.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def teardown(): + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_lattice_multiple/geometry.xml b/tests/test_lattice_multiple/geometry.xml new file mode 100644 index 000000000..2407bf74b --- /dev/null +++ b/tests/test_lattice_multiple/geometry.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 + 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 + 3 3 3 3 3 4 3 3 4 3 3 4 3 3 3 3 3 + 3 3 3 4 3 3 3 3 3 3 3 3 3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 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 + 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 7 + 7 7 7 7 7 7 7 8 8 8 8 8 8 8 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + + + + \ No newline at end of file diff --git a/tests/test_lattice_multiple/materials.xml b/tests/test_lattice_multiple/materials.xml new file mode 100644 index 000000000..fca25cc87 --- /dev/null +++ b/tests/test_lattice_multiple/materials.xml @@ -0,0 +1,272 @@ + + + + 70c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_lattice_multiple/settings.xml b/tests/test_lattice_multiple/settings.xml new file mode 100644 index 000000000..517637a59 --- /dev/null +++ b/tests/test_lattice_multiple/settings.xml @@ -0,0 +1,19 @@ + + + + + 10 + 5 + 100 + + + + + + -160 -160 -183 + 160 160 183 + + + + + diff --git a/tests/test_lattice_multiple/test_lattice_multiple.py b/tests/test_lattice_multiple/test_lattice_multiple.py new file mode 100644 index 000000000..c2b419f64 --- /dev/null +++ b/tests/test_lattice_multiple/test_lattice_multiple.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def teardown(): + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_output/geometry.xml b/tests/test_output/geometry.xml new file mode 100644 index 000000000..612e46132 --- /dev/null +++ b/tests/test_output/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_output/materials.xml b/tests/test_output/materials.xml new file mode 100644 index 000000000..1f85510e0 --- /dev/null +++ b/tests/test_output/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_output/settings.xml b/tests/test_output/settings.xml new file mode 100644 index 000000000..70116af72 --- /dev/null +++ b/tests/test_output/settings.xml @@ -0,0 +1,18 @@ + + + + summary cross_sections + + + 10 + 5 + 1000 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_output/test_output.py b/tests/test_output/test_output.py new file mode 100644 index 000000000..2a0f0433f --- /dev/null +++ b/tests/test_output/test_output.py @@ -0,0 +1,32 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_summary_exists(): + assert os.path.exists(pwd + '/summary.out') + +def test_cross_sections_exists(): + assert os.path.exists(pwd + '/cross_sections.out') + +def test_statepoint_exists(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def teardown(): + output = [pwd + i for i in ['/statepoint.10.binary', '/summary.out', + '/cross_sections.out']] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_plot_background/geometry.xml b/tests/test_plot_background/geometry.xml new file mode 100644 index 000000000..612e46132 --- /dev/null +++ b/tests/test_plot_background/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_plot_background/materials.xml b/tests/test_plot_background/materials.xml new file mode 100644 index 000000000..1f85510e0 --- /dev/null +++ b/tests/test_plot_background/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_plot_background/plots.xml b/tests/test_plot_background/plots.xml new file mode 100644 index 000000000..879d2b30d --- /dev/null +++ b/tests/test_plot_background/plots.xml @@ -0,0 +1,11 @@ + + + + + 0. 0. 0. + 30. 30. + 200 200 + 0 0 0 + + + diff --git a/tests/test_plot_background/settings.xml b/tests/test_plot_background/settings.xml new file mode 100644 index 000000000..a6fd5da19 --- /dev/null +++ b/tests/test_plot_background/settings.xml @@ -0,0 +1,16 @@ + + + + + 10 + 5 + 1000 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_plot_background/test_plot_background.py b/tests/test_plot_background/test_plot_background.py new file mode 100644 index 000000000..21977eaac --- /dev/null +++ b/tests/test_plot_background/test_plot_background.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc', '-p'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_plot_exists(): + assert os.path.exists(pwd + '/1_plot.ppm') + +def teardown(): + output = [pwd + '/1_plot.ppm'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_plot_basis/geometry.xml b/tests/test_plot_basis/geometry.xml new file mode 100644 index 000000000..ac00ebaf5 --- /dev/null +++ b/tests/test_plot_basis/geometry.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/tests/test_plot_basis/materials.xml b/tests/test_plot_basis/materials.xml new file mode 100644 index 000000000..1141d81f7 --- /dev/null +++ b/tests/test_plot_basis/materials.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_plot_basis/plots.xml b/tests/test_plot_basis/plots.xml new file mode 100644 index 000000000..492236d37 --- /dev/null +++ b/tests/test_plot_basis/plots.xml @@ -0,0 +1,22 @@ + + + + + 0. 0. 0. + 25 25 + 200 200 + + + + 0. 0. 0. + 25 25 + 200 200 + + + + 0. 0. 0. + 25 25 + 200 200 + + + diff --git a/tests/test_plot_basis/settings.xml b/tests/test_plot_basis/settings.xml new file mode 100644 index 000000000..a6fd5da19 --- /dev/null +++ b/tests/test_plot_basis/settings.xml @@ -0,0 +1,16 @@ + + + + + 10 + 5 + 1000 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_plot_basis/test_plot_basis.py b/tests/test_plot_basis/test_plot_basis.py new file mode 100644 index 000000000..3ae72c998 --- /dev/null +++ b/tests/test_plot_basis/test_plot_basis.py @@ -0,0 +1,27 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc', '-p'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_plots_exists(): + assert os.path.exists(pwd + '/1_plot.ppm') + assert os.path.exists(pwd + '/2_plot.ppm') + assert os.path.exists(pwd + '/3_plot.ppm') + +def teardown(): + output = [pwd + '/1_plot.ppm', pwd + '/2_plot.ppm', pwd + '/3_plot.ppm'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_plot_colspec/geometry.xml b/tests/test_plot_colspec/geometry.xml new file mode 100644 index 000000000..612e46132 --- /dev/null +++ b/tests/test_plot_colspec/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_plot_colspec/materials.xml b/tests/test_plot_colspec/materials.xml new file mode 100644 index 000000000..1f85510e0 --- /dev/null +++ b/tests/test_plot_colspec/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_plot_colspec/plots.xml b/tests/test_plot_colspec/plots.xml new file mode 100644 index 000000000..27edcb11b --- /dev/null +++ b/tests/test_plot_colspec/plots.xml @@ -0,0 +1,11 @@ + + + + + 0. 0. 0. + 30. 30. + 200 200 + + + + diff --git a/tests/test_plot_colspec/settings.xml b/tests/test_plot_colspec/settings.xml new file mode 100644 index 000000000..a6fd5da19 --- /dev/null +++ b/tests/test_plot_colspec/settings.xml @@ -0,0 +1,16 @@ + + + + + 10 + 5 + 1000 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_plot_colspec/test_plot_colspec.py b/tests/test_plot_colspec/test_plot_colspec.py new file mode 100644 index 000000000..21977eaac --- /dev/null +++ b/tests/test_plot_colspec/test_plot_colspec.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc', '-p'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_plot_exists(): + assert os.path.exists(pwd + '/1_plot.ppm') + +def teardown(): + output = [pwd + '/1_plot.ppm'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_plot_mask/geometry.xml b/tests/test_plot_mask/geometry.xml new file mode 100644 index 000000000..ac00ebaf5 --- /dev/null +++ b/tests/test_plot_mask/geometry.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/tests/test_plot_mask/materials.xml b/tests/test_plot_mask/materials.xml new file mode 100644 index 000000000..1141d81f7 --- /dev/null +++ b/tests/test_plot_mask/materials.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_plot_mask/plots.xml b/tests/test_plot_mask/plots.xml new file mode 100644 index 000000000..72b40f72c --- /dev/null +++ b/tests/test_plot_mask/plots.xml @@ -0,0 +1,25 @@ + + + + + 0. 0. 0. + 25 25 + 200 200 + + + + + 0. 0. 0. + 25 25 + 200 200 + + + + + 0. 0. 0. + 25 25 + 200 200 + + + + diff --git a/tests/test_plot_mask/settings.xml b/tests/test_plot_mask/settings.xml new file mode 100644 index 000000000..a6fd5da19 --- /dev/null +++ b/tests/test_plot_mask/settings.xml @@ -0,0 +1,16 @@ + + + + + 10 + 5 + 1000 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_plot_mask/test_plot_mask.py b/tests/test_plot_mask/test_plot_mask.py new file mode 100644 index 000000000..3ae72c998 --- /dev/null +++ b/tests/test_plot_mask/test_plot_mask.py @@ -0,0 +1,27 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc', '-p'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_plots_exists(): + assert os.path.exists(pwd + '/1_plot.ppm') + assert os.path.exists(pwd + '/2_plot.ppm') + assert os.path.exists(pwd + '/3_plot.ppm') + +def teardown(): + output = [pwd + '/1_plot.ppm', pwd + '/2_plot.ppm', pwd + '/3_plot.ppm'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_ptables_off/geometry.xml b/tests/test_ptables_off/geometry.xml new file mode 100644 index 000000000..612e46132 --- /dev/null +++ b/tests/test_ptables_off/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_ptables_off/materials.xml b/tests/test_ptables_off/materials.xml new file mode 100644 index 000000000..1f85510e0 --- /dev/null +++ b/tests/test_ptables_off/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_ptables_off/settings.xml b/tests/test_ptables_off/settings.xml new file mode 100644 index 000000000..ab5404b20 --- /dev/null +++ b/tests/test_ptables_off/settings.xml @@ -0,0 +1,18 @@ + + + + false + + + 10 + 5 + 1000 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_ptables_off/test_ptables_off.py b/tests/test_ptables_off/test_ptables_off.py new file mode 100644 index 000000000..260af7577 --- /dev/null +++ b/tests/test_ptables_off/test_ptables_off.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_created_statepoint(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def teardown(): + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_reflective_cone/geometry.xml b/tests/test_reflective_cone/geometry.xml new file mode 100644 index 000000000..979f18f7a --- /dev/null +++ b/tests/test_reflective_cone/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_reflective_cone/materials.xml b/tests/test_reflective_cone/materials.xml new file mode 100644 index 000000000..1f85510e0 --- /dev/null +++ b/tests/test_reflective_cone/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_reflective_cone/settings.xml b/tests/test_reflective_cone/settings.xml new file mode 100644 index 000000000..6823d3c5a --- /dev/null +++ b/tests/test_reflective_cone/settings.xml @@ -0,0 +1,14 @@ + + + + + 10 + 5 + 100 + + + + + + + diff --git a/tests/test_reflective_cone/test_reflective_cone.py b/tests/test_reflective_cone/test_reflective_cone.py new file mode 100644 index 000000000..c2b419f64 --- /dev/null +++ b/tests/test_reflective_cone/test_reflective_cone.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def teardown(): + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_reflective_cylinder/geometry.xml b/tests/test_reflective_cylinder/geometry.xml new file mode 100644 index 000000000..ce1082f3d --- /dev/null +++ b/tests/test_reflective_cylinder/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_reflective_cylinder/materials.xml b/tests/test_reflective_cylinder/materials.xml new file mode 100644 index 000000000..1f85510e0 --- /dev/null +++ b/tests/test_reflective_cylinder/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_reflective_cylinder/settings.xml b/tests/test_reflective_cylinder/settings.xml new file mode 100644 index 000000000..a6fd5da19 --- /dev/null +++ b/tests/test_reflective_cylinder/settings.xml @@ -0,0 +1,16 @@ + + + + + 10 + 5 + 1000 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_reflective_cylinder/test_reflective_cylinder.py b/tests/test_reflective_cylinder/test_reflective_cylinder.py new file mode 100644 index 000000000..c2b419f64 --- /dev/null +++ b/tests/test_reflective_cylinder/test_reflective_cylinder.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def teardown(): + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_reflective_plane/geometry.xml b/tests/test_reflective_plane/geometry.xml new file mode 100644 index 000000000..454441436 --- /dev/null +++ b/tests/test_reflective_plane/geometry.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/tests/test_reflective_plane/materials.xml b/tests/test_reflective_plane/materials.xml new file mode 100644 index 000000000..1f85510e0 --- /dev/null +++ b/tests/test_reflective_plane/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_reflective_plane/settings.xml b/tests/test_reflective_plane/settings.xml new file mode 100644 index 000000000..a6fd5da19 --- /dev/null +++ b/tests/test_reflective_plane/settings.xml @@ -0,0 +1,16 @@ + + + + + 10 + 5 + 1000 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_reflective_plane/test_reflective_plane.py b/tests/test_reflective_plane/test_reflective_plane.py new file mode 100644 index 000000000..c2b419f64 --- /dev/null +++ b/tests/test_reflective_plane/test_reflective_plane.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def teardown(): + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_reflective_sphere/geometry.xml b/tests/test_reflective_sphere/geometry.xml new file mode 100644 index 000000000..5f36d2396 --- /dev/null +++ b/tests/test_reflective_sphere/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_reflective_sphere/materials.xml b/tests/test_reflective_sphere/materials.xml new file mode 100644 index 000000000..1f85510e0 --- /dev/null +++ b/tests/test_reflective_sphere/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_reflective_sphere/settings.xml b/tests/test_reflective_sphere/settings.xml new file mode 100644 index 000000000..a6fd5da19 --- /dev/null +++ b/tests/test_reflective_sphere/settings.xml @@ -0,0 +1,16 @@ + + + + + 10 + 5 + 1000 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_reflective_sphere/test_reflective_sphere.py b/tests/test_reflective_sphere/test_reflective_sphere.py new file mode 100644 index 000000000..c2b419f64 --- /dev/null +++ b/tests/test_reflective_sphere/test_reflective_sphere.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def teardown(): + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_rotation/geometry.xml b/tests/test_rotation/geometry.xml new file mode 100644 index 000000000..7306dabde --- /dev/null +++ b/tests/test_rotation/geometry.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/tests/test_rotation/materials.xml b/tests/test_rotation/materials.xml new file mode 100644 index 000000000..1f85510e0 --- /dev/null +++ b/tests/test_rotation/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_rotation/settings.xml b/tests/test_rotation/settings.xml new file mode 100644 index 000000000..a6fd5da19 --- /dev/null +++ b/tests/test_rotation/settings.xml @@ -0,0 +1,16 @@ + + + + + 10 + 5 + 1000 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_rotation/test_rotation.py b/tests/test_rotation/test_rotation.py new file mode 100644 index 000000000..c2b419f64 --- /dev/null +++ b/tests/test_rotation/test_rotation.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def teardown(): + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_salphabeta/geometry.xml b/tests/test_salphabeta/geometry.xml new file mode 100644 index 000000000..ef0598842 --- /dev/null +++ b/tests/test_salphabeta/geometry.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/tests/test_salphabeta/materials.xml b/tests/test_salphabeta/materials.xml new file mode 100644 index 000000000..031fe574b --- /dev/null +++ b/tests/test_salphabeta/materials.xml @@ -0,0 +1,28 @@ + + + + 70c + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_salphabeta/settings.xml b/tests/test_salphabeta/settings.xml new file mode 100644 index 000000000..a6fd5da19 --- /dev/null +++ b/tests/test_salphabeta/settings.xml @@ -0,0 +1,16 @@ + + + + + 10 + 5 + 1000 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_salphabeta/test_salphabeta.py b/tests/test_salphabeta/test_salphabeta.py new file mode 100644 index 000000000..c2b419f64 --- /dev/null +++ b/tests/test_salphabeta/test_salphabeta.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def teardown(): + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_score_MT/geometry.xml b/tests/test_score_MT/geometry.xml new file mode 100644 index 000000000..2407bf74b --- /dev/null +++ b/tests/test_score_MT/geometry.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +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 8 8 8 8 8 8 8 8 7 7 7 7 7 + 7 7 7 7 7 7 7 8 8 8 8 8 8 8 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + + + + \ No newline at end of file diff --git a/tests/test_score_MT/materials.xml b/tests/test_score_MT/materials.xml new file mode 100644 index 000000000..fca25cc87 --- /dev/null +++ b/tests/test_score_MT/materials.xml @@ -0,0 +1,272 @@ + + + + 70c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_score_MT/settings.xml b/tests/test_score_MT/settings.xml new file mode 100644 index 000000000..517637a59 --- /dev/null +++ b/tests/test_score_MT/settings.xml @@ -0,0 +1,19 @@ + + + + + 10 + 5 + 100 + + + + + + -160 -160 -183 + 160 160 183 + + + + + diff --git a/tests/test_score_MT/tallies.xml b/tests/test_score_MT/tallies.xml new file mode 100644 index 000000000..ef7ff8dd8 --- /dev/null +++ b/tests/test_score_MT/tallies.xml @@ -0,0 +1,9 @@ + + + + + + n2n 16 51 102 + + + \ No newline at end of file diff --git a/tests/test_score_MT/test_score_MT.py b/tests/test_score_MT/test_score_MT.py new file mode 100644 index 000000000..ca8daa926 --- /dev/null +++ b/tests/test_score_MT/test_score_MT.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_statepoint_exists(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def test_output_exists(): + assert os.path.exists(pwd + '/tallies.out') + +def teardown(): + output = [pwd + '/statepoint.10.binary', pwd + '/tallies.out'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_score_absorption/geometry.xml b/tests/test_score_absorption/geometry.xml new file mode 100644 index 000000000..2407bf74b --- /dev/null +++ b/tests/test_score_absorption/geometry.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 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8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 + 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 7 + 7 7 7 7 7 7 7 8 8 8 8 8 8 8 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + + + + \ No newline at end of file diff --git a/tests/test_score_absorption/materials.xml b/tests/test_score_absorption/materials.xml new file mode 100644 index 000000000..fca25cc87 --- /dev/null +++ b/tests/test_score_absorption/materials.xml @@ -0,0 +1,272 @@ + + + + 70c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_score_absorption/settings.xml b/tests/test_score_absorption/settings.xml new file mode 100644 index 000000000..517637a59 --- /dev/null +++ b/tests/test_score_absorption/settings.xml @@ -0,0 +1,19 @@ + + + + + 10 + 5 + 100 + + + + + + -160 -160 -183 + 160 160 183 + + + + + diff --git a/tests/test_score_absorption/tallies.xml b/tests/test_score_absorption/tallies.xml new file mode 100644 index 000000000..8cbcef251 --- /dev/null +++ b/tests/test_score_absorption/tallies.xml @@ -0,0 +1,15 @@ + + + + + + absorption + + + + + analog + absorption + + + \ No newline at end of file diff --git a/tests/test_score_absorption/test_score_absorption.py b/tests/test_score_absorption/test_score_absorption.py new file mode 100644 index 000000000..ca8daa926 --- /dev/null +++ b/tests/test_score_absorption/test_score_absorption.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_statepoint_exists(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def test_output_exists(): + assert os.path.exists(pwd + '/tallies.out') + +def teardown(): + output = [pwd + '/statepoint.10.binary', pwd + '/tallies.out'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_score_current/geometry.xml b/tests/test_score_current/geometry.xml new file mode 100644 index 000000000..2407bf74b --- /dev/null +++ b/tests/test_score_current/geometry.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1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ectangular + 21 21 + -224.91 -224.91 + 21.42 21.42 + + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 8 8 8 8 8 8 8 7 7 7 7 7 7 7 + 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 7 + 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 + 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 7 + 7 7 7 7 7 7 7 8 8 8 8 8 8 8 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + + + + \ No newline at end of file diff --git a/tests/test_score_current/materials.xml b/tests/test_score_current/materials.xml new file mode 100644 index 000000000..fca25cc87 --- /dev/null +++ b/tests/test_score_current/materials.xml @@ -0,0 +1,272 @@ + + + + 70c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_score_current/settings.xml b/tests/test_score_current/settings.xml new file mode 100644 index 000000000..517637a59 --- /dev/null +++ b/tests/test_score_current/settings.xml @@ -0,0 +1,19 @@ + + + + + 10 + 5 + 100 + + + + + + -160 -160 -183 + 160 160 183 + + + + + diff --git a/tests/test_score_current/tallies.xml b/tests/test_score_current/tallies.xml new file mode 100644 index 000000000..a740949fa --- /dev/null +++ b/tests/test_score_current/tallies.xml @@ -0,0 +1,22 @@ + + + + + rectangular + -182.07 -182.07 -183.00 + 182.07 182.07 183.00 + 17 17 17 + + + + + current + + + + + + current + + + \ No newline at end of file diff --git a/tests/test_score_current/test_score_current.py b/tests/test_score_current/test_score_current.py new file mode 100644 index 000000000..ca8daa926 --- /dev/null +++ b/tests/test_score_current/test_score_current.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_statepoint_exists(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def test_output_exists(): + assert os.path.exists(pwd + '/tallies.out') + +def teardown(): + output = [pwd + '/statepoint.10.binary', pwd + '/tallies.out'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_score_events/geometry.xml b/tests/test_score_events/geometry.xml new file mode 100644 index 000000000..2407bf74b --- /dev/null +++ b/tests/test_score_events/geometry.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 + 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 + 3 3 3 3 3 4 3 3 4 3 3 4 3 3 3 3 3 + 3 3 3 4 3 3 3 3 3 3 3 3 3 4 3 3 3 + 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8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 + 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 7 + 7 7 7 7 7 7 7 8 8 8 8 8 8 8 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + + + + \ No newline at end of file diff --git a/tests/test_score_events/materials.xml b/tests/test_score_events/materials.xml new file mode 100644 index 000000000..fca25cc87 --- /dev/null +++ b/tests/test_score_events/materials.xml @@ -0,0 +1,272 @@ + + + + 70c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_score_events/settings.xml b/tests/test_score_events/settings.xml new file mode 100644 index 000000000..517637a59 --- /dev/null +++ b/tests/test_score_events/settings.xml @@ -0,0 +1,19 @@ + + + + + 10 + 5 + 100 + + + + + + -160 -160 -183 + 160 160 183 + + + + + diff --git a/tests/test_score_events/tallies.xml b/tests/test_score_events/tallies.xml new file mode 100644 index 000000000..ac47f9ec8 --- /dev/null +++ b/tests/test_score_events/tallies.xml @@ -0,0 +1,17 @@ + + + + + + + events + + + + + + analog + events + + + \ No newline at end of file diff --git a/tests/test_score_events/test_score_events.py b/tests/test_score_events/test_score_events.py new file mode 100644 index 000000000..ca8daa926 --- /dev/null +++ b/tests/test_score_events/test_score_events.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_statepoint_exists(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def test_output_exists(): + assert os.path.exists(pwd + '/tallies.out') + +def teardown(): + output = [pwd + '/statepoint.10.binary', pwd + '/tallies.out'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_score_fission/geometry.xml b/tests/test_score_fission/geometry.xml new file mode 100644 index 000000000..2407bf74b --- /dev/null +++ b/tests/test_score_fission/geometry.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 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8 8 8 7 7 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 + 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 7 + 7 7 7 7 7 7 7 8 8 8 8 8 8 8 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + + + + \ No newline at end of file diff --git a/tests/test_score_fission/materials.xml b/tests/test_score_fission/materials.xml new file mode 100644 index 000000000..fca25cc87 --- /dev/null +++ b/tests/test_score_fission/materials.xml @@ -0,0 +1,272 @@ + + + + 70c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_score_fission/settings.xml b/tests/test_score_fission/settings.xml new file mode 100644 index 000000000..517637a59 --- /dev/null +++ b/tests/test_score_fission/settings.xml @@ -0,0 +1,19 @@ + + + + + 10 + 5 + 100 + + + + + + -160 -160 -183 + 160 160 183 + + + + + diff --git a/tests/test_score_fission/tallies.xml b/tests/test_score_fission/tallies.xml new file mode 100644 index 000000000..d56614bdf --- /dev/null +++ b/tests/test_score_fission/tallies.xml @@ -0,0 +1,15 @@ + + + + + + fission + + + + + analog + fission + + + \ No newline at end of file diff --git a/tests/test_score_fission/test_score_fission.py b/tests/test_score_fission/test_score_fission.py new file mode 100644 index 000000000..ca8daa926 --- /dev/null +++ b/tests/test_score_fission/test_score_fission.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_statepoint_exists(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def test_output_exists(): + assert os.path.exists(pwd + '/tallies.out') + +def teardown(): + output = [pwd + '/statepoint.10.binary', pwd + '/tallies.out'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_score_flux/geometry.xml b/tests/test_score_flux/geometry.xml new file mode 100644 index 000000000..2407bf74b --- /dev/null +++ b/tests/test_score_flux/geometry.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + + + + \ No newline at end of file diff --git a/tests/test_score_flux/materials.xml b/tests/test_score_flux/materials.xml new file mode 100644 index 000000000..fca25cc87 --- /dev/null +++ b/tests/test_score_flux/materials.xml @@ -0,0 +1,272 @@ + + + + 70c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_score_flux/settings.xml b/tests/test_score_flux/settings.xml new file mode 100644 index 000000000..517637a59 --- /dev/null +++ b/tests/test_score_flux/settings.xml @@ -0,0 +1,19 @@ + + + + + 10 + 5 + 100 + + + + + + -160 -160 -183 + 160 160 183 + + + + + diff --git a/tests/test_score_flux/tallies.xml b/tests/test_score_flux/tallies.xml new file mode 100644 index 000000000..30bef7174 --- /dev/null +++ b/tests/test_score_flux/tallies.xml @@ -0,0 +1,9 @@ + + + + + + flux + + + \ No newline at end of file diff --git a/tests/test_score_flux/test_score_flux.py b/tests/test_score_flux/test_score_flux.py new file mode 100644 index 000000000..ca8daa926 --- /dev/null +++ b/tests/test_score_flux/test_score_flux.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_statepoint_exists(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def test_output_exists(): + assert os.path.exists(pwd + '/tallies.out') + +def teardown(): + output = [pwd + '/statepoint.10.binary', pwd + '/tallies.out'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_score_kappafission/geometry.xml b/tests/test_score_kappafission/geometry.xml new file mode 100644 index 000000000..2407bf74b --- /dev/null +++ b/tests/test_score_kappafission/geometry.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 3 3 3 3 3 3 3 3 3 3 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8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 + 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 7 + 7 7 7 7 7 7 7 8 8 8 8 8 8 8 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + + + + \ No newline at end of file diff --git a/tests/test_score_kappafission/materials.xml b/tests/test_score_kappafission/materials.xml new file mode 100644 index 000000000..fca25cc87 --- /dev/null +++ b/tests/test_score_kappafission/materials.xml @@ -0,0 +1,272 @@ + + + + 70c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_score_kappafission/settings.xml b/tests/test_score_kappafission/settings.xml new file mode 100644 index 000000000..517637a59 --- /dev/null +++ b/tests/test_score_kappafission/settings.xml @@ -0,0 +1,19 @@ + + + + + 10 + 5 + 100 + + + + + + -160 -160 -183 + 160 160 183 + + + + + diff --git a/tests/test_score_kappafission/tallies.xml b/tests/test_score_kappafission/tallies.xml new file mode 100644 index 000000000..1b63fdeeb --- /dev/null +++ b/tests/test_score_kappafission/tallies.xml @@ -0,0 +1,9 @@ + + + + + + kappa-fission + + + \ No newline at end of file diff --git a/tests/test_score_kappafission/test_score_kappafission.py b/tests/test_score_kappafission/test_score_kappafission.py new file mode 100644 index 000000000..ca8daa926 --- /dev/null +++ b/tests/test_score_kappafission/test_score_kappafission.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_statepoint_exists(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def test_output_exists(): + assert os.path.exists(pwd + '/tallies.out') + +def teardown(): + output = [pwd + '/statepoint.10.binary', pwd + '/tallies.out'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_score_nufission/geometry.xml b/tests/test_score_nufission/geometry.xml new file mode 100644 index 000000000..2407bf74b --- /dev/null +++ b/tests/test_score_nufission/geometry.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1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 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 8 8 8 8 8 8 8 7 7 7 7 7 7 7 + 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 7 + 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 + 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 7 + 7 7 7 7 7 7 7 8 8 8 8 8 8 8 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + + + + \ No newline at end of file diff --git a/tests/test_score_nufission/materials.xml b/tests/test_score_nufission/materials.xml new file mode 100644 index 000000000..fca25cc87 --- /dev/null +++ b/tests/test_score_nufission/materials.xml @@ -0,0 +1,272 @@ + + + + 70c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_score_nufission/settings.xml b/tests/test_score_nufission/settings.xml new file mode 100644 index 000000000..517637a59 --- /dev/null +++ b/tests/test_score_nufission/settings.xml @@ -0,0 +1,19 @@ + + + + + 10 + 5 + 100 + + + + + + -160 -160 -183 + 160 160 183 + + + + + diff --git a/tests/test_score_nufission/tallies.xml b/tests/test_score_nufission/tallies.xml new file mode 100644 index 000000000..d3e6963f3 --- /dev/null +++ b/tests/test_score_nufission/tallies.xml @@ -0,0 +1,9 @@ + + + + + + nu-fission + + + \ No newline at end of file diff --git a/tests/test_score_nufission/test_score_nufission.py b/tests/test_score_nufission/test_score_nufission.py new file mode 100644 index 000000000..ca8daa926 --- /dev/null +++ b/tests/test_score_nufission/test_score_nufission.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_statepoint_exists(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def test_output_exists(): + assert os.path.exists(pwd + '/tallies.out') + +def teardown(): + output = [pwd + '/statepoint.10.binary', pwd + '/tallies.out'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_score_nuscatter/geometry.xml b/tests/test_score_nuscatter/geometry.xml new file mode 100644 index 000000000..2407bf74b --- /dev/null +++ b/tests/test_score_nuscatter/geometry.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 + 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 + 3 3 3 3 3 4 3 3 4 3 3 4 3 3 3 3 3 + 3 3 3 4 3 3 3 3 3 3 3 3 3 4 3 3 3 + 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 + 3 3 4 3 3 4 3 3 4 3 3 4 3 3 4 3 3 + 3 3 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7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 + 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 7 + 7 7 7 7 7 7 7 8 8 8 8 8 8 8 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + + + + \ No newline at end of file diff --git a/tests/test_score_nuscatter/materials.xml b/tests/test_score_nuscatter/materials.xml new file mode 100644 index 000000000..fca25cc87 --- /dev/null +++ b/tests/test_score_nuscatter/materials.xml @@ -0,0 +1,272 @@ + + + + 70c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_score_nuscatter/settings.xml b/tests/test_score_nuscatter/settings.xml new file mode 100644 index 000000000..517637a59 --- /dev/null +++ b/tests/test_score_nuscatter/settings.xml @@ -0,0 +1,19 @@ + + + + + 10 + 5 + 100 + + + + + + -160 -160 -183 + 160 160 183 + + + + + diff --git a/tests/test_score_nuscatter/tallies.xml b/tests/test_score_nuscatter/tallies.xml new file mode 100644 index 000000000..08f8fa32c --- /dev/null +++ b/tests/test_score_nuscatter/tallies.xml @@ -0,0 +1,9 @@ + + + + + + nu-scatter + + + \ No newline at end of file diff --git a/tests/test_score_nuscatter/test_score_nuscatter.py b/tests/test_score_nuscatter/test_score_nuscatter.py new file mode 100644 index 000000000..ca8daa926 --- /dev/null +++ b/tests/test_score_nuscatter/test_score_nuscatter.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_statepoint_exists(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def test_output_exists(): + assert os.path.exists(pwd + '/tallies.out') + +def teardown(): + output = [pwd + '/statepoint.10.binary', pwd + '/tallies.out'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_score_scatter/geometry.xml b/tests/test_score_scatter/geometry.xml new file mode 100644 index 000000000..2407bf74b --- /dev/null +++ b/tests/test_score_scatter/geometry.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1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 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 + 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 7 + 7 7 7 7 7 7 7 8 8 8 8 8 8 8 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + + + + \ No newline at end of file diff --git a/tests/test_score_scatter/materials.xml b/tests/test_score_scatter/materials.xml new file mode 100644 index 000000000..fca25cc87 --- /dev/null +++ b/tests/test_score_scatter/materials.xml @@ -0,0 +1,272 @@ + + + + 70c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_score_scatter/settings.xml b/tests/test_score_scatter/settings.xml new file mode 100644 index 000000000..517637a59 --- /dev/null +++ b/tests/test_score_scatter/settings.xml @@ -0,0 +1,19 @@ + + + + + 10 + 5 + 100 + + + + + + -160 -160 -183 + 160 160 183 + + + + + diff --git a/tests/test_score_scatter/tallies.xml b/tests/test_score_scatter/tallies.xml new file mode 100644 index 000000000..a4425c0f2 --- /dev/null +++ b/tests/test_score_scatter/tallies.xml @@ -0,0 +1,9 @@ + + + + + + scatter + + + \ No newline at end of file diff --git a/tests/test_score_scatter/test_score_scatter.py b/tests/test_score_scatter/test_score_scatter.py new file mode 100644 index 000000000..ca8daa926 --- /dev/null +++ b/tests/test_score_scatter/test_score_scatter.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_statepoint_exists(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def test_output_exists(): + assert os.path.exists(pwd + '/tallies.out') + +def teardown(): + output = [pwd + '/statepoint.10.binary', pwd + '/tallies.out'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_score_scatter_n/geometry.xml b/tests/test_score_scatter_n/geometry.xml new file mode 100644 index 000000000..2407bf74b --- /dev/null +++ b/tests/test_score_scatter_n/geometry.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + + + + \ No newline at end of file diff --git a/tests/test_score_scatter_n/materials.xml b/tests/test_score_scatter_n/materials.xml new file mode 100644 index 000000000..fca25cc87 --- /dev/null +++ b/tests/test_score_scatter_n/materials.xml @@ -0,0 +1,272 @@ + + + + 70c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_score_scatter_n/settings.xml b/tests/test_score_scatter_n/settings.xml new file mode 100644 index 000000000..517637a59 --- /dev/null +++ b/tests/test_score_scatter_n/settings.xml @@ -0,0 +1,19 @@ + + + + + 10 + 5 + 100 + + + + + + -160 -160 -183 + 160 160 183 + + + + + diff --git a/tests/test_score_scatter_n/tallies.xml b/tests/test_score_scatter_n/tallies.xml new file mode 100644 index 000000000..0164dea35 --- /dev/null +++ b/tests/test_score_scatter_n/tallies.xml @@ -0,0 +1,9 @@ + + + + + + scatter scatter-1 scatter-2 scatter-3 scatter-4 + + + \ No newline at end of file diff --git a/tests/test_score_scatter_n/test_score_scatter_n.py b/tests/test_score_scatter_n/test_score_scatter_n.py new file mode 100644 index 000000000..ca8daa926 --- /dev/null +++ b/tests/test_score_scatter_n/test_score_scatter_n.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_statepoint_exists(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def test_output_exists(): + assert os.path.exists(pwd + '/tallies.out') + +def teardown(): + output = [pwd + '/statepoint.10.binary', pwd + '/tallies.out'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_score_scatter_pn/geometry.xml b/tests/test_score_scatter_pn/geometry.xml new file mode 100644 index 000000000..2407bf74b --- /dev/null +++ b/tests/test_score_scatter_pn/geometry.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 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8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 + 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 7 + 7 7 7 7 7 7 7 8 8 8 8 8 8 8 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + + + + \ No newline at end of file diff --git a/tests/test_score_scatter_pn/materials.xml b/tests/test_score_scatter_pn/materials.xml new file mode 100644 index 000000000..fca25cc87 --- /dev/null +++ b/tests/test_score_scatter_pn/materials.xml @@ -0,0 +1,272 @@ + + + + 70c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_score_scatter_pn/settings.xml b/tests/test_score_scatter_pn/settings.xml new file mode 100644 index 000000000..517637a59 --- /dev/null +++ b/tests/test_score_scatter_pn/settings.xml @@ -0,0 +1,19 @@ + + + + + 10 + 5 + 100 + + + + + + -160 -160 -183 + 160 160 183 + + + + + diff --git a/tests/test_score_scatter_pn/tallies.xml b/tests/test_score_scatter_pn/tallies.xml new file mode 100644 index 000000000..61a7854d6 --- /dev/null +++ b/tests/test_score_scatter_pn/tallies.xml @@ -0,0 +1,14 @@ + + + + + + scatter-0 scatter-1 scatter-2 scatter-3 scatter-4 + + + + + scatter-p4 + + + \ No newline at end of file diff --git a/tests/test_score_scatter_pn/test_score_scatter_pn.py b/tests/test_score_scatter_pn/test_score_scatter_pn.py new file mode 100644 index 000000000..ca8daa926 --- /dev/null +++ b/tests/test_score_scatter_pn/test_score_scatter_pn.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_statepoint_exists(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def test_output_exists(): + assert os.path.exists(pwd + '/tallies.out') + +def teardown(): + output = [pwd + '/statepoint.10.binary', pwd + '/tallies.out'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_score_total/geometry.xml b/tests/test_score_total/geometry.xml new file mode 100644 index 000000000..2407bf74b --- /dev/null +++ b/tests/test_score_total/geometry.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 2 1 1 1 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end of file diff --git a/tests/test_score_total/materials.xml b/tests/test_score_total/materials.xml new file mode 100644 index 000000000..fca25cc87 --- /dev/null +++ b/tests/test_score_total/materials.xml @@ -0,0 +1,272 @@ + + + + 70c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_score_total/settings.xml b/tests/test_score_total/settings.xml new file mode 100644 index 000000000..517637a59 --- /dev/null +++ b/tests/test_score_total/settings.xml @@ -0,0 +1,19 @@ + + + + + 10 + 5 + 100 + + + + + + -160 -160 -183 + 160 160 183 + + + + + diff --git a/tests/test_score_total/tallies.xml b/tests/test_score_total/tallies.xml new file mode 100644 index 000000000..815b84c14 --- /dev/null +++ b/tests/test_score_total/tallies.xml @@ -0,0 +1,9 @@ + + + + + + total + + + \ No newline at end of file diff --git a/tests/test_score_total/test_score_total.py b/tests/test_score_total/test_score_total.py new file mode 100644 index 000000000..ca8daa926 --- /dev/null +++ b/tests/test_score_total/test_score_total.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_statepoint_exists(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def test_output_exists(): + assert os.path.exists(pwd + '/tallies.out') + +def teardown(): + output = [pwd + '/statepoint.10.binary', pwd + '/tallies.out'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_seed/geometry.xml b/tests/test_seed/geometry.xml new file mode 100644 index 000000000..612e46132 --- /dev/null +++ b/tests/test_seed/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_seed/materials.xml b/tests/test_seed/materials.xml new file mode 100644 index 000000000..1f85510e0 --- /dev/null +++ b/tests/test_seed/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_seed/settings.xml b/tests/test_seed/settings.xml new file mode 100644 index 000000000..0514e8a0a --- /dev/null +++ b/tests/test_seed/settings.xml @@ -0,0 +1,18 @@ + + + + 239407351 + + + 10 + 5 + 1000 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_seed/test_seed.py b/tests/test_seed/test_seed.py new file mode 100644 index 000000000..260af7577 --- /dev/null +++ b/tests/test_seed/test_seed.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_created_statepoint(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def teardown(): + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_source_angle_mono/geometry.xml b/tests/test_source_angle_mono/geometry.xml new file mode 100644 index 000000000..612e46132 --- /dev/null +++ b/tests/test_source_angle_mono/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_source_angle_mono/materials.xml b/tests/test_source_angle_mono/materials.xml new file mode 100644 index 000000000..1f85510e0 --- /dev/null +++ b/tests/test_source_angle_mono/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_source_angle_mono/settings.xml b/tests/test_source_angle_mono/settings.xml new file mode 100644 index 000000000..5029aa816 --- /dev/null +++ b/tests/test_source_angle_mono/settings.xml @@ -0,0 +1,15 @@ + + + + + 10 + 5 + 1000 + + + + + + + + diff --git a/tests/test_source_angle_mono/test_source_angle_mono.py b/tests/test_source_angle_mono/test_source_angle_mono.py new file mode 100644 index 000000000..c2b419f64 --- /dev/null +++ b/tests/test_source_angle_mono/test_source_angle_mono.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def teardown(): + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_source_energy_maxwell/geometry.xml b/tests/test_source_energy_maxwell/geometry.xml new file mode 100644 index 000000000..612e46132 --- /dev/null +++ b/tests/test_source_energy_maxwell/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_source_energy_maxwell/materials.xml b/tests/test_source_energy_maxwell/materials.xml new file mode 100644 index 000000000..1f85510e0 --- /dev/null +++ b/tests/test_source_energy_maxwell/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_source_energy_maxwell/settings.xml b/tests/test_source_energy_maxwell/settings.xml new file mode 100644 index 000000000..d0543785b --- /dev/null +++ b/tests/test_source_energy_maxwell/settings.xml @@ -0,0 +1,15 @@ + + + + + 10 + 5 + 1000 + + + + + + + + diff --git a/tests/test_source_energy_maxwell/test_source_energy_maxwell.py b/tests/test_source_energy_maxwell/test_source_energy_maxwell.py new file mode 100644 index 000000000..c2b419f64 --- /dev/null +++ b/tests/test_source_energy_maxwell/test_source_energy_maxwell.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def teardown(): + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_source_energy_mono/geometry.xml b/tests/test_source_energy_mono/geometry.xml new file mode 100644 index 000000000..612e46132 --- /dev/null +++ b/tests/test_source_energy_mono/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_source_energy_mono/materials.xml b/tests/test_source_energy_mono/materials.xml new file mode 100644 index 000000000..1f85510e0 --- /dev/null +++ b/tests/test_source_energy_mono/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_source_energy_mono/settings.xml b/tests/test_source_energy_mono/settings.xml new file mode 100644 index 000000000..9093efec9 --- /dev/null +++ b/tests/test_source_energy_mono/settings.xml @@ -0,0 +1,15 @@ + + + + + 10 + 5 + 1000 + + + + + + + + diff --git a/tests/test_source_energy_mono/test_source_energy_mono.py b/tests/test_source_energy_mono/test_source_energy_mono.py new file mode 100644 index 000000000..c2b419f64 --- /dev/null +++ b/tests/test_source_energy_mono/test_source_energy_mono.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def teardown(): + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_source_point/geometry.xml b/tests/test_source_point/geometry.xml new file mode 100644 index 000000000..612e46132 --- /dev/null +++ b/tests/test_source_point/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_source_point/materials.xml b/tests/test_source_point/materials.xml new file mode 100644 index 000000000..1f85510e0 --- /dev/null +++ b/tests/test_source_point/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_source_point/settings.xml b/tests/test_source_point/settings.xml new file mode 100644 index 000000000..3b3c47150 --- /dev/null +++ b/tests/test_source_point/settings.xml @@ -0,0 +1,14 @@ + + + + + 10 + 5 + 1000 + + + + + + + diff --git a/tests/test_source_point/test_source_point.py b/tests/test_source_point/test_source_point.py new file mode 100644 index 000000000..c2b419f64 --- /dev/null +++ b/tests/test_source_point/test_source_point.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def teardown(): + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_statepoint_batch/geometry.xml b/tests/test_statepoint_batch/geometry.xml new file mode 100644 index 000000000..612e46132 --- /dev/null +++ b/tests/test_statepoint_batch/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_statepoint_batch/materials.xml b/tests/test_statepoint_batch/materials.xml new file mode 100644 index 000000000..1f85510e0 --- /dev/null +++ b/tests/test_statepoint_batch/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_statepoint_batch/settings.xml b/tests/test_statepoint_batch/settings.xml new file mode 100644 index 000000000..0d8c3e88f --- /dev/null +++ b/tests/test_statepoint_batch/settings.xml @@ -0,0 +1,18 @@ + + + + + + + 10 + 5 + 1000 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_statepoint_batch/test_statepoint_batch.py b/tests/test_statepoint_batch/test_statepoint_batch.py new file mode 100644 index 000000000..2c77b48d1 --- /dev/null +++ b/tests/test_statepoint_batch/test_statepoint_batch.py @@ -0,0 +1,29 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_statepoints_exist(): + assert os.path.exists(pwd + '/statepoint.3.binary') + assert os.path.exists(pwd + '/statepoint.6.binary') + assert os.path.exists(pwd + '/statepoint.9.binary') + +def teardown(): + output = [pwd + i for i in ['/statepoint.3.binary', + '/statepoint.6.binary', + '/statepoint.9.binary']] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_statepoint_interval/geometry.xml b/tests/test_statepoint_interval/geometry.xml new file mode 100644 index 000000000..612e46132 --- /dev/null +++ b/tests/test_statepoint_interval/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_statepoint_interval/materials.xml b/tests/test_statepoint_interval/materials.xml new file mode 100644 index 000000000..1f85510e0 --- /dev/null +++ b/tests/test_statepoint_interval/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_statepoint_interval/settings.xml b/tests/test_statepoint_interval/settings.xml new file mode 100644 index 000000000..07608cf87 --- /dev/null +++ b/tests/test_statepoint_interval/settings.xml @@ -0,0 +1,18 @@ + + + + + + + 10 + 5 + 1000 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_statepoint_interval/test_statepoint_interval.py b/tests/test_statepoint_interval/test_statepoint_interval.py new file mode 100644 index 000000000..4a4b445bc --- /dev/null +++ b/tests/test_statepoint_interval/test_statepoint_interval.py @@ -0,0 +1,30 @@ +#!/usr/bin/env python + +import os +import glob +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_statepoints_exist(): + assert os.path.exists(pwd + '/statepoint.2.binary') + assert os.path.exists(pwd + '/statepoint.4.binary') + assert os.path.exists(pwd + '/statepoint.6.binary') + assert os.path.exists(pwd + '/statepoint.8.binary') + assert os.path.exists(pwd + '/statepoint.10.binary') + +def teardown(): + output = glob.glob(pwd + '/statepoint.*.binary') + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_statepoint_restart/geometry.xml b/tests/test_statepoint_restart/geometry.xml new file mode 100644 index 000000000..612e46132 --- /dev/null +++ b/tests/test_statepoint_restart/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_statepoint_restart/materials.xml b/tests/test_statepoint_restart/materials.xml new file mode 100644 index 000000000..1f85510e0 --- /dev/null +++ b/tests/test_statepoint_restart/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_statepoint_restart/settings.xml b/tests/test_statepoint_restart/settings.xml new file mode 100644 index 000000000..328be2d79 --- /dev/null +++ b/tests/test_statepoint_restart/settings.xml @@ -0,0 +1,18 @@ + + + + + + + 10 + 5 + 1000 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_statepoint_restart/test_statepoint_restart.py b/tests/test_statepoint_restart/test_statepoint_restart.py new file mode 100644 index 000000000..fe0f101a6 --- /dev/null +++ b/tests/test_statepoint_restart/test_statepoint_restart.py @@ -0,0 +1,39 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + assert os.path.exists(pwd + '/statepoint.7.binary') + +def test_restart_form1(): + proc = Popen([pwd + '/../../src/openmc', '-r', + pwd + '/statepoint.7.binary'], + stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_restart_form2(): + proc = Popen([pwd + '/../../src/openmc', '--restart', + pwd + '/statepoint.7.binary'], + stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def teardown(): + output = [pwd + '/statepoint.7.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_statepoint_sourcesep/geometry.xml b/tests/test_statepoint_sourcesep/geometry.xml new file mode 100644 index 000000000..612e46132 --- /dev/null +++ b/tests/test_statepoint_sourcesep/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_statepoint_sourcesep/materials.xml b/tests/test_statepoint_sourcesep/materials.xml new file mode 100644 index 000000000..1f85510e0 --- /dev/null +++ b/tests/test_statepoint_sourcesep/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_statepoint_sourcesep/settings.xml b/tests/test_statepoint_sourcesep/settings.xml new file mode 100644 index 000000000..4f5b7691f --- /dev/null +++ b/tests/test_statepoint_sourcesep/settings.xml @@ -0,0 +1,18 @@ + + + + + + + 10 + 5 + 1000 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_statepoint_sourcesep/test_statepoint_sourcesep.py b/tests/test_statepoint_sourcesep/test_statepoint_sourcesep.py new file mode 100644 index 000000000..5b26ee97a --- /dev/null +++ b/tests/test_statepoint_sourcesep/test_statepoint_sourcesep.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_statepoint_exists(): + assert os.path.exists(pwd + '/statepoint.10.binary') + assert os.path.exists(pwd + '/source.10.binary') + +def teardown(): + output = [pwd + '/statepoint.10.binary', pwd + '/source.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_survival_biasing/geometry.xml b/tests/test_survival_biasing/geometry.xml new file mode 100644 index 000000000..612e46132 --- /dev/null +++ b/tests/test_survival_biasing/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_survival_biasing/materials.xml b/tests/test_survival_biasing/materials.xml new file mode 100644 index 000000000..1f85510e0 --- /dev/null +++ b/tests/test_survival_biasing/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_survival_biasing/settings.xml b/tests/test_survival_biasing/settings.xml new file mode 100644 index 000000000..b0ff3fafc --- /dev/null +++ b/tests/test_survival_biasing/settings.xml @@ -0,0 +1,23 @@ + + + + true + + + 0.50 + 1.2 + + + + 10 + 5 + 1000 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_survival_biasing/test_survival_biasing.py b/tests/test_survival_biasing/test_survival_biasing.py new file mode 100644 index 000000000..d858aec2d --- /dev/null +++ b/tests/test_survival_biasing/test_survival_biasing.py @@ -0,0 +1,33 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + # Change directory + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + # Run the simulation + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + + # Display stdout + print(proc.communicate()[0]) + + # Make sure simulation ran to completion + assert returncode == 0 + +def test_created_statepoint(): + # Make sure that statepoint file was created + assert os.path.exists(pwd + '/statepoint.10.binary') + +def teardown(): + # Remove output files + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_tally_assumesep/geometry.xml b/tests/test_tally_assumesep/geometry.xml new file mode 100644 index 000000000..2407bf74b --- /dev/null +++ b/tests/test_tally_assumesep/geometry.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 + 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + + + + + + rectangular + 17 17 + -10.71 -10.71 + 1.26 1.26 + + 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 + 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 + 3 3 3 3 3 4 3 3 4 3 3 4 3 3 3 3 3 + 3 3 3 4 3 3 3 3 3 3 3 3 3 4 3 3 3 + 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 + 3 3 4 3 3 4 3 3 4 3 3 4 3 3 4 3 3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 8 7 7 7 + 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 + 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 + 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 7 + 7 7 7 7 7 7 7 8 8 8 8 8 8 8 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + + + + \ No newline at end of file diff --git a/tests/test_tally_assumesep/materials.xml b/tests/test_tally_assumesep/materials.xml new file mode 100644 index 000000000..fca25cc87 --- /dev/null +++ b/tests/test_tally_assumesep/materials.xml @@ -0,0 +1,272 @@ + + + + 70c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_tally_assumesep/settings.xml b/tests/test_tally_assumesep/settings.xml new file mode 100644 index 000000000..517637a59 --- /dev/null +++ b/tests/test_tally_assumesep/settings.xml @@ -0,0 +1,19 @@ + + + + + 10 + 5 + 100 + + + + + + -160 -160 -183 + 160 160 183 + + + + + diff --git a/tests/test_tally_assumesep/tallies.xml b/tests/test_tally_assumesep/tallies.xml new file mode 100644 index 000000000..2de171471 --- /dev/null +++ b/tests/test_tally_assumesep/tallies.xml @@ -0,0 +1,21 @@ + + + + true + + + + total + + + + + total + + + + + total + + + \ No newline at end of file diff --git a/tests/test_tally_assumesep/test_tally_assumesep.py b/tests/test_tally_assumesep/test_tally_assumesep.py new file mode 100644 index 000000000..ca8daa926 --- /dev/null +++ b/tests/test_tally_assumesep/test_tally_assumesep.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def test_statepoint_exists(): + assert os.path.exists(pwd + '/statepoint.10.binary') + +def test_output_exists(): + assert os.path.exists(pwd + '/tallies.out') + +def teardown(): + output = [pwd + '/statepoint.10.binary', pwd + '/tallies.out'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_trace/geometry.xml b/tests/test_trace/geometry.xml new file mode 100644 index 000000000..612e46132 --- /dev/null +++ b/tests/test_trace/geometry.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/test_trace/materials.xml b/tests/test_trace/materials.xml new file mode 100644 index 000000000..1f85510e0 --- /dev/null +++ b/tests/test_trace/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_trace/settings.xml b/tests/test_trace/settings.xml new file mode 100644 index 000000000..e50684eef --- /dev/null +++ b/tests/test_trace/settings.xml @@ -0,0 +1,18 @@ + + + + 5 1 453 + + + 10 + 5 + 1000 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_trace/test_trace.py b/tests/test_trace/test_trace.py new file mode 100644 index 000000000..c2b419f64 --- /dev/null +++ b/tests/test_trace/test_trace.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def teardown(): + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_translation/geometry.xml b/tests/test_translation/geometry.xml new file mode 100644 index 000000000..1390691dc --- /dev/null +++ b/tests/test_translation/geometry.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/tests/test_translation/materials.xml b/tests/test_translation/materials.xml new file mode 100644 index 000000000..1f85510e0 --- /dev/null +++ b/tests/test_translation/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_translation/settings.xml b/tests/test_translation/settings.xml new file mode 100644 index 000000000..a6fd5da19 --- /dev/null +++ b/tests/test_translation/settings.xml @@ -0,0 +1,16 @@ + + + + + 10 + 5 + 1000 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_translation/test_translation.py b/tests/test_translation/test_translation.py new file mode 100644 index 000000000..c2b419f64 --- /dev/null +++ b/tests/test_translation/test_translation.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def teardown(): + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_uniform_fs/geometry.xml b/tests/test_uniform_fs/geometry.xml new file mode 100644 index 000000000..b9b880d08 --- /dev/null +++ b/tests/test_uniform_fs/geometry.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/tests/test_uniform_fs/materials.xml b/tests/test_uniform_fs/materials.xml new file mode 100644 index 000000000..1f85510e0 --- /dev/null +++ b/tests/test_uniform_fs/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_uniform_fs/settings.xml b/tests/test_uniform_fs/settings.xml new file mode 100644 index 000000000..d7956e743 --- /dev/null +++ b/tests/test_uniform_fs/settings.xml @@ -0,0 +1,20 @@ + + + + + 10 + 5 + 1000 + + + + + + + + 10 10 10 + -10. -10. -10. + 10. 10. 10. + + + diff --git a/tests/test_uniform_fs/test_uniform_fs.py b/tests/test_uniform_fs/test_uniform_fs.py new file mode 100644 index 000000000..c2b419f64 --- /dev/null +++ b/tests/test_uniform_fs/test_uniform_fs.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def teardown(): + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_universe/geometry.xml b/tests/test_universe/geometry.xml new file mode 100644 index 000000000..a0b8b2f4f --- /dev/null +++ b/tests/test_universe/geometry.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/tests/test_universe/materials.xml b/tests/test_universe/materials.xml new file mode 100644 index 000000000..1f85510e0 --- /dev/null +++ b/tests/test_universe/materials.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/test_universe/settings.xml b/tests/test_universe/settings.xml new file mode 100644 index 000000000..a6fd5da19 --- /dev/null +++ b/tests/test_universe/settings.xml @@ -0,0 +1,16 @@ + + + + + 10 + 5 + 1000 + + + + + -4 -4 -4 4 4 4 + + + + diff --git a/tests/test_universe/test_universe.py b/tests/test_universe/test_universe.py new file mode 100644 index 000000000..c2b419f64 --- /dev/null +++ b/tests/test_universe/test_universe.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def teardown(): + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f) diff --git a/tests/test_void/geometry.xml b/tests/test_void/geometry.xml new file mode 100644 index 000000000..99b78586a --- /dev/null +++ b/tests/test_void/geometry.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_void/materials.xml b/tests/test_void/materials.xml new file mode 100644 index 000000000..a54e54e42 --- /dev/null +++ b/tests/test_void/materials.xml @@ -0,0 +1,63 @@ + + + + + + 70c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_void/settings.xml b/tests/test_void/settings.xml new file mode 100644 index 000000000..e0ed278b5 --- /dev/null +++ b/tests/test_void/settings.xml @@ -0,0 +1,17 @@ + + + + + 10 + 5 + 100 + + + + + box + -.6 -.6 5.17 .6 .6 6.17 + + + + diff --git a/tests/test_void/test_void.py b/tests/test_void/test_void.py new file mode 100644 index 000000000..c2b419f64 --- /dev/null +++ b/tests/test_void/test_void.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +import os +from subprocess import Popen, STDOUT, PIPE + +pwd = os.path.dirname(__file__) + +def setup(): + os.putenv('PWD', pwd) + os.chdir(pwd) + +def test_run(): + proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + print(proc.communicate()[0]) + assert returncode == 0 + +def teardown(): + output = [pwd + '/statepoint.10.binary'] + for f in output: + if os.path.exists(f): + os.remove(f)