From d8eaf61dee1591d185b30f543dd172221b0af3fc Mon Sep 17 00:00:00 2001 From: Whitney Armstrong <warmstrong@anl.gov> Date: Thu, 15 Aug 2019 18:50:09 -0500 Subject: [PATCH] modified: .gitlab-ci.yml modified: tests/elastic_test.sh new file: tests/elastic_test2.sh modified: tests/my_root_script.cxx new file: tests/replay_elastic_data.sh --- .gitlab-ci.yml | 27 +++++++++++++++++++++++++-- tests/elastic_test.sh | 24 ++++++++++++++++++------ tests/elastic_test2.sh | 30 ++++++++++++++++++++++++++++++ tests/my_root_script.cxx | 2 ++ tests/replay_elastic_data.sh | 26 ++++++++++++++++++++++++++ 5 files changed, 101 insertions(+), 8 deletions(-) create mode 100644 tests/elastic_test2.sh create mode 100644 tests/replay_elastic_data.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7cf5124..d6885d6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,7 @@ image: eicweb.phy.anl.gov:4567/whit/image_recipes/root_base:latest stages: - build - build_sing_img + - data_replays - data_tests hcana_docker: @@ -33,11 +34,33 @@ hcana_singularity: - build/Singularity.hcana - build/Singularity.hcana.simg -elastic_tests: +elastic_replay: tags: - eic0 docker - stage: data_tests + stage: data_replay dependencies: - hcana_singularity + script: + - bash tests/replay_elastic_data.sh + artifact: + - ROOTfiles/blah.root + + +elastic_test1: + tags: + - eic0 docker + stage: data_tests + dependencies: + - elastic_replay script: - bash tests/elastic_test.sh + +elastic_test2: + tags: + - eic0 docker + stage: data_tests + dependencies: + - elastic_replay + script: + - bash tests/elastic_test2.sh + diff --git a/tests/elastic_test.sh b/tests/elastic_test.sh index 53f272b..c2e4d6f 100644 --- a/tests/elastic_test.sh +++ b/tests/elastic_test.sh @@ -1,12 +1,24 @@ #!/bin/bash -echo "This is the elastic testing..." -echo " " -echo "There are currently 0 tests to run!" -which hcana +#echo "This is the elastic testing..." +#echo " " +#echo "There are currently 0 tests to run!" +#which hcana +# +#ls -lrth +#ls -lrth build +# +#git clone git@eicweb.phy.anl.gov:jlab/hallc/exp/CSV/hallc_replay_csv.git +#git clone git@eicweb.phy.anl.gov:jlab/hallc/exp/CSV/online_csv.git +#cd online_csv +#ln -s ../hallc_reaply_csv/PARAM +## and the reset +# +#mkdir raw +#pushd raw +# wget coin.dat +#popd -ls -lrth -ls -lrth build singularity help build/Singularity.hcana.simg diff --git a/tests/elastic_test2.sh b/tests/elastic_test2.sh new file mode 100644 index 0000000..36da205 --- /dev/null +++ b/tests/elastic_test2.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +echo "This is the elastic testing..." +echo " " +echo "There are currently 0 tests to run!" +which hcana + +ls -lrth +ls -lrth build + +git clone git@eicweb.phy.anl.gov:jlab/hallc/exp/CSV/hallc_replay_csv.git +git clone git@eicweb.phy.anl.gov:jlab/hallc/exp/CSV/online_csv.git + +cd online_csv +ln -s ../hallc_reaply_csv/PARAM +# and the reset + +mkdir raw +pushd raw + wget coin.dat +popd + + +singularity help build/Singularity.hcana.simg + +singularity exec build/Singularity.hcana.simg which hcana + +singularity exec build/Singularity.hcana.simg hcana tests/my_root_script.cxx + +echo " WOOOO" diff --git a/tests/my_root_script.cxx b/tests/my_root_script.cxx index 5b2e54d..0d36862 100644 --- a/tests/my_root_script.cxx +++ b/tests/my_root_script.cxx @@ -1,5 +1,7 @@ void my_root_script() { + + std::cout << "Hello from my_root_script.cxx!\n"; std::cout << "This should be run with singularity\n"; diff --git a/tests/replay_elastic_data.sh b/tests/replay_elastic_data.sh new file mode 100644 index 0000000..234cb54 --- /dev/null +++ b/tests/replay_elastic_data.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +echo "This is the elastic testing..." +echo " " +echo "There are currently 0 tests to run!" +which hcana + +ls -lrth +ls -lrth build + +git clone git@eicweb.phy.anl.gov:jlab/hallc/exp/CSV/hallc_replay_csv.git +git clone git@eicweb.phy.anl.gov:jlab/hallc/exp/CSV/online_csv.git + +cd online_csv +ln -s ../hallc_reaply_csv/PARAM +# and the reset + +mkdir raw +pushd raw + wget coin.dat +popd + + +# run replay script + +echo " hcana calls... the coin replay script and outputs blah.root" -- GitLab