Skip to content

Commit 8ae3640

Browse files
committed
---
yaml --- r: 151423 b: refs/heads/try2 c: ec9ade9 h: refs/heads/master i: 151421: d7473fd 151419: 893c218 151415: 19ed5ed 151407: bfc35d9 151391: e629079 151359: b27e23f 151295: 66464db v: v3
1 parent 5e61f90 commit 8ae3640

File tree

264 files changed

+16844
-18060
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

264 files changed

+16844
-18060
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: c217a844793034c181bd4457b9797b97a2c66f58
8+
refs/heads/try2: ec9ade938e9e4aa710f4351e48a8fda1037352aa
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/configure

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -466,26 +466,6 @@ probe CFG_PDFLATEX pdflatex
466466
probe CFG_XELATEX xelatex
467467
probe CFG_LUALATEX lualatex
468468
probe CFG_GDB gdb
469-
probe CFG_LLDB lldb
470-
471-
if [ ! -z "$CFG_LLDB" ]
472-
then
473-
# If CFG_LLDB_PYTHON_DIR is not already set from the outside and valid, try to read it from
474-
# LLDB via the -P commandline options.
475-
if [ -z "$CFG_LLDB_PYTHON_DIR" ] || [ ! -d "$CFG_LLDB_PYTHON_DIR" ]
476-
then
477-
CFG_LLDB_PYTHON_DIR=$($CFG_LLDB -P)
478-
479-
# If CFG_LLDB_PYTHON_DIR is not a valid directory, set it to something more readable
480-
if [ ! -d "$CFG_LLDB_PYTHON_DIR" ]
481-
then
482-
CFG_LLDB_PYTHON_DIR="LLDB_PYTHON_DIRECTORY_NOT_FOUND"
483-
fi
484-
485-
putvar CFG_LLDB_PYTHON_DIR
486-
fi
487-
fi
488-
489469
if [ "$CFG_OSTYPE" = "unknown-linux-gnu" ]
490470
then
491471
probe CFG_PAXCTL paxctl /sbin/paxctl
@@ -823,12 +803,10 @@ do
823803
make_dir $h/test/run-pass-fulldeps
824804
make_dir $h/test/run-fail
825805
make_dir $h/test/compile-fail
826-
make_dir $h/test/compile-fail-fulldeps
827806
make_dir $h/test/bench
828807
make_dir $h/test/perf
829808
make_dir $h/test/pretty
830-
make_dir $h/test/debuginfo-gdb
831-
make_dir $h/test/debuginfo-lldb
809+
make_dir $h/test/debug-info
832810
make_dir $h/test/codegen
833811
make_dir $h/test/doc-tutorial
834812
make_dir $h/test/doc-guide-ffi

branches/try2/mk/crates.mk

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,12 @@
5151

5252
TARGET_CRATES := libc std green rustuv native flate arena glob term semver \
5353
uuid serialize sync getopts collections num test time rand \
54-
workcache url log regex graphviz core
54+
workcache url log regex graphviz
5555
HOST_CRATES := syntax rustc rustdoc fourcc hexfloat regex_macros
5656
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
5757
TOOLS := compiletest rustdoc rustc
5858

59-
DEPS_core :=
60-
DEPS_std := core libc native:rustrt native:compiler-rt native:backtrace
59+
DEPS_std := libc native:rustrt native:compiler-rt native:backtrace
6160
DEPS_green := std rand native:context_switch
6261
DEPS_rustuv := std native:uv native:uv_support
6362
DEPS_native := std
@@ -96,8 +95,6 @@ TOOL_SOURCE_compiletest := $(S)src/compiletest/compiletest.rs
9695
TOOL_SOURCE_rustdoc := $(S)src/driver/driver.rs
9796
TOOL_SOURCE_rustc := $(S)src/driver/driver.rs
9897

99-
ONLY_RLIB_core := 1
100-
10198
################################################################################
10299
# You should not need to edit below this line
103100
################################################################################

branches/try2/mk/host.mk

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
# $(5) - the name of the crate being processed
1919
define CP_HOST_STAGE_N_CRATE
2020

21-
ifeq ($$(ONLY_RLIB_$(5)),)
2221
$$(HLIB$(2)_H_$(4))/stamp.$(5): \
2322
$$(TLIB$(1)_T_$(3)_H_$(4))/stamp.$(5) \
2423
$$(RUST_DEPS_$(5):%=$$(HLIB$(2)_H_$(4))/stamp.%) \
@@ -31,10 +30,6 @@ $$(HLIB$(2)_H_$(4))/stamp.$(5): \
3130
$$(HLIB$(2)_H_$(4))
3231
$$(call LIST_ALL_OLD_GLOB_MATCHES,\
3332
$$(dir $$@)$$(call CFG_LIB_GLOB_$(3),$(5)))
34-
else
35-
$$(HLIB$(2)_H_$(4))/stamp.$(5):
36-
$$(Q)touch $$@
37-
endif
3833

3934
endef
4035

@@ -59,6 +54,9 @@ endef
5954
# $(4) - the host triple (same as $(3))
6055
define CP_HOST_STAGE_N
6156

57+
$$(HBIN$(2)_H_$(4))/:
58+
@mkdir -p $$@
59+
6260
ifneq ($(CFG_LIBDIR_RELATIVE),bin)
6361
$$(HLIB$(2)_H_$(4))/:
6462
@mkdir -p $$@

branches/try2/mk/tests.mk

Lines changed: 12 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,11 @@ check-stage$(1)-T-$(2)-H-$(3)-exec: \
288288
check-stage$(1)-T-$(2)-H-$(3)-rfail-exec \
289289
check-stage$(1)-T-$(2)-H-$(3)-cfail-exec \
290290
check-stage$(1)-T-$(2)-H-$(3)-rpass-full-exec \
291-
check-stage$(1)-T-$(2)-H-$(3)-cfail-full-exec \
292291
check-stage$(1)-T-$(2)-H-$(3)-rmake-exec \
293292
check-stage$(1)-T-$(2)-H-$(3)-crates-exec \
294293
check-stage$(1)-T-$(2)-H-$(3)-doc-crates-exec \
295294
check-stage$(1)-T-$(2)-H-$(3)-bench-exec \
296-
check-stage$(1)-T-$(2)-H-$(3)-debuginfo-gdb-exec \
297-
check-stage$(1)-T-$(2)-H-$(3)-debuginfo-lldb-exec \
295+
check-stage$(1)-T-$(2)-H-$(3)-debuginfo-exec \
298296
check-stage$(1)-T-$(2)-H-$(3)-codegen-exec \
299297
check-stage$(1)-T-$(2)-H-$(3)-doc-exec \
300298
check-stage$(1)-T-$(2)-H-$(3)-pretty-exec
@@ -453,16 +451,13 @@ RPASS_RC := $(wildcard $(S)src/test/run-pass/*.rc)
453451
RPASS_RS := $(wildcard $(S)src/test/run-pass/*.rs)
454452
RPASS_FULL_RC := $(wildcard $(S)src/test/run-pass-fulldeps/*.rc)
455453
RPASS_FULL_RS := $(wildcard $(S)src/test/run-pass-fulldeps/*.rs)
456-
CFAIL_FULL_RC := $(wildcard $(S)src/test/compile-fail-fulldeps/*.rc)
457-
CFAIL_FULL_RS := $(wildcard $(S)src/test/compile-fail-fulldeps/*.rs)
458454
RFAIL_RC := $(wildcard $(S)src/test/run-fail/*.rc)
459455
RFAIL_RS := $(wildcard $(S)src/test/run-fail/*.rs)
460456
CFAIL_RC := $(wildcard $(S)src/test/compile-fail/*.rc)
461457
CFAIL_RS := $(wildcard $(S)src/test/compile-fail/*.rs)
462458
BENCH_RS := $(wildcard $(S)src/test/bench/*.rs)
463459
PRETTY_RS := $(wildcard $(S)src/test/pretty/*.rs)
464-
DEBUGINFO_GDB_RS := $(wildcard $(S)src/test/debuginfo/*.rs)
465-
DEBUGINFO_LLDB_RS := $(wildcard $(S)src/test/debuginfo/*.rs)
460+
DEBUGINFO_RS := $(wildcard $(S)src/test/debug-info/*.rs)
466461
CODEGEN_RS := $(wildcard $(S)src/test/codegen/*.rs)
467462
CODEGEN_CC := $(wildcard $(S)src/test/codegen/*.cc)
468463

@@ -472,14 +467,12 @@ PERF_RS := $(wildcard $(S)src/test/bench/*.rs)
472467

473468
RPASS_TESTS := $(RPASS_RC) $(RPASS_RS)
474469
RPASS_FULL_TESTS := $(RPASS_FULL_RC) $(RPASS_FULL_RS)
475-
CFAIL_FULL_TESTS := $(CFAIL_FULL_RC) $(CFAIL_FULL_RS)
476470
RFAIL_TESTS := $(RFAIL_RC) $(RFAIL_RS)
477471
CFAIL_TESTS := $(CFAIL_RC) $(CFAIL_RS)
478472
BENCH_TESTS := $(BENCH_RS)
479473
PERF_TESTS := $(PERF_RS)
480474
PRETTY_TESTS := $(PRETTY_RS)
481-
DEBUGINFO_GDB_TESTS := $(DEBUGINFO_GDB_RS)
482-
DEBUGINFO_LLDB_TESTS := $(DEBUGINFO_LLDB_RS)
475+
DEBUGINFO_TESTS := $(DEBUGINFO_RS)
483476
CODEGEN_TESTS := $(CODEGEN_RS) $(CODEGEN_CC)
484477

485478
CTEST_SRC_BASE_rpass = run-pass
@@ -492,11 +485,6 @@ CTEST_BUILD_BASE_rpass-full = run-pass-fulldeps
492485
CTEST_MODE_rpass-full = run-pass
493486
CTEST_RUNTOOL_rpass-full = $(CTEST_RUNTOOL)
494487

495-
CTEST_SRC_BASE_cfail-full = compile-fail-fulldeps
496-
CTEST_BUILD_BASE_cfail-full = compile-fail-fulldeps
497-
CTEST_MODE_cfail-full = compile-fail
498-
CTEST_RUNTOOL_cfail-full = $(CTEST_RUNTOOL)
499-
500488
CTEST_SRC_BASE_rfail = run-fail
501489
CTEST_BUILD_BASE_rfail = run-fail
502490
CTEST_MODE_rfail = run-fail
@@ -517,15 +505,10 @@ CTEST_BUILD_BASE_perf = perf
517505
CTEST_MODE_perf = run-pass
518506
CTEST_RUNTOOL_perf = $(CTEST_PERF_RUNTOOL)
519507

520-
CTEST_SRC_BASE_debuginfo-gdb = debuginfo
521-
CTEST_BUILD_BASE_debuginfo-gdb = debuginfo-gdb
522-
CTEST_MODE_debuginfo-gdb = debuginfo-gdb
523-
CTEST_RUNTOOL_debuginfo-gdb = $(CTEST_RUNTOOL)
524-
525-
CTEST_SRC_BASE_debuginfo-lldb = debuginfo
526-
CTEST_BUILD_BASE_debuginfo-lldb = debuginfo-lldb
527-
CTEST_MODE_debuginfo-lldb = debuginfo-lldb
528-
CTEST_RUNTOOL_debuginfo-lldb = $(CTEST_RUNTOOL)
508+
CTEST_SRC_BASE_debuginfo = debug-info
509+
CTEST_BUILD_BASE_debuginfo = debug-info
510+
CTEST_MODE_debuginfo = debug-info
511+
CTEST_RUNTOOL_debuginfo = $(CTEST_RUNTOOL)
529512

530513
CTEST_SRC_BASE_codegen = codegen
531514
CTEST_BUILD_BASE_codegen = codegen
@@ -537,22 +520,15 @@ CTEST_RUNTOOL_codegen = $(CTEST_RUNTOOL)
537520
# during attempts to run those tests.
538521

539522
ifeq ($(CFG_GDB),)
540-
CTEST_DISABLE_debuginfo-gdb = "no gdb found"
523+
CTEST_DISABLE_debuginfo = "no gdb found"
541524
endif
542525

543-
ifeq ($(CFG_LLDB),)
544-
CTEST_DISABLE_debuginfo-lldb = "no lldb found"
545-
endif
546-
547-
# Completely disable LLDB tests for now
548-
CTEST_DISABLE_debuginfo-lldb = "LLDB tests are not enabled yet"
549-
550526
ifeq ($(CFG_CLANG),)
551527
CTEST_DISABLE_codegen = "no clang found"
552528
endif
553529

554530
ifeq ($(CFG_OSTYPE),apple-darwin)
555-
CTEST_DISABLE_debuginfo-gdb = "gdb on darwing needs root"
531+
CTEST_DISABLE_debuginfo = "gdb on darwing needs root"
556532
endif
557533

558534
# CTEST_DISABLE_NONSELFHOST_$(TEST_GROUP), if set, will cause that
@@ -602,19 +578,16 @@ CTEST_COMMON_ARGS$(1)-T-$(2)-H-$(3) := \
602578
--adb-path=$(CFG_ADB) \
603579
--adb-test-dir=$(CFG_ADB_TEST_DIR) \
604580
--host-rustcflags "$(RUSTC_FLAGS_$(3)) $$(CTEST_RUSTC_FLAGS) -L $$(RT_OUTPUT_DIR_$(3))" \
605-
--lldb-python-dir=$(CFG_LLDB_PYTHON_DIR) \
606581
--target-rustcflags "$(RUSTC_FLAGS_$(2)) $$(CTEST_RUSTC_FLAGS) -L $$(RT_OUTPUT_DIR_$(2))" \
607582
$$(CTEST_TESTARGS)
608583

609584
CTEST_DEPS_rpass_$(1)-T-$(2)-H-$(3) = $$(RPASS_TESTS)
610585
CTEST_DEPS_rpass-full_$(1)-T-$(2)-H-$(3) = $$(RPASS_FULL_TESTS) $$(CSREQ$(1)_T_$(3)_H_$(3)) $$(SREQ$(1)_T_$(2)_H_$(3))
611-
CTEST_DEPS_cfail-full_$(1)-T-$(2)-H-$(3) = $$(CFAIL_FULL_TESTS) $$(CSREQ$(1)_T_$(3)_H_$(3)) $$(SREQ$(1)_T_$(2)_H_$(3))
612586
CTEST_DEPS_rfail_$(1)-T-$(2)-H-$(3) = $$(RFAIL_TESTS)
613587
CTEST_DEPS_cfail_$(1)-T-$(2)-H-$(3) = $$(CFAIL_TESTS)
614588
CTEST_DEPS_bench_$(1)-T-$(2)-H-$(3) = $$(BENCH_TESTS)
615589
CTEST_DEPS_perf_$(1)-T-$(2)-H-$(3) = $$(PERF_TESTS)
616-
CTEST_DEPS_debuginfo-gdb_$(1)-T-$(2)-H-$(3) = $$(DEBUGINFO_GDB_TESTS)
617-
CTEST_DEPS_debuginfo-lldb_$(1)-T-$(2)-H-$(3) = $$(DEBUGINFO_LLDB_TESTS)
590+
CTEST_DEPS_debuginfo_$(1)-T-$(2)-H-$(3) = $$(DEBUGINFO_TESTS)
618591
CTEST_DEPS_codegen_$(1)-T-$(2)-H-$(3) = $$(CODEGEN_TESTS)
619592

620593
endef
@@ -678,7 +651,7 @@ endif
678651

679652
endef
680653

681-
CTEST_NAMES = rpass rpass-full cfail-full rfail cfail bench perf debuginfo-gdb debuginfo-lldb codegen
654+
CTEST_NAMES = rpass rpass-full rfail cfail bench perf debuginfo codegen
682655

683656
$(foreach host,$(CFG_HOST), \
684657
$(eval $(foreach target,$(CFG_TARGET), \
@@ -821,14 +794,12 @@ TEST_GROUPS = \
821794
$(foreach crate,$(TEST_DOC_CRATES),doc-crate-$(crate)) \
822795
rpass \
823796
rpass-full \
824-
cfail-full \
825797
rfail \
826798
cfail \
827799
bench \
828800
perf \
829801
rmake \
830-
debuginfo-gdb \
831-
debuginfo-lldb \
802+
debuginfo \
832803
codegen \
833804
doc \
834805
$(foreach docname,$(DOCS),doc-$(docname)) \

branches/try2/src/compiletest/common.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ pub enum mode {
1414
mode_run_fail,
1515
mode_run_pass,
1616
mode_pretty,
17-
mode_debug_info_gdb,
18-
mode_debug_info_lldb,
17+
mode_debug_info,
1918
mode_codegen
2019
}
2120

@@ -102,9 +101,6 @@ pub struct config {
102101
// status whether android device available or not
103102
pub adb_device_status: bool,
104103

105-
// the path containing LLDB's Python module
106-
pub lldb_python_dir: Option<~str>,
107-
108104
// Explain what's going on
109105
pub verbose: bool
110106

branches/try2/src/compiletest/compiletest.rs

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,14 @@ use std::os;
2828
use std::io;
2929
use std::io::fs;
3030
use getopts::{optopt, optflag, reqopt};
31-
use common::{config, mode_run_pass, mode_run_fail, mode_compile_fail, mode_pretty,
32-
mode_debug_info_gdb, mode_debug_info_lldb, mode_codegen, mode};
31+
use common::config;
32+
use common::mode_run_pass;
33+
use common::mode_run_fail;
34+
use common::mode_compile_fail;
35+
use common::mode_pretty;
36+
use common::mode_debug_info;
37+
use common::mode_codegen;
38+
use common::mode;
3339
use util::logv;
3440

3541
pub mod procsrv;
@@ -81,7 +87,6 @@ pub fn parse_config(args: Vec<~str> ) -> config {
8187
optopt("", "host", "the host to build for", "HOST"),
8288
optopt("", "adb-path", "path to the android debugger", "PATH"),
8389
optopt("", "adb-test-dir", "path to tests for the android debugger", "PATH"),
84-
optopt("", "lldb-python-dir", "directory containing LLDB's python module", "PATH"),
8590
optopt("", "test-shard", "run shard A, of B shards, worth of the testsuite", "A.B"),
8691
optflag("h", "help", "show this message"));
8792

@@ -149,7 +154,6 @@ pub fn parse_config(args: Vec<~str> ) -> config {
149154
"arm-linux-androideabi" == opt_str2(matches.opt_str("target")) &&
150155
"(none)" != opt_str2(matches.opt_str("adb-test-dir")) &&
151156
!opt_str2(matches.opt_str("adb-test-dir")).is_empty(),
152-
lldb_python_dir: matches.opt_str("lldb-python-dir"),
153157
test_shard: test::opt_shard(matches.opt_str("test-shard")),
154158
verbose: matches.opt_present("verbose")
155159
}
@@ -200,14 +204,13 @@ pub fn opt_str2(maybestr: Option<~str>) -> ~str {
200204

201205
pub fn str_mode(s: ~str) -> mode {
202206
match s.as_slice() {
203-
"compile-fail" => mode_compile_fail,
204-
"run-fail" => mode_run_fail,
205-
"run-pass" => mode_run_pass,
206-
"pretty" => mode_pretty,
207-
"debuginfo-gdb" => mode_debug_info_gdb,
208-
"debuginfo-lldb" => mode_debug_info_lldb,
209-
"codegen" => mode_codegen,
210-
s => fail!("invalid mode: " + s)
207+
"compile-fail" => mode_compile_fail,
208+
"run-fail" => mode_run_fail,
209+
"run-pass" => mode_run_pass,
210+
"pretty" => mode_pretty,
211+
"debug-info" => mode_debug_info,
212+
"codegen" => mode_codegen,
213+
_ => fail!("invalid mode")
211214
}
212215
}
213216

@@ -217,16 +220,15 @@ pub fn mode_str(mode: mode) -> ~str {
217220
mode_run_fail => "run-fail".to_owned(),
218221
mode_run_pass => "run-pass".to_owned(),
219222
mode_pretty => "pretty".to_owned(),
220-
mode_debug_info_gdb => "debuginfo-gdb".to_owned(),
221-
mode_debug_info_lldb => "debuginfo-lldb".to_owned(),
223+
mode_debug_info => "debug-info".to_owned(),
222224
mode_codegen => "codegen".to_owned(),
223225
}
224226
}
225227

226228
pub fn run_tests(config: &config) {
227229
if config.target == "arm-linux-androideabi".to_owned() {
228230
match config.mode{
229-
mode_debug_info_gdb => {
231+
mode_debug_info => {
230232
println!("arm-linux-androideabi debug-info \
231233
test uses tcp 5039 port. please reserve it");
232234
}

0 commit comments

Comments
 (0)