@@ -222,7 +222,7 @@ fn command_line_test_with_env(args: &[~str], cwd: &Path, env: Option<~[(~str, ~s
222
222
assert ! ( os:: path_is_dir( & * cwd) ) ;
223
223
let cwd = ( * cwd) . clone ( ) ;
224
224
let mut prog = run:: Process :: new ( cmd, args, run:: ProcessOptions {
225
- env : env,
225
+ env : env. map ( |e| e + os :: env ( ) ) ,
226
226
dir : Some ( & cwd) ,
227
227
in_fd : None ,
228
228
out_fd : None ,
@@ -358,7 +358,8 @@ fn lib_output_file_name(workspace: &Path, parent: &str, short_name: &str) -> Pat
358
358
short_name,
359
359
Build ,
360
360
workspace,
361
- "build" ) . expect ( "lib_output_file_name" )
361
+ "build" ,
362
+ & NoVersion ) . expect ( "lib_output_file_name" )
362
363
}
363
364
364
365
fn output_file_name ( workspace : & Path , short_name : & str ) -> Path {
@@ -405,10 +406,7 @@ fn frob_source_file(workspace: &Path, pkgid: &PkgId) {
405
406
}
406
407
}
407
408
408
- // FIXME(#7249): these tests fail on multi-platform builds, so for now they're
409
- // only run one x86
410
-
411
- #[ test] #[ ignore( cfg( target_arch = "x86" ) ) ]
409
+ #[ test]
412
410
fn test_make_dir_rwx ( ) {
413
411
let temp = & os:: tmpdir ( ) ;
414
412
let dir = temp. push ( "quux" ) ;
@@ -421,7 +419,7 @@ fn test_make_dir_rwx() {
421
419
assert ! ( os:: remove_dir_recursive( & dir) ) ;
422
420
}
423
421
424
- #[ test] # [ ignore ( cfg ( target_arch = "x86" ) ) ]
422
+ #[ test]
425
423
fn test_install_valid ( ) {
426
424
use path_util:: installed_library_in_workspace;
427
425
@@ -451,7 +449,7 @@ fn test_install_valid() {
451
449
assert ! ( !os:: path_exists( & bench) ) ;
452
450
}
453
451
454
- #[ test] # [ ignore ( cfg ( target_arch = "x86" ) ) ]
452
+ #[ test]
455
453
fn test_install_invalid ( ) {
456
454
use conditions:: nonexistent_package:: cond;
457
455
use cond1 = conditions:: missing_pkg_files:: cond;
@@ -476,8 +474,6 @@ fn test_install_invalid() {
476
474
477
475
// Tests above should (maybe) be converted to shell out to rustpkg, too
478
476
479
- // FIXME: #7956: temporarily disabled
480
- #[ ignore( cfg( target_arch = "x86" ) ) ]
481
477
fn test_install_git ( ) {
482
478
let sysroot = test_sysroot ( ) ;
483
479
debug ! ( "sysroot = %s" , sysroot. to_str( ) ) ;
@@ -526,7 +522,7 @@ fn test_install_git() {
526
522
assert ! ( !os:: path_exists( & bench) ) ;
527
523
}
528
524
529
- #[ test] # [ ignore ( cfg ( target_arch = "x86" ) ) ]
525
+ #[ test]
530
526
fn test_package_ids_must_be_relative_path_like ( ) {
531
527
use conditions:: bad_pkg_id:: cond;
532
528
@@ -567,8 +563,6 @@ fn test_package_ids_must_be_relative_path_like() {
567
563
568
564
}
569
565
570
- // FIXME: #7956: temporarily disabled
571
- #[ignore(cfg(target_arch = " x86"))]
572
566
fn test_package_version() {
573
567
let local_path = " mockgithub. com/catamorphism/test_pkg_version";
574
568
let repo = init_git_repo(&Path(local_path));
@@ -655,7 +649,6 @@ fn rustpkg_install_url_2() {
655
649
&temp_dir);
656
650
}
657
651
658
- // FIXME: #7956: temporarily disabled
659
652
#[test]
660
653
fn rustpkg_library_target() {
661
654
let foo_repo = init_git_repo(&Path(" foo"));
@@ -683,23 +676,20 @@ fn rustpkg_local_pkg() {
683
676
assert_executable_exists(&dir, " foo");
684
677
}
685
678
686
- // FIXME: #7956: temporarily disabled
687
- // Failing on dist-linux bot
688
679
#[test]
689
- #[ignore]
690
680
fn package_script_with_default_build() {
691
681
let dir = create_local_package(&PkgId::new(" fancy-lib"));
692
682
debug!(" dir = %s", dir.to_str());
693
683
let source = test_sysroot().pop().pop().pop().push(" src").push(" librustpkg").
694
684
push(" testsuite").push(" pass").push(" src").push(" fancy-lib").push(" pkg. rs");
695
685
debug!(" package_script_with_default_build: %s", source.to_str());
696
686
if !os::copy_file(&source,
697
- & dir.push(" src").push(" fancy_lib -0.1 ").push(" pkg. rs")) {
687
+ & dir.push(" src").push(" fancy-lib -0.1 ").push(" pkg. rs")) {
698
688
fail!(" Couldn ' t copy file");
699
689
}
700
690
command_line_test([~" install", ~" fancy-lib"], &dir);
701
691
assert_lib_exists(&dir, " fancy-lib", NoVersion);
702
- assert!(os::path_exists(&dir.push(" build").push(" fancy_lib ").push(" generated. rs")));
692
+ assert!(os::path_exists(&dir.push(" build").push(" fancy-lib ").push(" generated. rs")));
703
693
}
704
694
705
695
#[test]
@@ -718,7 +708,7 @@ fn rustpkg_build_no_arg() {
718
708
#[test]
719
709
fn rustpkg_install_no_arg() {
720
710
let tmp = mkdtemp(&os::tmpdir(),
721
- " rustpkg_install_no_arg").expect(" rustpkg_build_no_arg failed");
711
+ " rustpkg_install_no_arg").expect(" rustpkg_install_no_arg failed");
722
712
let package_dir = tmp.push(" src").push(" foo");
723
713
assert!(os::mkdir_recursive(&package_dir, U_RWX));
724
714
writeFile(&package_dir.push(" lib. rs"),
@@ -745,7 +735,6 @@ fn rustpkg_clean_no_arg() {
745
735
}
746
736
747
737
#[test]
748
- #[ignore (reason = " Specifying env doesn' t work -- see #8028 ")]
749
738
fn rust_path_test() {
750
739
let dir_for_path = mkdtemp(&os::tmpdir(), " more_rust").expect(" rust_path_test failed");
751
740
let dir = mk_workspace(&dir_for_path, &Path(" foo"), &NoVersion);
@@ -755,20 +744,9 @@ fn rust_path_test() {
755
744
let cwd = os::getcwd();
756
745
debug!(" cwd = %s", cwd.to_str());
757
746
// use command_line_test_with_env
758
- let mut prog = run::Process::new(" rustpkg",
759
- [~" install", ~" foo"],
760
- // This should actually extend the environment; then we can probably
761
- // un-ignore it
762
- run::ProcessOptions { env: Some(~[(~" RUST_LOG ",
763
- ~" rustpkg"),
764
- (~" RUST_PATH ",
765
- dir_for_path.to_str())]),
766
- dir: Some(&cwd),
767
- in_fd: None,
768
- out_fd: None,
769
- err_fd: None
770
- });
771
- prog.finish_with_output();
747
+ command_line_test_with_env([~" install", ~" foo"],
748
+ &cwd,
749
+ Some(~[(~" RUST_PATH ", dir_for_path.to_str())]));
772
750
assert_executable_exists(&dir_for_path, " foo");
773
751
}
774
752
0 commit comments