]> SALOME platform Git repositories - modules/yacs.git/blob - src/pmml/pmml_swig/PMMLBasicsTestLauncher.py
Salome HOME
Merge branch 'V8_0_0_BR'
[modules/yacs.git] / src / pmml / pmml_swig / PMMLBasicsTestLauncher.py
1 # -*- coding: utf-8 -*-
2
3 import os,sys,subprocess,shutil
4
5 # Here the most beautiful part of test :)
6 dirALaCon0="Test"
7 dirAlaCon1="samples"
8 if not os.path.exists(dirALaCon0):
9     os.mkdir(dirALaCon0)
10 if not os.path.exists(os.path.join(dirALaCon0,dirAlaCon1)):
11     os.chdir(dirALaCon0)
12     os.symlink(os.path.join("..",dirAlaCon1),dirAlaCon1)
13     os.chdir("..")
14 # GO !
15 dn=os.path.dirname(__file__)
16 p=subprocess.Popen(["python","PMMLBasicsTest.py"],cwd=dn,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
17 a,b=p.communicate()
18 ret=p.returncode
19 # Clean up the wonderful first part stuf
20 shutil.rmtree(dirALaCon0)
21 sys.exit(ret)