diff options
| author | Brian Anderson <banderson@mozilla.com> | 2014-02-14 19:21:17 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-04-06 15:55:43 -0700 |
| commit | 072a920503466e5631e77d3baa8970be253bc768 (patch) | |
| tree | d05460a2084b3963c50bdb805ace0a23a0d103bc /src/etc/combine-tests.py | |
| parent | 31e8f2448c8cdd913566d5cb9a5cb9f0c014dcbc (diff) | |
| download | rust-072a920503466e5631e77d3baa8970be253bc768.tar.gz rust-072a920503466e5631e77d3baa8970be253bc768.zip | |
Remove check-fast. Closes #4193, #8844, #6330, #7416
Diffstat (limited to 'src/etc/combine-tests.py')
| -rwxr-xr-x | src/etc/combine-tests.py | 91 |
1 files changed, 0 insertions, 91 deletions
diff --git a/src/etc/combine-tests.py b/src/etc/combine-tests.py deleted file mode 100755 index 68423b416f6..00000000000 --- a/src/etc/combine-tests.py +++ /dev/null @@ -1,91 +0,0 @@ -# Copyright 2011-2014 The Rust Project Developers. See the COPYRIGHT -# file at the top-level directory of this distribution and at -# http://rust-lang.org/COPYRIGHT. -# -# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or -# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license -# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your -# option. This file may not be copied, modified, or distributed -# except according to those terms. - -# This combines all the working run-pass tests into a single large crate so we -# can run it "fast": spawning zillions of windows processes is our major build -# bottleneck (and it doesn't hurt to run faster on other platforms as well). - -import sys -import os -import codecs - - -def scrub(b): - if sys.version_info >= (3,) and type(b) == bytes: - return b.decode('ascii') - else: - return b - -src_dir = scrub(os.getenv("CFG_SRC_DIR")) -if not src_dir: - raise Exception("missing env var CFG_SRC_DIR") - -run_pass = os.path.join(src_dir, "src", "test", "run-pass") -run_pass = os.path.abspath(run_pass) -stage2_tests = [] - -for t in os.listdir(run_pass): - if t.endswith(".rs") and not ( - t.startswith(".") or t.startswith("#") or t.startswith("~")): - f = codecs.open(os.path.join(run_pass, t), "r", "utf8") - s = f.read() - if not ("ignore-test" in s or - "ignore-fast" in s or - "ignore-win32" in s): - if not "pub fn main" in s and "fn main" in s: - print("Warning: no public entry point in " + t) - stage2_tests.append(t) - f.close() - -stage2_tests.sort() - -c = open("tmp/run_pass_stage2.rc", "w") -i = 0 -c.write( -""" -// AUTO-GENERATED FILE: DO NOT EDIT -#[crate_id=\"run_pass_stage2#0.1\"]; -#[crate_id=\"run_pass_stage2#0.1\"]; -#[feature(globs, macro_rules, struct_variant, managed_boxes)]; -#![allow(warnings)] -extern crate collections; -""" -) -for t in stage2_tests: - p = os.path.join(run_pass, t) - p = p.replace("\\", "\\\\") - c.write("#[path = \"%s\"]" % p) - c.write("pub mod t_%d;\n" % i) - i += 1 -c.close() - - -d = open("tmp/run_pass_stage2_driver.rs", "w") -d.write( -""" -// AUTO-GENERATED FILE: DO NOT EDIT -#[feature(globs, managed_boxes)]; -extern crate run_pass_stage2; -use run_pass_stage2::*; -use std::io; -use std::io::Writer; -#[allow(warnings)] -fn main() { - let mut out = io::stdout(); -""" -) -i = 0 -for t in stage2_tests: - p = os.path.join("test", "run-pass", t) - p = p.replace("\\", "\\\\") - d.write(" out.write(\"run-pass [stage2]: %s\\n\".as_bytes());\n" % p) - d.write(" t_%d::main();\n" % i) - i += 1 -d.write("}\n") |
