| Index: tools/testrunner/objects/context.py
|
| diff --git a/samples/samples.gyp b/tools/testrunner/objects/context.py
|
| similarity index 67%
|
| copy from samples/samples.gyp
|
| copy to tools/testrunner/objects/context.py
|
| index 3c720a748a19a146fcbae8d05bccdd27bb752b28..b72284b648fa9ba53123a51d3cd97d2f5e266ee9 100644
|
| --- a/samples/samples.gyp
|
| +++ b/tools/testrunner/objects/context.py
|
| @@ -25,35 +25,26 @@
|
| # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -{
|
| - 'includes': ['../build/common.gypi'],
|
| - 'target_defaults': {
|
| - 'type': 'executable',
|
| - 'dependencies': [
|
| - '../tools/gyp/v8.gyp:v8',
|
| - ],
|
| - 'include_dirs': [
|
| - '../include',
|
| - ],
|
| - },
|
| - 'targets': [
|
| - {
|
| - 'target_name': 'shell',
|
| - 'sources': [
|
| - 'shell.cc',
|
| - ],
|
| - },
|
| - {
|
| - 'target_name': 'process',
|
| - 'sources': [
|
| - 'process.cc',
|
| - ],
|
| - },
|
| - {
|
| - 'target_name': 'lineprocessor',
|
| - 'sources': [
|
| - 'lineprocessor.cc',
|
| - ],
|
| - }
|
| - ],
|
| -}
|
| +
|
| +class Context():
|
| + def __init__(self, arch, mode, shell_dir, mode_flags, verbose, timeout,
|
| + isolates, command_prefix, extra_flags):
|
| + self.arch = arch
|
| + self.mode = mode
|
| + self.shell_dir = shell_dir
|
| + self.mode_flags = mode_flags
|
| + self.verbose = verbose
|
| + self.timeout = timeout
|
| + self.isolates = isolates
|
| + self.command_prefix = command_prefix
|
| + self.extra_flags = extra_flags
|
| +
|
| + def Pack(self):
|
| + return [self.arch, self.mode, self.mode_flags, self.timeout, self.isolates,
|
| + self.extra_flags]
|
| +
|
| + @staticmethod
|
| + def Unpack(packed):
|
| + # For the order of the fields, refer to Pack() above.
|
| + return Context(packed[0], packed[1], None, packed[2], False,
|
| + packed[3], packed[4], "", packed[5])
|
|
|