1# Copyright 2017 The Abseil Authors.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15"""Test helper for smoke_test.sh."""
16
17import sys
18
19from absl import app
20from absl import flags
21from absl import logging
22
23FLAGS = flags.FLAGS
24
25flags.DEFINE_string('echo', None, 'Text to echo.')
26
27
28def main(argv):
29  del argv  # Unused.
30
31  print('Running under Python {0[0]}.{0[1]}.{0[2]}'.format(sys.version_info),
32        file=sys.stderr)
33  logging.info('echo is %s.', FLAGS.echo)
34
35
36if __name__ == '__main__':
37  app.run(main)
38