host_list = xbt_dynar_new(sizeof(char*), NULL);
- for(i=0; i<task->workstation_nb; i++) {
- const char *hostname = sg_host_get_name(task->workstation_list[i]);
+ for(i=0; i<task->host_count; i++) {
+ const char *hostname = sg_host_get_name(task->host_list[i]);
xbt_dynar_push(host_list, &hostname);
}
/* Global variables */
typedef struct SD_global {
- sg_host_t *host_list; /* array of workstations, created only if
- necessary in sg_host_list() */
- SD_link_t *link_list; /* array of links */
-
xbt_mallocator_t task_mallocator; /* to not remalloc new tasks */
int watch_point_reached; /* has a task just reached a watch point? */
}
my ($count) = 0;
+ my ($close) = 0;
open TESH_FILE, $tesh_file or die "Unable to open tesh file: \"$tesh_file\". $!\n";
my ($input) = "";
my ($l);
}
if ($factories) {
foreach my $factory (split(';', $factories)) {
+ $close=0;
+ if( $factory =~ /^raw/) {
+ print "${indent}if(HAVE_RAWCTX)\n";
+ $close=1;
+ }elsif( $factory =~ /^boost/) {
+ print "${indent}if(HAVE_BOOST_CONTEXT)\n";
+ $close=1;
+ }elsif( $factory =~ /^ucontext/) {
+ print "${indent}if(CONTEXT_UCONTEXT)\n";
+ $close=1;
+ }
print "${indent}ADD_TEST(NAME memcheck-$name_test-$factory-$count\n";
print "${indent} WORKING_DIRECTORY $path\/\n";
print "${indent} COMMAND $command --cfg=contexts/factory:$factory)\n";
print "${indent}set_tests_properties(memcheck-$name_test-$factory-$count\n";
print "${indent} PROPERTIES DEPENDS memcheck-$name_test-$factory-" . ($count - 1) . ")\n";
}
+ if ($close > 0){
+ print "${indent}endif()\n";
+ }
}
} else {
print "${indent}ADD_TEST(NAME memcheck-$name_test-$count\n";
-Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=OFF -Denable_model-checking=OFF \
-Denable_memcheck_xml=ON $WORKSPACE
-ctest -D ExperimentalBuild -V || true
+ctest -D ExperimentalBuild -V
ctest -D ExperimentalMemCheck || true
cd $WORKSPACE/build
-Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=ON -Denable_model-checking=ON \
-Denable_memcheck=OFF -Denable_memcheck_xml=OFF -Denable_smpi_ISP_testsuite=ON -Denable_coverage=ON $WORKSPACE
-ctest -D ExperimentalBuild -V || true
+ctest -D ExperimentalBuild -V
ctest -D ExperimentalTest || true
ctest -D ExperimentalCoverage || true