Skip to content

Modifying the chef tests

Cameron Smith edited this page Jul 10, 2016 · 6 revisions

Changing chef input files

  1. starting with a clean meshes directory
  2. edit the .inp files as needed in meshes
  3. backup the modified directory
  • cp -r meshes modified-inp
  1. run the tests
  • ctest
  1. if all tests pass then
  2. delete the dirty directory
  • rm -rf meshes
  1. restore the clean directory
  • cp -r modified-inp meshes
  1. create the tarball
  • tar czf pumi_test_meshes.tar.gz meshes
  1. upload the tarball
  2. if a mesh comparison test fails
  3. check if the newly generated mesh is correct
  4. backup the dirty directory
  • cp -r meshes meshes_dirty
  1. restore the clean directory
  • cp -r modified-inp meshes
  1. copy the newly generated mesh from meshes_dirty/phasta/path/to/test/*out_mesh to meshes/phasta/path/to/test/good_mesh
  2. backup the clean directory
  • cp -r meshes modified-inp-and-mesh
  1. goto 4