source: sasview/test/run_one.py @ 7949dcf7

Last change on this file since 7949dcf7 was 76f132a, checked in by pkienzle, 11 years ago

test resolution and dispersion

  • Property mode set to 100644
File size: 618 bytes
RevLine 
[6fe5100]1#!/usr/bin/env python
2
3import os
4import sys
5import xmlrunner
6import unittest
7import imp
8from os.path import abspath, dirname, split as splitpath, join as joinpath
9
10run_py = joinpath(dirname(dirname(abspath(__file__))), 'run.py')
11run = imp.load_source('sasview_run', run_py)
12run.prepare()
13#print "\n".join(sys.path)
[76f132a]14test_path,test_file = splitpath(abspath(sys.argv[1]))
[6fe5100]15print "=== testing:",sys.argv[1]
16#print test_path, test_file
17sys.argv = [sys.argv[0]]
18os.chdir(test_path)
19sys.path.insert(0, test_path)
20test = imp.load_source('tests',test_file)
21unittest.main(test, testRunner=xmlrunner.XMLTestRunner(output='logs'))
Note: See TracBrowser for help on using the repository browser.