Пример #1
0
for path in glob('%s/deps.d/*' % projectdir):       #DO_NOT_DISTRIBUTE
    systemPath.insert(0, path)                      #DO_NOT_DISTRIBUTE
for path in glob('%s/deps.d/*/client' % projectdir):#DO_NOT_DISTRIBUTE
    systemPath.insert(0, path)                      #DO_NOT_DISTRIBUTE

from sys import argv

from seecr.test.testrunner import TestRunner

from integration.sesameintegrationstate import SesameIntegrationState


if __name__ == '__main__':
    flags = ['--fast']
    fastMode = '--fast' in argv
    for flag in flags:
        if flag in argv:
            argv.remove(flag)

    runner = TestRunner()
    SesameIntegrationState(
        'default',
        tests=[
            'integration.sesametest.SesameTest'
        ],
        fastMode=fastMode).addToTestRunner(runner)

    testnames = argv[1:]
    runner.run(testnames)

Пример #2
0
# You should have received a copy of the GNU General Public License
# along with "Meresco Examples"; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
#
## end license ##

from os import getuid
import sys
assert getuid() != 0, "Do not run tests as 'root'"

from seecrdeps import includeParentAndDeps  #DO_NOT_DISTRIBUTE
includeParentAndDeps(__file__, scanForDeps=True)  #DO_NOT_DISTRIBUTE

from seecr.test.testrunner import TestRunner
from _integration import ExampleIntegrationState

if __name__ == '__main__':
    runner = TestRunner()
    # Setting fastmode to True, will SKIP the upload part, and reuse existing database/store for the integration tests.
    runner.fastMode = False
    print "FASTMODE:", runner.fastMode

    ExampleIntegrationState("seecr",
                            tests=[
                                '_integration.gatewaytest.GatewayTest',
                                '_integration.apitest.ApiTest',
                                '_integration.sruslavetest.SruSlaveTest',
                            ],
                            fastMode=runner.fastMode).addToTestRunner(runner)
    runner.run()
Пример #3
0
# along with "Digitale Collectie ErfGeo Enrichment"; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
#
## end license ##

from os import system                               #DO_NOT_DISTRIBUTE
from glob import glob                               #DO_NOT_DISTRIBUTE
from sys import path as systemPath                  #DO_NOT_DISTRIBUTE
system('find .. -name "*.pyc" | xargs rm -f')       #DO_NOT_DISTRIBUTE
for path in glob('../deps.d/*'):                    #DO_NOT_DISTRIBUTE
    systemPath.insert(0, path)                      #DO_NOT_DISTRIBUTE
systemPath.insert(0, '..')                          #DO_NOT_DISTRIBUTE

from seecr.test.testrunner import TestRunner
from _integration import ErfGeoIntegrationState


flags = ['--fast']

if __name__ == '__main__':
    runner = TestRunner()
    arguments = runner.parseArgs()
    ErfGeoIntegrationState(
        "erfGeo",
        tests=[
            '_integration.erfgeotest.ErfGeoTest'
        ],
        fastMode=arguments.fastMode).addToTestRunner(runner)

    runner.run(testnames=arguments.testnames, groupnames=arguments.groupnames)
#
## end license ##

from os import getuid
import sys
assert getuid() != 0, "Do not run tests as 'root'"


from seecrdeps import includeParentAndDeps       #DO_NOT_DISTRIBUTE
includeParentAndDeps(__file__, scanForDeps=True) #DO_NOT_DISTRIBUTE

from seecr.test.testrunner import TestRunner
from _integration import ExampleIntegrationState

if __name__ == '__main__':
    runner = TestRunner()
    # Setting fastmode to True, will SKIP the upload part, and reuse existing database/store for the integration tests.
    runner.fastMode = False
    print "FASTMODE:", runner.fastMode

    ExampleIntegrationState(
        "seecr",
        tests=[
            '_integration.gatewaytest.GatewayTest',
            '_integration.apitest.ApiTest',
            '_integration.sruslavetest.SruSlaveTest',
        ],
        fastMode=runner.fastMode).addToTestRunner(runner)
    runner.run()

Пример #5
0
projectDir = dirname(dirname(abspath(__file__)))  #DO_NOT_DISTRIBUTE
system('find %s -name "*.pyc" | xargs rm -f' % projectDir)  #DO_NOT_DISTRIBUTE
for path in glob(projectDir + '/deps.d/*'):  #DO_NOT_DISTRIBUTE
    systemPath.insert(0, path)  #DO_NOT_DISTRIBUTE
systemPath.insert(0, projectDir)  #DO_NOT_DISTRIBUTE

from sys import argv

from seecr.test.testrunner import TestRunner
from _integration.integrationstate import IntegrationState

flags = ['--fast']

if __name__ == '__main__':
    fastMode = '--fast' in argv
    for flag in flags:
        if flag in argv:
            argv.remove(flag)

    runner = TestRunner()
    IntegrationState(
        'default',
        tests=[
            '_integration.lucenetest.LuceneTest',
            '_integration.luceneremoteservicetest.LuceneRemoteServiceTest',
        ],
        fastMode=fastMode).addToTestRunner(runner)

    testnames = argv[1:]
    runner.run(testnames)
        tests=[
            'integration.resolvetest.ResolveTest',
        ],
        fastMode=fastMode).addToTestRunner(runner)
    OasIntegrationState(
        'harvester', 
        tests=[
            'integration.harvestertest.HarvesterTest',
        ],
        fastMode=fastMode).addToTestRunner(runner)
    OasIntegrationState(
        'constraints', 
        tests=[
            'integration.constraintstest.ConstraintsTest',
            'integration.inlinetest.InlineTest',
        ],
        fastMode=fastMode).addToTestRunner(runner)
    OasIntegrationState(
        'constrains_body', 
        tests=[
            'integration.constrainsbodytest.ConstrainsBodyTest',
        ],
        fastMode=fastMode).addToTestRunner(runner)

    testnames = argv[1:]
    if groupnames is None:
        runner.run(testnames)
    else:
        runner.run(testnames, groupnames=groupnames)