blob: 9f71cf58c56a3959a4e06949f08703847baebfb5 [file] [log] [blame]
David Reiss8cee47c2009-02-07 02:37:05 +00001#!/usr/bin/env python
2
David Reissea2cba82009-03-30 21:35:00 +00003#
4# Licensed to the Apache Software Foundation (ASF) under one
5# or more contributor license agreements. See the NOTICE file
6# distributed with this work for additional information
7# regarding copyright ownership. The ASF licenses this file
8# to you under the Apache License, Version 2.0 (the
9# "License"); you may not use this file except in compliance
10# with the License. You may obtain a copy of the License at
11#
12# http://www.apache.org/licenses/LICENSE-2.0
13#
14# Unless required by applicable law or agreed to in writing,
15# software distributed under the License is distributed on an
16# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17# KIND, either express or implied. See the License for the
18# specific language governing permissions and limitations
19# under the License.
20#
21
David Reiss8cee47c2009-02-07 02:37:05 +000022import sys, glob
Roger Meierf4eec7a2011-09-11 18:16:21 +000023from optparse import OptionParser
24parser = OptionParser()
25parser.add_option('--genpydir', type='string', dest='genpydir', default='gen-py')
26options, args = parser.parse_args()
27del sys.argv[1:] # clean up hack so unittest doesn't complain
28sys.path.insert(0, options.genpydir)
David Reiss8cee47c2009-02-07 02:37:05 +000029sys.path.insert(0, glob.glob('../../lib/py/build/lib.*')[0])
30
31# Just import these generated files to make sure they are syntactically valid
32from DebugProtoTest import EmptyService
David Reissa7fc0922009-02-07 02:37:09 +000033from DebugProtoTest import Inherited