Revision 67b502021c47d95a161307bd8f930746f6be115f authored by Philippe Canal on 23 February 2016, 22:56:19 UTC, committed by Philippe Canal on 26 February 2016, 01:28:03 UTC
1 parent ab60d60
Raw File
dt_RunDrawTest.sh
#!/bin/sh

# Previous step is to do something like
# root -l -q 'MakeRef.C("Event.old.split.root");'

ClassWarning='Warning in <TClass::Init>: no dictionary for class'
RootPrompt='root \[0\]'
EmptyLine='^$'
Streamer="Event::Streamer not available,"

# launch replace
launch () {
  (root.exe -l -b -q 'dt_wrap.C("'$1'",'$2')' 2>&1; return $?;) | \
     (eval grep -v $3 ) | \
     (if test ! "x$4" = x ; then eval grep -v $4; else cat; fi;)  | \
     (if test ! "x$5" = x ; then eval grep -v $5; else cat; fi;)  | \
     (if test ! "x$6" = x ; then eval grep -v $6; else cat; fi;)  | \
     (if test ! "x$7" = x ; then eval grep -v $7; else cat; fi;)   \
    ;
}


launch "Event.old.split.root" 0 "'$ClassWarning'" "'$RootPrompt'" "'$EmptyLine'" && \
launch "Event.old.split.root" 1 "'$RootPrompt'" "'$EmptyLine' " && \
launch "Event.old.split.root" 2 "'$ClassWarning'" "'$RootPrompt'" "'$EmptyLine' " && \
launch "Event.old.split.root" 3 "'$RootPrompt'" "'$EmptyLine' " && \
launch "Event.old.split.root" 4 "'$RootPrompt'" "'$EmptyLine' "

launch "Event.old.streamed.root" 0 "'$Streamer'" "'$ClassWarning'" "'$RootPrompt'" "'$EmptyLine' " && \
launch "Event.old.streamed.root" 1 "'$RootPrompt'" "'$EmptyLine' " && \
launch "Event.old.streamed.root" 2 "'$ClassWarning'" "'$RootPrompt'" "'$EmptyLine' " && \
launch "Event.old.streamed.root" 3 "'$RootPrompt'" "'$EmptyLine' " && \
launch "Event.old.streamed.root" 4 "'$RootPrompt'" "'$EmptyLine' "

launch "Event.new.split9.root" 0 "'$ClassWarning'" "'$RootPrompt'" "'$EmptyLine' " && \
launch "Event.new.split9.root" 1 "'$RootPrompt'" "'$EmptyLine' " && \
launch "Event.new.split9.root" 2 "'$ClassWarning'" "'$RootPrompt'" "'$EmptyLine' " && \
launch "Event.new.split9.root" 3 "'$RootPrompt'" "'$EmptyLine' " && \
launch "Event.new.split9.root" 4 "'$RootPrompt'" "'$EmptyLine' "

launch "Event.new.split2.root" 0 "'$ClassWarning'" "'$RootPrompt'" "'$EmptyLine' " && \
launch "Event.new.split2.root" 1 "'$RootPrompt'" "'$EmptyLine' " && \
launch "Event.new.split2.root" 2 "'$ClassWarning'" "'$RootPrompt'" "'$EmptyLine' " && \
launch "Event.new.split2.root" 3 "'$RootPrompt'" "'$EmptyLine' " && \
launch "Event.new.split2.root" 4 "'$RootPrompt'" "'$EmptyLine' "

launch "Event.new.split1.root" 0 "'$ClassWarning'" "'$RootPrompt'" "'$EmptyLine' " && \
launch "Event.new.split1.root" 1 "'$RootPrompt'" "'$EmptyLine' " && \
launch "Event.new.split1.root" 2 "'$ClassWarning'" "'$RootPrompt'" "'$EmptyLine' " && \
launch "Event.new.split1.root" 3 "'$RootPrompt'" "'$EmptyLine' " && \
launch "Event.new.split1.root" 4 "'$RootPrompt'" "'$EmptyLine' "

launch "Event.new.split0.root" 0 "'$Streamer'" "'$ClassWarning'" "'$RootPrompt'" "'$EmptyLine' " && \
launch "Event.new.split0.root" 1 "'$RootPrompt'" "'$EmptyLine' " && \
launch "Event.new.split0.root" 2 "'$ClassWarning'" "'$RootPrompt'" "'$EmptyLine' " && \
launch "Event.new.split0.root" 3 "'$RootPrompt'" "'$EmptyLine' " && \
launch "Event.new.split0.root" 4 "'$RootPrompt'" "'$EmptyLine' "
back to top