~ubuntu-branches/ubuntu/vivid/mpich/vivid-proposed

« back to all changes in this revision

Viewing changes to maint/checkbuilds

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2014-04-01 20:24:20 UTC
  • mfrom: (5.2.4 sid)
  • Revision ID: package-import@ubuntu.com-20140401202420-t5ey1ia2klt5dkq3
Tags: 3.1-4
* [c3e3398] Disable test_primitives, which is unreliable on some platforms.
            (Closes: #743047)
* [265a699] Add minimal autotest.

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
%chosenEnable = ();
81
81
@with_array = (
82
82
               'logging;none;rlog',
83
 
               'pmi;simple;smpd',    #; uni no longer supported
 
83
               'pmi;simple',    #; uni no longer supported
84
84
               'pm;gforker;mpd', #;remshell
85
85
               'namepublisher;no;file;mpd', #;ldap:ldapserver',
86
86
               'device;ch3;ch3:sock',
410
410
        # print "rc = $rc\n";
411
411
        if ($rc == 0) {
412
412
            print $OUTFD $MakeStart;
413
 
            # Remove mpd and smpd just in case (see below)
 
413
            # Remove mpd just in case (see below)
414
414
            unlink "bin/mpd";
415
 
            unlink "bin/smpd";
416
415
            $rc = &RunProgram( "$makepgm $parallelBuild" );
417
416
            print $OUTFD $MakeEnd;
418
417
            $make_status = $rc;
445
444
                        $StartDemon = "RunMPD";
446
445
                        $StopDemon  = "StopMPD";
447
446
                    }
448
 
                    elsif (-x "$instdir/bin/smpd") {
449
 
                        $hasDemon   = 1;
450
 
                        $StartDemon = "RunSMPD";
451
 
                        $StopDemon  = "StopSMPD";
452
 
                        # FIXME: Remaining problem: smpd needs to be told what
453
 
                        # port to use on the mpiexec line
454
 
                    }
455
447
                    # Try the install check target
456
448
                    print $OUTFD $MakeInstcheckStart;
457
449
                    $installcheck_status = &RunProgram( "$makepgm installcheck" );
815
807
 
816
808
    $rc = chdir $testmpio_test_dir;
817
809
    if (!$rc) {
818
 
        #print STDERR "Cannot change to $testmpio_test_dir\n";
 
810
        print $OUTFD "Cannot change to $testmpio_test_dir\n";
819
811
        return;
820
812
    }
821
813
 
822
 
    # Switch to using the checked-in version of the Intel test
823
 
    $config[$nargs++] = "$projects_dir/testmpio/configure";
 
814
    # Switch to using the checked-in version of the Testmpio test
 
815
    if (-x "$projects_dir/testmpio/configure") {
 
816
        $config[$nargs++] = "$projects_dir/testmpio/configure";
 
817
    }
 
818
    elsif (-x "$projects_dir/Testmpio/configure") {
 
819
        $config[$nargs++] = "$projects_dir/Testmpio/configure";
 
820
    }
 
821
    else {
 
822
        print $OUTFD "Cannot find testmpio source directory!";
 
823
        return;
 
824
    }
824
825
    $config[$nargs++] = "--enable-xml";
825
826
    $config[$nargs++] = "CC=$instdir/bin/mpicc";
826
827
    $config[$nargs++] = "MPIEXEC=$instdir/bin/mpiexec";
1108
1109
        }
1109
1110
    }
1110
1111
}
1111
 
# ---------------------------------------------------------------------------
1112
 
#
1113
 
# We need a variation of this that will start SMPDs on mulitple hosts.
1114
 
1115
 
sub RunSMPD {
1116
 
    system "$instdir/bin/smpd -port 10101 -s";
1117
 
    # FIXME: Placeholder for correct environment variable for providing
1118
 
    # mpiexec with the smpd port that should be used.
1119
 
    $ENV{"MPIEXEC_SMPD_PORT"} = 10101;
1120
 
    # print errors instead of prompting for input
1121
 
    $ENV{"MPIEXEC_NOPROMPT"} = 1;
1122
 
    # use only the local host
1123
 
    $ENV{"SMPD_OPTION_NO_DYNAMIC_HOSTS"} = 1;
1124
 
    $rc = $? >> 8;
1125
 
    if ($rc != 0) {
1126
 
        print $OUTFD "Error running $instdir/bin/smpd -port 10101 -s\n";
1127
 
    }
1128
 
    else {
1129
 
        print $OUTFD "Started mpd in demon mode\n";
1130
 
    }
1131
 
    sleep 1;
1132
 
    return;
1133
 
}
1134
 
sub StopSMPD {
1135
 
    `$instdir/bin/smpd -port 10101 -shutdown`;
1136
 
}
1137
 
# ---------------------------------------------------------------------------
1138
1112
#
1139
1113
# Change output style
1140
1114
sub XMLStyle {