File: run-tests.py

package info (click to toggle)
gamera 3.4.1%2Bsvn1423-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 22,292 kB
  • ctags: 25,015
  • sloc: xml: 122,324; ansic: 50,812; cpp: 50,489; python: 34,987; makefile: 119; 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')