Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup PythonAnalysis tests and added pycurl test #17488

Merged
merged 1 commit into from
Feb 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions PhysicsTools/PythonAnalysis/test/BuildFile.xml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env python
import pycurl
c = pycurl.Curl()
c.setopt(c.URL, 'https://cmssdt.cern.ch/SDT/')
c.perform()