@@ -222,7 +222,7 @@ fn command_line_test_with_env(args: &[~str], cwd: &Path, env: Option<~[(~str, ~s
222222 assert ! ( os:: path_is_dir( & * cwd) ) ;
223223 let cwd = ( * cwd) . clone ( ) ;
224224 let mut prog = run:: Process :: new ( cmd, args, run:: ProcessOptions {
225- env : env,
225+ env : env. map ( |e| e + os :: env ( ) ) ,
226226 dir : Some ( & cwd) ,
227227 in_fd : None ,
228228 out_fd : None ,
@@ -358,7 +358,8 @@ fn lib_output_file_name(workspace: &Path, parent: &str, short_name: &str) -> Pat
358358 short_name,
359359 Build ,
360360 workspace,
361- "build" ) . expect ( "lib_output_file_name" )
361+ "build" ,
362+ & NoVersion ) . expect ( "lib_output_file_name" )
362363}
363364
364365fn output_file_name ( workspace : & Path , short_name : & str ) -> Path {
@@ -405,10 +406,7 @@ fn frob_source_file(workspace: &Path, pkgid: &PkgId) {
405406 }
406407}
407408
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]
412410fn test_make_dir_rwx ( ) {
413411 let temp = & os:: tmpdir ( ) ;
414412 let dir = temp. push ( "quux" ) ;
@@ -421,7 +419,7 @@ fn test_make_dir_rwx() {
421419 assert ! ( os:: remove_dir_recursive( & dir) ) ;
422420}
423421
424- #[ test] # [ ignore ( cfg ( target_arch = "x86" ) ) ]
422+ #[ test]
425423fn test_install_valid ( ) {
426424 use path_util:: installed_library_in_workspace;
427425
@@ -451,7 +449,7 @@ fn test_install_valid() {
451449 assert ! ( !os:: path_exists( & bench) ) ;
452450}
453451
454- #[ test] # [ ignore ( cfg ( target_arch = "x86" ) ) ]
452+ #[ test]
455453fn test_install_invalid ( ) {
456454 use conditions:: nonexistent_package:: cond;
457455 use cond1 = conditions:: missing_pkg_files:: cond;
@@ -476,8 +474,6 @@ fn test_install_invalid() {
476474
477475// Tests above should (maybe) be converted to shell out to rustpkg, too
478476
479- // FIXME: #7956: temporarily disabled
480- #[ ignore( cfg( target_arch = "x86" ) ) ]
481477fn test_install_git ( ) {
482478 let sysroot = test_sysroot ( ) ;
483479 debug ! ( "sysroot = %s" , sysroot. to_str( ) ) ;
@@ -526,7 +522,7 @@ fn test_install_git() {
526522 assert ! ( !os:: path_exists( & bench) ) ;
527523}
528524
529- #[ test] # [ ignore ( cfg ( target_arch = "x86" ) ) ]
525+ #[ test]
530526fn test_package_ids_must_be_relative_path_like ( ) {
531527 use conditions:: bad_pkg_id:: cond;
532528
@@ -567,8 +563,6 @@ fn test_package_ids_must_be_relative_path_like() {
567563
568564}
569565
570- // FIXME: #7956: temporarily disabled
571- #[ignore(cfg(target_arch = " x86"))]
572566fn test_package_version() {
573567 let local_path = " mockgithub. com/catamorphism/test_pkg_version";
574568 let repo = init_git_repo(&Path(local_path));
@@ -655,7 +649,6 @@ fn rustpkg_install_url_2() {
655649 &temp_dir);
656650}
657651
658- // FIXME: #7956: temporarily disabled
659652#[test]
660653fn rustpkg_library_target() {
661654 let foo_repo = init_git_repo(&Path(" foo"));
@@ -683,23 +676,20 @@ fn rustpkg_local_pkg() {
683676 assert_executable_exists(&dir, " foo");
684677}
685678
686- // FIXME: #7956: temporarily disabled
687- // Failing on dist-linux bot
688679#[test]
689- #[ignore]
690680fn package_script_with_default_build() {
691681 let dir = create_local_package(&PkgId::new(" fancy-lib"));
692682 debug!(" dir = %s", dir.to_str());
693683 let source = test_sysroot().pop().pop().pop().push(" src").push(" librustpkg").
694684 push(" testsuite").push(" pass").push(" src").push(" fancy-lib").push(" pkg. rs");
695685 debug!(" package_script_with_default_build: %s", source.to_str());
696686 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")) {
698688 fail!(" Couldn ' t copy file");
699689 }
700690 command_line_test([~" install", ~" fancy-lib"], &dir);
701691 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")));
703693}
704694
705695#[test]
@@ -718,7 +708,7 @@ fn rustpkg_build_no_arg() {
718708#[test]
719709fn rustpkg_install_no_arg() {
720710 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");
722712 let package_dir = tmp.push(" src").push(" foo");
723713 assert!(os::mkdir_recursive(&package_dir, U_RWX));
724714 writeFile(&package_dir.push(" lib. rs"),
@@ -745,7 +735,6 @@ fn rustpkg_clean_no_arg() {
745735}
746736
747737#[test]
748- #[ignore (reason = " Specifying env doesn' t work -- see #8028 ")]
749738fn rust_path_test() {
750739 let dir_for_path = mkdtemp(&os::tmpdir(), " more_rust").expect(" rust_path_test failed");
751740 let dir = mk_workspace(&dir_for_path, &Path(" foo"), &NoVersion);
@@ -755,20 +744,9 @@ fn rust_path_test() {
755744 let cwd = os::getcwd();
756745 debug!(" cwd = %s", cwd.to_str());
757746 // 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())]));
772750 assert_executable_exists(&dir_for_path, " foo");
773751}
774752
0 commit comments