diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7cf5124c617b9bc59787c79a096e9e053b0151d2..d6885d63a1b06da34af27b1184f50e0702292e4e 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 53f272b3cb84ecbcc2d1e318c1b5e8ebe55aed28..c2e4d6f2ed21ee5d18ab341afabb0b2efe75f04a 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 0000000000000000000000000000000000000000..36da2058d88749b20c9af12ce265f23befd157c2 --- /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 5b2e54d5b6acf6db66e500385f3a35cba9e6ad14..0d3686284d799790b779b7724cdbca81d3a5c129 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 0000000000000000000000000000000000000000..234cb545d87d8fba1b7c5f1b80d89834e6abc8c1 --- /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"