Skip to content
Snippets Groups Projects
Commit a10264af authored by Alessandro Brusamolino's avatar Alessandro Brusamolino
Browse files

[load-from-root] Re-work unit testing

Re-work unit testing

See merge request abrusamo/pftruth-standalone!9
parents 1ebc9c22 91022309
Branches
No related tags found
No related merge requests found
......@@ -39,51 +39,56 @@ parse_yml() {
cat << EOF
==========================================================================
░░░░ ░
░▒░ ░
░░░ ░ ░ ░░ ░
░░ ░░ ░░▒░░ ░ ░ ░░
░░ ░░ ░░░ ░░ ░ ░ ░░░
░░ ░ ░ ░░░░▒ ░ ▒ ▓░░
░░ ░░ ░░ ░░░░▓▒▒ ░ ▒░▓▓▓
░ ░░ ░▒▒░░░ ▓▓▓░░▓▓▓▓░
░ ░░ ░▒░░▒░▓░ ░ ▒▓▓▓▓▒░
░░ ░ ░░░░▓░▓░░▒░▒░ ▒ ▓▓▓▓▓
░ ░ ░░░▒░░ ▓░░▓▒ ░▓░░▓░░░▓░░
░░ ░ ░░░▓ ░ ░░ ▓▒▒░▒▒▒▓▓░ ▓░░
░ ░ ░░▒ ░ ░░ ░░░░░ ▓░▓▒ ▒ ░▒░░
░ ░░ ░░░░░ ░░ ▒▓░░░░▒▒░▓ ░ ▒ ░▒░░
░░ ░ ░ ▒░▒░ ░░ ▒▓░▓░▒░░░░▓ ░▒ ░░░ ▒░░
░░ ▒░ ░ ▒▒▒ ░░ ░▓░▒▒░░ ▒▓░░▓ ▒░ ░░░ ▓░░ ░ ░░
░░ ▒░░ ░░▒░▒▒░░░▒▓░▒░░░░░░▒▒▒▓ ▒ ░▒ ▓░ ░ ░ ░▓░░ ░
░░ ░▒ ░▒░▒░░▓░▓ ░▒░░░ ░▓▓▒ ░ ░ ░░ ▓ ░▒▒░▒░░ ░░░ ░
░░░ ░░░▒░ ░░░ ░▒ ▒░ ░░ ▓▒▓▓░ ░▒▒░▓▒░▒▓░░▓░░░ ░░░░░░ ░░
░░░░░░░░░░░▒ ░░░ ▒░ ▓░ ▓▓▒░░ ░░░░░░▓░░ ░░ ░░░ ░ ░░░ ░
░░░ ░ ▒ ▓░ ▓▓▒░░░░▒░░▒▓░ ░░ ▒░░ ░░ ░ ░░
░░▒░ ░ ░ ░▓▓▓░ ░░░░░▒░ ░░ ░░░░░ ░░░░ ░
░░▒░ ░░▒░▓▓▓ ▒▓░▒▓░ ░░ ░ ░░░░ ░
░░▒ ░░▒▓▓ ▒▒ ▓░░ ░ ░ ░░░░ ░ ░░
░▓▒ ░ ▒▒▒░░ ▓▒░▓░ ░░░░ ░ ░
░░░▓▒▓▓░ ░ ▒▒░▓░░▒▒░░░ ░ ░░
░ ▒▓▓▓▓▒ ░░░▒▒░░░░░ ░ ░
░ ░░▓▓▓▓▓ ░░░░░░ ░ ░
░ ░░░▒▓▓▓ ░░░░░ ░░░░ ░ ░░
░ ░ ░▒▓▓░ ░░░░ ░ ░ ░
░ ░░▒▒▒ ░░ ░░░ ░ ░░ ░░
░░▒░▒ ░░ ░░░░░░ ░░
░░░░ ░░ ░░ ░░
░░ ░░░
░ ░ ░
=================================================================================
:::::
::::::: :::..
::*#:: ::: %
::: : :=-. :: #
.::. : ::::#=* ::. -* % *
::: ::: #:- -#. - # % *#
::. :: * .:*:+:@ --- @ @+**
::. :. .= - .:#### -* @ @@@
::. : :=: -: @##@ *@@@@@
.:: : -+#.#:=- @:@#@@@@@+
:: : =:=@@%@@-#= - -@@@@@@---
:: :: #-#:@::@#=@@:#% @ @@@@#@-
:: : .==-#-: -@-=@@.==@#-%%@--###:
:: .: +=.% :. ::*@@@%-@@@@@@ :#**
:: :. +--@ :: :: -+@@- @@-@@@#: =##+
:: : --=+::: :: #@#*##@-@@@#.=:# ##*:
::#:: = *..#:: :: @%#*=:#: @@@%@ -=:+ ##*:
#*: : + *-.* :: *##*##:#.-:@@@= %* + *: :#+=
::::#: :: +:+# .=: :=@#:##::::- @@#::@= @= =.*: -#+: .:::::::.:
:- #-# ::#=.#:+::%@@*#=:*:::=@@*@* :# @ .@. .=:# ##:- : :
: ::#: -=:#:@@@@@ @###: :#@@#:.+ : =@ *% --*%==::+ :::. ::
..: =:# *--:-+#.= =@ -# : =::@@@%: :###%= @@@@@+#:*+ .-:- :::
::: ::###: :=:= %= %= #: @@*:= .#:::::+@++ :::+=.#: +:: ::
:::::::: :*## =:-. :@: @+#@@ - :=::+#:#%= :: #+:= : ::::::
=##= .# = -@ @@@ :=:-:##:@#= :: :%-:= .: : #:
*##: :* = @@@@# =*:::-** .:: ::@=.= :::= ::
:###: =+@@=@@+ %@#-#@+ :: ::==== .: ::
:*## %-@@@@ :@:-@@=- :: : +=-- :: ::
=##-% #**@#:= -@@+@:% ::.@:-= : ::
.@*#@:%%@::+:= #@@:-% :=+=-= : ::
% :@#@@@@ :++@=:@#+@-=-= : ::
.+ -@.@@@@@+ -==*=-*=-=. :: ::
% -%-@@@@@@= :#.=:%=. :: ::
-# -%:@@@@@ #*#::: :*:: :. ::
+ -*= @@-@@ :+##- : .: : ::
-% %%%@# ::::+.. :: :: .::
% %%%%# :: +:= :: :::
%%%%-. .: ::::. :. :::
% % .* ::. :::::::::
: : ::::
::::::::::
____ ______ ______ ____ __ __ ______ __ __
/ __ \ / ____//_ __// __ \ / / / //_ __// / / /
/ /_/ // /_ / / / /_/ // / / / / / / /_/ /
/ ____// __/ / / / _, _// /_/ / / / / __ /
/_/ /_/ /_/ /_/ |_| \____/ /_/ /_/ /_/
=========================================================================
=================================================================================
EOF
......@@ -113,25 +118,17 @@ if $recompile ; then
rm -rf build
print_step "Generating build files"
mkdir -p build && cd build
if $run_tests ; then
print_step "Running the tests"
cmake -DBUILD_TESTING=ON ..
else
cmake ..
fi
print_step "Running the tests"
cmake -DBUILD_TESTING=ON ..
print_step "Compiling the project"
make -s -j $NWORKERS
cd $CURRENT_DIR
fi
if $run_tests && ! $recompile ; then
print_step "Running the tests"
cd build && ctest PFTruthTests -j $NWORKERS
cd ${CURRENT_DIR}
fi
if $run_merging ; then
print_step "Running the cluster merging"
./build/COCOATruth /ceph/abrusamolino/PFTruthSamples/COCOA/ttbar_500.root 0.85 0.4
./build/COCOATruth /ceph/abrusamolino/PFTruthSamples/COCOATests/SingleTau_Geant4_FlatEtaPt.root 0.85 0.5
cp /ceph/abrusamolino/PFTruthSamples/COCOATests/SingleTau_Geant4_FlatEtaPt.root /ceph/abrusamolino/PFTruthSamples/COCOATests/SingleTau_Geant4_FlatEtaPt_0p85_0p5.root
fi
print_step "Done"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment