diff options
author | Zachary Turner <zturner@google.com> | 2015-11-30 22:31:13 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-11-30 22:31:13 +0000 |
commit | 24a95f852d3664a0b397cd6cedeee5a0bd01d8dc (patch) | |
tree | 94284be5d7ec185da997e00250a51f891178929d /lldb/scripts/swig_bot_lib/remote.py | |
parent | db26b3ddfaf3ea6b41048902a744ed6d84867cff (diff) | |
download | bcm5719-llvm-24a95f852d3664a0b397cd6cedeee5a0bd01d8dc.tar.gz bcm5719-llvm-24a95f852d3664a0b397cd6cedeee5a0bd01d8dc.zip |
Have swig_bot actually run swig, and send back the output.
llvm-svn: 254340
Diffstat (limited to 'lldb/scripts/swig_bot_lib/remote.py')
-rw-r--r-- | lldb/scripts/swig_bot_lib/remote.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lldb/scripts/swig_bot_lib/remote.py b/lldb/scripts/swig_bot_lib/remote.py new file mode 100644 index 00000000000..74edb67f69c --- /dev/null +++ b/lldb/scripts/swig_bot_lib/remote.py @@ -0,0 +1,30 @@ +#!/usr/bin/env python + +""" +Shared functionality used by `client` and `server` when dealing with +remote transmission +""" + +# Future imports +from __future__ import absolute_import +from __future__ import print_function + +# Python modules +import json +import logging +import os +import socket +import struct +import sys + +# LLDB modules +import use_lldb_suite + +def generate_config(languages): + config = {"languages": languages} + return json.dumps(config) + +def parse_config(json_reader): + json_data = json_reader.read() + options_dict = json.loads(json_data) + return options_dict |