add_test_sample_data.sh 582 B

12345678910111213141516171819
  1. #!/usr/bin/env bash
  2. export userid=$(id -u)
  3. export PYTEST_ARGS="scripts --create_sample_output $@"
  4. docker run \
  5. -e "ARGS=$PYTEST_ARGS" \
  6. -e "userid=$userid" \
  7. --rm \
  8. -ti \
  9. -v $PWD/../..:/opt/src/afni \
  10. afni/afni_cmake_build \
  11. bash -c 'ninja pytest && chown -R $userid:$userid afni_tests/sample_output_of_tests'
  12. # an example sync command... need to think about best way to tidy this up
  13. # output=$(find ../sample_output_of_tests/ -maxdepth 1|sort -n|tail -n 1)
  14. # for d in $(ls -d $output/*/*)
  15. # do
  16. # rsync -a $d sample_test_output/RetroTS
  17. # done