Skip to content

Commit

Permalink
cleanup PythonAnalysis tests and added pycurl test
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Feb 10, 2017
1 parent 76f0b45 commit 0fa145c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
6 changes: 1 addition & 5 deletions PhysicsTools/PythonAnalysis/test/BuildFile.xml
Expand Up @@ -5,8 +5,4 @@
<use name="py2-pippkgs"/>
<use name="rootpy"/>


<bin file="runtestPythonAnalysis.cpp">
<flags TEST_RUNNER_ARGS=" /bin/bash PhysicsTools/PythonAnalysis/test runtests.sh"/>
<use name="FWCore/Utilities"/>
</bin>
<test name="runtestPythonAnalysis" command="runtests.sh"/>
3 changes: 0 additions & 3 deletions PhysicsTools/PythonAnalysis/test/runtestPythonAnalysis.cpp

This file was deleted.

6 changes: 3 additions & 3 deletions PhysicsTools/PythonAnalysis/test/runtests.sh
@@ -1,9 +1,9 @@
#!/bin/sh

LOCAL_TEST_DIR=$(dirname $0)
function die { echo $1: status $2 ; exit $2; }

python ${LOCAL_TEST_DIR}/testHistogrammar.py || die 'Failure using testHistogrammar' $?
python ${LOCAL_TEST_DIR}/testHistogrammar.py || die 'Failure using testHistogrammar' $?
python ${LOCAL_TEST_DIR}/testPandas.py || die 'Failure using testPandas' $?
python ${LOCAL_TEST_DIR}/testRootNumpy.py || die 'Failure using testRootNumpy' $?
python ${LOCAL_TEST_DIR}/test_pycurl.py || die 'Failure using test_pycurl' $?
#python ${LOCAL_TEST_DIR}/testRootpy.py || die 'Failure using testRootpy' $?

5 changes: 5 additions & 0 deletions PhysicsTools/PythonAnalysis/test/test_pycurl.py
@@ -0,0 +1,5 @@
#!/usr/bin/env python
import pycurl
c = pycurl.Curl()
c.setopt(c.URL, 'https://cmssdt.cern.ch/SDT/')
c.perform()

0 comments on commit 0fa145c

Please sign in to comment.