Skip to content

Commit

Permalink
Merge pull request #24502 from smuzaffar/from-CMSSW_10_3_X_2018-09-10…
Browse files Browse the repository at this point in the history
…-2300

add unit test for PyMVA root macro
  • Loading branch information
cmsbuild committed Sep 12, 2018
2 parents fa5f65d + 71aebe4 commit 5333441
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions PhysicsTools/PythonAnalysis/test/BuildFile.xml
Expand Up @@ -25,3 +25,6 @@
<bin name="test_PyMVA" file="test_PyMVA.cpp">
<use name="rootpymva"/>
</bin>
<test name="test_root_PyMVA" command="rm -f tmp/test_PyMVA; mkdir tmp/test_PyMVA; cd tmp/test_PyMVA; cp $(LOCALTOP)/src/PhysicsTools/PythonAnalysis/test/test_PyMVA.cpp .; root -n -b -l -q test_PyMVA.cpp+">
<use name="rootpymva"/>
</test>
4 changes: 2 additions & 2 deletions PhysicsTools/PythonAnalysis/test/test_PyMVA.cpp
@@ -1,7 +1,7 @@
#include "TMVA/PyMethodBase.h"
#include <iostream>

void test()
void test_PyMVA()
{
TMVA::PyMethodBase::PyInitialize();
std::cout<<"TMVA::PyMethodBase::PyInitialize(): OK"<<std::endl;
Expand All @@ -10,6 +10,6 @@ void test()

int main( int argc, char** argv )
{
test();
test_PyMVA();
return 0;
}

0 comments on commit 5333441

Please sign in to comment.