Re-sync with internal repository
[hiphop-php.git] / third-party / thrift / src / thrift / compiler / test / fixtures / basic / gen-py / module / DbMixedStackArguments-fuzzer
blob4da75580a176528cace4c9d0c965dcbaef287a57
1 #!/usr/bin/env python
3 # Autogenerated by Thrift
5 # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
6 # @generated
9 from __future__ import absolute_import
10 from __future__ import division
11 from __future__ import print_function
12 from __future__ import unicode_literals
14 import os
15 import sys
17 if (not sys.argv[0].endswith("par") and
18 not sys.argv[0].endswith("xar") and
19 os.getenv('PAR_UNPACK_TMP') == None):
21 f = open(sys.argv[0], "r")
23 f.readline() # This will be #!/bin/bash
24 line = f.readline()
25 f.close()
27 # The par generator tool always has '# This par was made' as the
28 # second line. See fbcode/tools/make_par/make_par.py
29 if (not line.startswith('# This par was made')):
30 print("""WARNING
31 You are trying to run *-fuzzer.py which is
32 incorrect as the paths are not set up correctly.
33 Instead, you should generate your thrift file with
34 thrift_library and then run the resulting
35 *-fuzzer.par.
36 For more information, please read
37 http://fburl.com/python-remotes""")
38 exit()
40 from . import DbMixedStackArguments
41 from . import ttypes
42 from . import constants
44 import thrift.util.fuzzer
45 thrift.util.fuzzer.fuzz_service(DbMixedStackArguments, ttypes, constants)