Split tests.

This commit is contained in:
arlolra 2010-02-25 01:36:17 -05:00 committed by Ryan Dahl
parent 9ad7539cf9
commit 04fac19822
97 changed files with 325 additions and 94 deletions

View File

@ -24,6 +24,15 @@ test-all: all
test-debug: all
python tools/test.py --mode=debug
test-simple: all
python tools/test.py simple
test-pummel: all
python tools/test.py pummel
test-internet: all
python tools/test.py internet
benchmark: all
build/default/node benchmark/run.js

View File

@ -0,0 +1 @@
prefix internet

View File

@ -35,10 +35,10 @@ FLAGS_PATTERN = re.compile(r"//\s+Flags:(.*)")
FILES_PATTERN = re.compile(r"//\s+Files:(.*)")
class MjsunitTestCase(test.TestCase):
class SimpleTestCase(test.TestCase):
def __init__(self, path, file, mode, context, config):
super(MjsunitTestCase, self).__init__(context, path)
super(SimpleTestCase, self).__init__(context, path)
self.file = file
self.config = config
self.mode = mode
@ -68,10 +68,10 @@ class MjsunitTestCase(test.TestCase):
return open(self.file).read()
class MjsunitTestConfiguration(test.TestConfiguration):
class SimpleTestConfiguration(test.TestConfiguration):
def __init__(self, context, root):
super(MjsunitTestConfiguration, self).__init__(context, root)
super(SimpleTestConfiguration, self).__init__(context, root)
def Ls(self, path):
def SelectTest(name):
@ -79,27 +79,30 @@ class MjsunitTestConfiguration(test.TestConfiguration):
return [f[:-3] for f in os.listdir(path) if SelectTest(f)]
def ListTests(self, current_path, path, mode):
mjsunit = [current_path + [t] for t in self.Ls(self.root)]
simple = [current_path + [t] for t in self.Ls(self.root)]
#simple = [current_path + ['simple', t] for t in self.Ls(join(self.root, 'simple'))]
#pummel = [current_path + ['pummel', t] for t in self.Ls(join(self.root, 'pummel'))]
#internet = [current_path + ['internet', t] for t in self.Ls(join(self.root, 'internet'))]
#regress = [current_path + ['regress', t] for t in self.Ls(join(self.root, 'regress'))]
#bugs = [current_path + ['bugs', t] for t in self.Ls(join(self.root, 'bugs'))]
#tools = [current_path + ['tools', t] for t in self.Ls(join(self.root, 'tools'))]
all_tests = mjsunit # + regress + bugs + tools
all_tests = simple # + regress + bugs + tools
result = []
for test in all_tests:
if self.Contains(path, test):
file_path = join(self.root, reduce(join, test[1:], "") + ".js")
result.append(MjsunitTestCase(test, file_path, mode, self.context, self))
result.append(SimpleTestCase(test, file_path, mode, self.context, self))
return result
def GetBuildRequirements(self):
return ['sample', 'sample=shell']
def GetTestStatus(self, sections, defs):
status_file = join(self.root, 'mjsunit.status')
status_file = join(self.root, 'simple.status')
if exists(status_file):
test.ReadConfigurationInto(status_file, sections, defs)
def GetConfiguration(context, root):
return MjsunitTestConfiguration(context, root)
return SimpleTestConfiguration(context, root)

View File

@ -1,5 +0,0 @@
process.mixin(require('./common'));
var fixture = path.join(__dirname, "fixtures/x.txt");
assert.equal("xyz\n", fs.readFileSync(fixture));

View File

@ -0,0 +1 @@
prefix pummel

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var tcp = require("tcp"),
sys = require("sys"),

View File

@ -1,5 +1,5 @@
// This test requires the program "ab"
process.mixin(require("./common"));
process.mixin(require("../common"));
http = require("http");
sys = require("sys");
PORT = 8891;

View File

@ -1,10 +1,10 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var http = require("http"),
multipart = require("multipart"),
sys = require("sys"),
PORT = 8222,
fixture = require("./fixtures/multipart"),
fixture = require("../fixtures/multipart"),
events = require("events"),
testPart = function (expect, part) {
if (!expect) {

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var N = 40;
var finished = false;

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
tcp = require("tcp");
// settings
var port = 20743;

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
tcp = require("tcp");

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
tcp = require("tcp");

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
tcp = require("tcp");
PORT = 20444;
N = 30*1024; // 500kb

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
tcp = require("tcp");
PORT = 20443;
N = 200;

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
tcp = require("tcp");
port = 9992;
exchanges = 0;

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
tcp = require("tcp");
fs=require("fs");

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var WINDOW = 200; // why is does this need to be so big?

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var path = require("path");

108
test/pummel/testcfg.py Normal file
View File

@ -0,0 +1,108 @@
# Copyright 2008 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import test
import os
from os.path import join, dirname, exists
import re
FLAGS_PATTERN = re.compile(r"//\s+Flags:(.*)")
FILES_PATTERN = re.compile(r"//\s+Files:(.*)")
class SimpleTestCase(test.TestCase):
def __init__(self, path, file, mode, context, config):
super(SimpleTestCase, self).__init__(context, path)
self.file = file
self.config = config
self.mode = mode
def GetLabel(self):
return "%s %s" % (self.mode, self.GetName())
def GetName(self):
return self.path[-1]
def GetCommand(self):
result = [self.config.context.GetVm(self.mode)]
source = open(self.file).read()
flags_match = FLAGS_PATTERN.search(source)
if flags_match:
result += flags_match.group(1).strip().split()
files_match = FILES_PATTERN.search(source);
additional_files = []
if files_match:
additional_files += files_match.group(1).strip().split()
for a_file in additional_files:
result.append(join(dirname(self.config.root), '..', a_file))
result += [self.file]
return result
def GetSource(self):
return open(self.file).read()
class SimpleTestConfiguration(test.TestConfiguration):
def __init__(self, context, root):
super(SimpleTestConfiguration, self).__init__(context, root)
def Ls(self, path):
def SelectTest(name):
return name.startswith('test-') and name.endswith('.js')
return [f[:-3] for f in os.listdir(path) if SelectTest(f)]
def ListTests(self, current_path, path, mode):
simple = [current_path + [t] for t in self.Ls(self.root)]
#simple = [current_path + ['simple', t] for t in self.Ls(join(self.root, 'simple'))]
#pummel = [current_path + ['pummel', t] for t in self.Ls(join(self.root, 'pummel'))]
#internet = [current_path + ['internet', t] for t in self.Ls(join(self.root, 'internet'))]
#regress = [current_path + ['regress', t] for t in self.Ls(join(self.root, 'regress'))]
#bugs = [current_path + ['bugs', t] for t in self.Ls(join(self.root, 'bugs'))]
#tools = [current_path + ['tools', t] for t in self.Ls(join(self.root, 'tools'))]
all_tests = simple # + regress + bugs + tools
result = []
for test in all_tests:
if self.Contains(path, test):
file_path = join(self.root, reduce(join, test[1:], "") + ".js")
result.append(SimpleTestCase(test, file_path, mode, self.context, self))
return result
def GetBuildRequirements(self):
return ['sample', 'sample=shell']
def GetTestStatus(self, sections, defs):
status_file = join(self.root, 'simple.status')
if exists(status_file):
test.ReadConfigurationInto(status_file, sections, defs)
def GetConfiguration(context, root):
return SimpleTestConfiguration(context, root)

View File

@ -0,0 +1 @@
prefix simple

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var a = require('assert');

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
assert.equal(14, process._byteLength("Il était tué"));
assert.equal(14, process._byteLength("Il était tué", "utf8"));

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var dirname = path.dirname(__filename);

View File

@ -1,7 +1,7 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
setTimeout(function () {
a = require("./fixtures/a");
a = require("../fixtures/a");
}, 50);
process.addListener("exit", function () {

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var count = 100;
var fs = require('fs');

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var testTxt = path.join(fixturesDir, "x.txt");
var fs = require('fs');

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var N = 100;
var j = 0;

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var events = require('events');
var e = new events.EventEmitter();

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var events = require('events');
var callbacks_called = [ ];

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var MESSAGE = 'catch me if you can';
var caughtException = false;

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
success_count = 0;
error_count = 0;

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var got_error = false;
var filename = path.join(fixturesDir, "does_not_exist.txt");

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var got_error = false;
var success_count = 0;

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var got_error = false;
var success_count = 0;

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var completed = 0;

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var fn = path.join(fixturesDir, "write.txt");
var expected = "hello";

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
tcp = require("tcp");
http = require("http");

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
http = require("http");
PORT = 8888;

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var http = require("http");
var PORT = 8888;

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
http = require("http");
url = require("url");
PORT = 8888;

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
http = require("http");
var PORT = 18032;

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
tcp = require("tcp");
http = require("http");

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
tcp = require("tcp");
http = require("http");
url = require("url");

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
http = require("http");
url = require("url");

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
tcp = require("tcp");
http = require("http");
url = require("url");

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
http = require("http");
url = require("url");
PORT = 8888;

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
tcp = require("tcp");
http = require("http");

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
http = require("http");
url = require("url");
PORT = 8888;

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var complete = false;
var idle = new process.IdleWatcher();

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var r = process.memoryUsage();
puts(inspect(r));

View File

@ -1,7 +1,7 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var dirname = path.dirname(__filename);
var fixtures = path.join(dirname, "fixtures");
var fixtures = path.join(dirname, "../fixtures");
var d = path.join(fixtures, "dir");
var mkdir_error = false;

View File

@ -1,15 +1,15 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
debug("load test-module-loading.js");
var a = require("./fixtures/a");
var c = require("./fixtures/b/c");
var d = require("./fixtures/b/d");
var d2 = require("./fixtures/b/d");
var a = require("../fixtures/a");
var c = require("../fixtures/b/c");
var d = require("../fixtures/b/d");
var d2 = require("../fixtures/b/d");
// Absolute
var d3 = require(__dirname+"/fixtures/b/d");
var d3 = require(path.join(__dirname, "../fixtures/b/d"));
// Relative
var d4 = require("../mjsunit/fixtures/b/d");
var d4 = require("../fixtures/b/d");
assert.equal(false, false, "testing the test program.");
@ -37,19 +37,19 @@ assert.equal("D", d4.D());
assert.ok((new a.SomeClass) instanceof c.SomeClass);
debug("test index.js modules ids and relative loading")
var one = require("./fixtures/nested-index/one"),
two = require("./fixtures/nested-index/two");
var one = require("../fixtures/nested-index/one"),
two = require("../fixtures/nested-index/two");
assert.notEqual(one.hello, two.hello);
debug("test cycles containing a .. path");
var root = require("./fixtures/cycles/root"),
foo = require("./fixtures/cycles/folder/foo");
var root = require("../fixtures/cycles/root"),
foo = require("../fixtures/cycles/folder/foo");
assert.equal(root.foo, foo);
assert.equal(root.sayHello(), root.hello);
var errorThrown = false;
try {
require("./fixtures/throws_error");
require("../fixtures/throws_error");
} catch (e) {
errorThrown = true;
assert.equal("blah", e.message);
@ -57,7 +57,7 @@ try {
assert.equal(require('path').dirname(__filename), __dirname);
require.async('./fixtures/a', function (err, a) {
require.async('../fixtures/a', function (err, a) {
if (err) throw err;
assert.equal("A", a.A());
});

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var complete = 0;

View File

@ -1,12 +1,12 @@
var path = require("path");
process.mixin(require("./common"));
process.mixin(require("../common"));
var f = __filename;
assert.equal(path.basename(f), "test-path.js");
assert.equal(path.basename(f, ".js"), "test-path");
assert.equal(path.extname(f), ".js");
assert.equal(path.dirname(f).substr(-13), "/test/mjsunit");
assert.equal(path.dirname(f).substr(-11), "test/simple");
path.exists(f, function (y) { assert.equal(y, true) });
assert.equal(path.join(".", "fixtures/b", "..", "/b/c.js"), "fixtures/b/c.js");

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var pwd_called = false;

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var exit_status = -1;

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var target = function() {};
process.mixin(target, {

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var cat = process.createChildProcess("cat");

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
// test using assert

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var got_error = false;

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var PORT = 8889;
var http = require('http');

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
puts("process.pid: " + process.pid);

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var sub = path.join(fixturesDir, 'echo.js');

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var sub = path.join(fixturesDir, 'print-chars.js');

View File

@ -0,0 +1,5 @@
process.mixin(require('../common'));
var fixture = path.join(__dirname, "../fixtures/x.txt");
assert.equal("xyz\n", fs.readFileSync(fixture));

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
process.mixin(require("sys"));
assert.equal("0", inspect(0));

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
tcp = require("tcp");
PORT = 23123;

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
tcp = require("tcp");
var N = 50;
var port = 8921;

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var mask = 0664;
var old = process.umask(mask);

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
var url = require("url"),
sys = require("sys");

View File

@ -1,4 +1,4 @@
process.mixin(require("./common"));
process.mixin(require("../common"));
// üäö

108
test/simple/testcfg.py Normal file
View File

@ -0,0 +1,108 @@
# Copyright 2008 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import test
import os
from os.path import join, dirname, exists
import re
FLAGS_PATTERN = re.compile(r"//\s+Flags:(.*)")
FILES_PATTERN = re.compile(r"//\s+Files:(.*)")
class SimpleTestCase(test.TestCase):
def __init__(self, path, file, mode, context, config):
super(SimpleTestCase, self).__init__(context, path)
self.file = file
self.config = config
self.mode = mode
def GetLabel(self):
return "%s %s" % (self.mode, self.GetName())
def GetName(self):
return self.path[-1]
def GetCommand(self):
result = [self.config.context.GetVm(self.mode)]
source = open(self.file).read()
flags_match = FLAGS_PATTERN.search(source)
if flags_match:
result += flags_match.group(1).strip().split()
files_match = FILES_PATTERN.search(source);
additional_files = []
if files_match:
additional_files += files_match.group(1).strip().split()
for a_file in additional_files:
result.append(join(dirname(self.config.root), '..', a_file))
result += [self.file]
return result
def GetSource(self):
return open(self.file).read()
class SimpleTestConfiguration(test.TestConfiguration):
def __init__(self, context, root):
super(SimpleTestConfiguration, self).__init__(context, root)
def Ls(self, path):
def SelectTest(name):
return name.startswith('test-') and name.endswith('.js')
return [f[:-3] for f in os.listdir(path) if SelectTest(f)]
def ListTests(self, current_path, path, mode):
simple = [current_path + [t] for t in self.Ls(self.root)]
#simple = [current_path + ['simple', t] for t in self.Ls(join(self.root, 'simple'))]
#pummel = [current_path + ['pummel', t] for t in self.Ls(join(self.root, 'pummel'))]
#internet = [current_path + ['internet', t] for t in self.Ls(join(self.root, 'internet'))]
#regress = [current_path + ['regress', t] for t in self.Ls(join(self.root, 'regress'))]
#bugs = [current_path + ['bugs', t] for t in self.Ls(join(self.root, 'bugs'))]
#tools = [current_path + ['tools', t] for t in self.Ls(join(self.root, 'tools'))]
all_tests = simple # + regress + bugs + tools
result = []
for test in all_tests:
if self.Contains(path, test):
file_path = join(self.root, reduce(join, test[1:], "") + ".js")
result.append(SimpleTestCase(test, file_path, mode, self.context, self))
return result
def GetBuildRequirements(self):
return ['sample', 'sample=shell']
def GetTestStatus(self, sections, defs):
status_file = join(self.root, 'simple.status')
if exists(status_file):
test.ReadConfigurationInto(status_file, sections, defs)
def GetConfiguration(context, root):
return SimpleTestConfiguration(context, root)

View File

@ -1195,7 +1195,7 @@ def GetSpecialCommandProcessor(value):
return ExpandCommand
BUILT_IN_TESTS = ['mjsunit', 'cctest', 'message']
BUILT_IN_TESTS = ['simple', 'pummel', 'internet']
def GetSuites(test_root):