File: run-tests.py

package info (click to toggle)
gamera 1%3A3.4.2%2Bgit20160808.1725654-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 22,312 kB
  • ctags: 24,991
  • sloc: xml: 122,324; ansic: 52,869; cpp: 50,664; python: 35,034; makefile: 118; sh: 101
file content (17 lines) | stat: -rw-r--r-- 565 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import os
import sys

from distutils.command.build import build
from distutils.core import Distribution
build = build(Distribution())
build.finalize_options()
sys.path[0:0] = [os.path.abspath(build.build_platlib)]

import gamera.paths
assert os.path.splitext(gamera.paths.__file__)[0] == os.path.join(sys.path[0], 'gamera', 'paths'), 'Wrong import path: ' + gamera.paths.__file__

os.chdir(os.path.join(os.path.dirname(__file__), '..', 'tests'))
gamera.paths.test = os.path.join('..', 'gamera', 'test')
sys.argv[1:1] = ['--verbose']

execfile('/usr/bin/nosetests')