1*a0428e9eSAndrew Rist#************************************************************** 2*a0428e9eSAndrew Rist# 3*a0428e9eSAndrew Rist# Licensed to the Apache Software Foundation (ASF) under one 4*a0428e9eSAndrew Rist# or more contributor license agreements. See the NOTICE file 5*a0428e9eSAndrew Rist# distributed with this work for additional information 6*a0428e9eSAndrew Rist# regarding copyright ownership. The ASF licenses this file 7*a0428e9eSAndrew Rist# to you under the Apache License, Version 2.0 (the 8*a0428e9eSAndrew Rist# "License"); you may not use this file except in compliance 9*a0428e9eSAndrew Rist# with the License. You may obtain a copy of the License at 10*a0428e9eSAndrew Rist# 11*a0428e9eSAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 12*a0428e9eSAndrew Rist# 13*a0428e9eSAndrew Rist# Unless required by applicable law or agreed to in writing, 14*a0428e9eSAndrew Rist# software distributed under the License is distributed on an 15*a0428e9eSAndrew Rist# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*a0428e9eSAndrew Rist# KIND, either express or implied. See the License for the 17*a0428e9eSAndrew Rist# specific language governing permissions and limitations 18*a0428e9eSAndrew Rist# under the License. 19*a0428e9eSAndrew Rist# 20*a0428e9eSAndrew Rist#************************************************************** 21cdf0e10cSrcweirimport uno 22cdf0e10cSrcweirimport unohelper 23cdf0e10cSrcweirimport importer 24cdf0e10cSrcweirimport unittest 25cdf0e10cSrcweirimport core 26cdf0e10cSrcweirimport impl 27cdf0e10cSrcweirimport os 28cdf0e10cSrcweirimport sys 29cdf0e10cSrcweir 30cdf0e10cSrcweirctx = uno.getComponentContext() 31cdf0e10cSrcweir# needed for the tests 32cdf0e10cSrcweirunohelper.addComponentsToContext(ctx,ctx,(os.environ["FOO"]+"/cppobj.uno",os.environ["FOO"]+"/bridgetest.uno","streams.uno","bootstrap.uno"),"com.sun.star.loader.SharedLibrary") 33cdf0e10cSrcweir 34cdf0e10cSrcweirunohelper.addComponentsToContext(ctx,ctx,("vnd.openoffice.pymodule:samplecomponent",),"com.sun.star.loader.Python") 35cdf0e10cSrcweir 36cdf0e10cSrcweirrunner = unittest.TextTestRunner(sys.stderr,1,2) 37cdf0e10cSrcweir 38cdf0e10cSrcweirsuite = unittest.TestSuite() 39cdf0e10cSrcweirsuite.addTest(importer.suite(ctx)) 40cdf0e10cSrcweirsuite.addTest(core.suite(ctx)) 41cdf0e10cSrcweirsuite.addTest(impl.suite(ctx)) 42cdf0e10cSrcweir 43cdf0e10cSrcweirrunner.run(suite) 44