Skip to content

Commit

Permalink
Modified Makefile and improved paths
Browse files Browse the repository at this point in the history
  • Loading branch information
hyades committed Aug 23, 2013
1 parent 0492021 commit a2c5603
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/index.rst
Expand Up @@ -3,7 +3,7 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to gstswitch's documentation!
Welcome to Gst-Switch's Documentation!
=====================================

Contents:
Expand Down
16 changes: 11 additions & 5 deletions python-api/Makefile
Expand Up @@ -6,17 +6,23 @@ lint:
@echo "Lint report generated in reports/pylint"

# runs py.test also
coverage:
unittests:
mkdir -p reports
mkdir -p reports/coverage
mkdir -p reports/coverage/unittests
-py.test --cov-report html --cov gstswitch tests/unittests/ -v -s
mv htmlcov/*.* reports/coverage
mv htmlcov/*.* reports/coverage/unittests
rmdir htmlcov

pytest:
-py.test tests/unittests -v

integration:
-py.test tests/integrationtests/ -s -v 2>/dev/null
rm *.data
mkdir -p reports
mkdir -p reports/coverage/integration
-py.test --cov-report html --cov gstswitch tests/integrationtests/ -s -v 2>/dev/null
mv htmlcov/*.* reports/coverage/integration
rm -f *.data
rm -f tests/integrationtests/*.data

test: unittests integration

2 changes: 1 addition & 1 deletion python-api/gstswitch/helpers.py
Expand Up @@ -185,7 +185,7 @@ def terminate_index_audio(self, index):
except TypeError:
raise InvalidIndexError("Index should be a valid integer")

print 'End source with pattern %s' % (str(testsrc.wave))
print 'End source with wave %s' % (str(testsrc.wave))
testsrc.end()
self._running_tests_audio.remove(self._running_tests_audio[index])

Expand Down
2 changes: 1 addition & 1 deletion python-api/tests/integrationtests/compare.py
Expand Up @@ -23,7 +23,7 @@ class BaseCompareVideo(object):
'composite_mode_3': 3,
'adjust_pip_4': 4
}
REF_FRAME_DIR = 'reference_frames'
REF_FRAME_DIR = os.getenv("HOME") + '/gst/gst-switch/python-api/tests/integrationtests/reference_frames'
def __init__(self):
pass

Expand Down
2 changes: 1 addition & 1 deletion python-api/tests/integrationtests/test.py
Expand Up @@ -22,7 +22,7 @@
gi.require_version('Gst', '1.0')

# all executables (gst-launch-1.0, gst-switch-srv, gst-switch-ui, gst-switch-cap) at this path
path = '/home/hyades/gst/stage/bin/'
path = os.getenv("HOME") + '/gst/stage/bin/'
# path = '/usr/local/bin/'
s = Server(path)
try:
Expand Down
2 changes: 1 addition & 1 deletion python-api/tests/integrationtests/test_controller.py
Expand Up @@ -12,7 +12,7 @@

import subprocess

PATH = '/home/hyades/gst/stage/bin/'
PATH = os.getenv("HOME") + '/gst/stage/bin/'

class TestEstablishConnection(object):

Expand Down
2 changes: 1 addition & 1 deletion python-api/tests/integrationtests/test_helpers.py
Expand Up @@ -7,7 +7,7 @@
import time


PATH = '/home/hyades/gst/stage/bin/'
PATH = os.getenv("HOME") + '/gst/stage/bin/'


class TestTestSourcesPreviews(object):
Expand Down
2 changes: 1 addition & 1 deletion python-api/tests/integrationtests/test_server.py
Expand Up @@ -8,7 +8,7 @@
import glob


PATH = '/home/hyades/gst/stage/bin/'
PATH = os.getenv("HOME") + '/gst/stage/bin/'


class TestServerStartStop(object):
Expand Down

0 comments on commit a2c5603

Please sign in to comment.