Esempio n. 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)

# "Metastreams Harvester" is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with "Metastreams Harvester"; 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
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 HarvesterIntegrationState

if __name__ == '__main__':
    runner = TestRunner()
    HarvesterIntegrationState(
        'default',
        tests=[
            'integration.harvestertest.HarvesterTest',
            'integration.internalservertest.InternalServerTest',
        ],
        fastMode=runner.fastMode).addToTestRunner(runner)
    runner.run()
Esempio n. 3
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()
Esempio n. 4
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()

# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with "Drents Archief"; 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
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 IntegrationState

if __name__ == '__main__':
    runner = TestRunner()
    IntegrationState(
        "default",
        tests=[
            '_integration.nginxupdateconfigtest.NginxUpdateConfigTest',
        ],
        fastMode=runner.fastMode).addToTestRunner(runner)
    runner.run()


Esempio n. 7
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)
flags = ['--fast']

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

    groupnames = None
    if '--group' in argv:
        pos = argv.index('--group')
        groupnames = [argv[pos+1]]
        del argv[pos:pos+2]

    runner = TestRunner()
    OasIntegrationState(
        'default', 
        tests=[
            'integration.oastest.OasTest',
            'integration.usertest.UserTest',
        ],
        fastMode=fastMode).addToTestRunner(runner)
    OasIntegrationState(
        'initial', 
        tests=[
            'integration.initialtest.InitialTest',
        ],
        fastMode=fastMode).addToTestRunner(runner)
    OasIntegrationState(
        'resolve',