s/ompi/opal/gi in all of these files because they're really OPAL
tests, not OMPI tests. This allows us to "make distcheck" with "./autogen.sh -no-ompi" trees (i.e., these tests will now still work even if the OMPI layer is not present -- because they're OPAL tests and we should treat them that way). This commit was SVN r23524.
Этот коммит содержится в:
родитель
9661cc83c4
Коммит
f5c3c2c0ac
@ -9,6 +9,7 @@
|
|||||||
* University of Stuttgart. All rights reserved.
|
* University of Stuttgart. All rights reserved.
|
||||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -17,7 +18,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define OMPI_BUILDING 0
|
#define OMPI_BUILDING 0
|
||||||
#include "ompi_config.h"
|
#include "opal_config.h"
|
||||||
|
|
||||||
#include "opal/sys/atomic.h"
|
#include "opal/sys/atomic.h"
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
* University of Stuttgart. All rights reserved.
|
* University of Stuttgart. All rights reserved.
|
||||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -17,7 +18,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define OMPI_BUILDING 0
|
#define OMPI_BUILDING 0
|
||||||
#include "ompi_config.h"
|
#include "opal_config.h"
|
||||||
|
|
||||||
#undef NDEBUG
|
#undef NDEBUG
|
||||||
#define DEBUG
|
#define DEBUG
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
* University of Stuttgart. All rights reserved.
|
* University of Stuttgart. All rights reserved.
|
||||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -17,7 +18,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define OMPI_BUILDING 0
|
#define OMPI_BUILDING 0
|
||||||
#include "ompi_config.h"
|
#include "opal_config.h"
|
||||||
|
|
||||||
#ifdef HAVE_PTHREAD_H
|
#ifdef HAVE_PTHREAD_H
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
* University of Stuttgart. All rights reserved.
|
* University of Stuttgart. All rights reserved.
|
||||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -17,7 +18,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define OMPI_BUILDING 0
|
#define OMPI_BUILDING 0
|
||||||
#include "ompi_config.h"
|
#include "opal_config.h"
|
||||||
|
|
||||||
#ifdef HAVE_PTHREAD_H
|
#ifdef HAVE_PTHREAD_H
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* University of Stuttgart. All rights reserved.
|
* University of Stuttgart. All rights reserved.
|
||||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Copyright (c) 2006 Cisco Systems, Inc. All rights reserved.
|
* Copyright (c) 2006-2010 Cisco Systems, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -17,7 +17,7 @@
|
|||||||
* $HEADER$
|
* $HEADER$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ompi_config.h"
|
#include "opal_config.h"
|
||||||
#ifdef HAVE_STDINT_H
|
#ifdef HAVE_STDINT_H
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* University of Stuttgart. All rights reserved.
|
* University of Stuttgart. All rights reserved.
|
||||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Copyright (c) 2008-2009 Cisco Systems, Inc. All rights reserved.
|
* Copyright (c) 2008-2010 Cisco Systems, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -17,7 +17,7 @@
|
|||||||
* $HEADER$
|
* $HEADER$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ompi_config.h"
|
#include "opal_config.h"
|
||||||
#ifdef HAVE_STDINT_H
|
#ifdef HAVE_STDINT_H
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* University of Stuttgart. All rights reserved.
|
* University of Stuttgart. All rights reserved.
|
||||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Copyright (c) 2008-2009 Cisco Systems, Inc. All rights reserved.
|
* Copyright (c) 2008-2010 Cisco Systems, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -17,7 +17,7 @@
|
|||||||
* $HEADER$
|
* $HEADER$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ompi_config.h"
|
#include "opal_config.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#include "support.h"
|
#include "support.h"
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
* University of Stuttgart. All rights reserved.
|
* University of Stuttgart. All rights reserved.
|
||||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -22,7 +23,7 @@
|
|||||||
* class
|
* class
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ompi_config.h"
|
#include "opal_config.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* University of Stuttgart. All rights reserved.
|
* University of Stuttgart. All rights reserved.
|
||||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Copyright (c) 2008-2009 Cisco Systems, Inc. All rights reserved.
|
* Copyright (c) 2008-2010 Cisco Systems, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -21,7 +21,7 @@
|
|||||||
* This test is intended to test the opal_value_array class
|
* This test is intended to test the opal_value_array class
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ompi_config.h"
|
#include "opal_config.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* University of Stuttgart. All rights reserved.
|
* University of Stuttgart. All rights reserved.
|
||||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Copyright (c) 2009 Cisco Systems, Inc. All rights reserved.
|
* Copyright (c) 2009-2010 Cisco Systems, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -17,12 +17,12 @@
|
|||||||
* $HEADER$
|
* $HEADER$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ompi_config.h"
|
#include "opal_config.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "ompi/constants.h"
|
#include "opal/constants.h"
|
||||||
#include "opal/mca/mca.h"
|
#include "opal/mca/mca.h"
|
||||||
#include "opal/libltdl/ltdl.h"
|
#include "opal/libltdl/ltdl.h"
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ int test_component_open(const char *framework, const char *component,
|
|||||||
|
|
||||||
if (NULL == framework || NULL == component || NULL == comp_handle ||
|
if (NULL == framework || NULL == component || NULL == comp_handle ||
|
||||||
NULL == mca) {
|
NULL == mca) {
|
||||||
return OMPI_ERR_BAD_PARAM;
|
return OPAL_ERR_BAD_PARAM;
|
||||||
}
|
}
|
||||||
comp_handle->tch_handle = NULL;
|
comp_handle->tch_handle = NULL;
|
||||||
sym.tcs_variable = NULL;
|
sym.tcs_variable = NULL;
|
||||||
@ -70,8 +70,8 @@ int test_component_open(const char *framework, const char *component,
|
|||||||
*mca = (mca_base_component_t*) sym.tcs_variable;
|
*mca = (mca_base_component_t*) sym.tcs_variable;
|
||||||
if (NULL == (*mca)->mca_open_component ||
|
if (NULL == (*mca)->mca_open_component ||
|
||||||
(NULL != (*mca)->mca_open_component &&
|
(NULL != (*mca)->mca_open_component &&
|
||||||
OMPI_SUCCESS == (*mca)->mca_open_component())) {
|
OPAL_SUCCESS == (*mca)->mca_open_component())) {
|
||||||
return OMPI_SUCCESS;
|
return OPAL_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Badness occurred, so dlclose the component */
|
/* Badness occurred, so dlclose the component */
|
||||||
@ -81,7 +81,7 @@ int test_component_open(const char *framework, const char *component,
|
|||||||
|
|
||||||
/* Didn't find it / unable to open it */
|
/* Didn't find it / unable to open it */
|
||||||
|
|
||||||
return OMPI_ERROR;
|
return OPAL_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -100,12 +100,12 @@ int test_component_find_symbol(const char *name,
|
|||||||
} value;
|
} value;
|
||||||
|
|
||||||
if (NULL == handle || NULL == sym) {
|
if (NULL == handle || NULL == sym) {
|
||||||
return OMPI_ERR_BAD_PARAM;
|
return OPAL_ERR_BAD_PARAM;
|
||||||
}
|
}
|
||||||
|
|
||||||
value.vvalue = lt_dlsym(handle->tch_handle, name);
|
value.vvalue = lt_dlsym(handle->tch_handle, name);
|
||||||
sym->tcs_function = value.fvalue;
|
sym->tcs_function = value.fvalue;
|
||||||
return OMPI_SUCCESS;
|
return OPAL_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -121,7 +121,7 @@ int test_component_close(test_component_handle_t *handle)
|
|||||||
handle->tch_handle = NULL;
|
handle->tch_handle = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return OMPI_SUCCESS;
|
return OPAL_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
* University of Stuttgart. All rights reserved.
|
* University of Stuttgart. All rights reserved.
|
||||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -16,7 +17,7 @@
|
|||||||
* $HEADER$
|
* $HEADER$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ompi_config.h"
|
#include "opal_config.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
@ -28,10 +29,10 @@
|
|||||||
* A testing support library to provide uniform reporting output
|
* A testing support library to provide uniform reporting output
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static int ompi_n_tests;
|
static int opal_n_tests;
|
||||||
static int ompi_n_success;
|
static int opal_n_success;
|
||||||
static int ompi_n_failures;
|
static int opal_n_failures;
|
||||||
static char *ompi_description;
|
static char *opal_description;
|
||||||
|
|
||||||
void test_init(const char *a)
|
void test_init(const char *a)
|
||||||
{
|
{
|
||||||
@ -40,15 +41,15 @@ void test_init(const char *a)
|
|||||||
|
|
||||||
/* save the descriptive string */
|
/* save the descriptive string */
|
||||||
len = strlen(a);
|
len = strlen(a);
|
||||||
ompi_description = (char *) malloc(len + 1);
|
opal_description = (char *) malloc(len + 1);
|
||||||
assert(ompi_description);
|
assert(opal_description);
|
||||||
|
|
||||||
strcpy(ompi_description, a);
|
strcpy(opal_description, a);
|
||||||
|
|
||||||
/* initialize counters */
|
/* initialize counters */
|
||||||
ompi_n_tests = 0;
|
opal_n_tests = 0;
|
||||||
ompi_n_success = 0;
|
opal_n_success = 0;
|
||||||
ompi_n_failures = 0;
|
opal_n_failures = 0;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -57,18 +58,18 @@ void test_init(const char *a)
|
|||||||
|
|
||||||
void test_success(void)
|
void test_success(void)
|
||||||
{
|
{
|
||||||
ompi_n_tests++;
|
opal_n_tests++;
|
||||||
ompi_n_success++;
|
opal_n_success++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void test_failure(const char *a)
|
void test_failure(const char *a)
|
||||||
{
|
{
|
||||||
ompi_n_tests++;
|
opal_n_tests++;
|
||||||
ompi_n_failures++;
|
opal_n_failures++;
|
||||||
|
|
||||||
fprintf(stderr, " Failure : ");
|
fprintf(stderr, " Failure : ");
|
||||||
fprintf(stderr, a);
|
fprintf(stderr, "%s", a);
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
}
|
}
|
||||||
@ -123,20 +124,20 @@ int test_finalize(void)
|
|||||||
|
|
||||||
return_value = 0;
|
return_value = 0;
|
||||||
|
|
||||||
if (ompi_n_tests == ompi_n_success) {
|
if (opal_n_tests == opal_n_success) {
|
||||||
fprintf(stderr, "SUPPORT: OMPI Test Passed: %s: (%d tests)\n",
|
fprintf(stderr, "SUPPORT: OMPI Test Passed: %s: (%d tests)\n",
|
||||||
ompi_description, ompi_n_tests);
|
opal_description, opal_n_tests);
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"SUPPORT: OMPI Test failed: %s (%d of %d failed)\n",
|
"SUPPORT: OMPI Test failed: %s (%d of %d failed)\n",
|
||||||
ompi_description, ompi_n_failures, ompi_n_tests);
|
opal_description, opal_n_failures, opal_n_tests);
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
return_value = 1;
|
return_value = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (NULL != ompi_description)
|
if (NULL != opal_description)
|
||||||
free(ompi_description);
|
free(opal_description);
|
||||||
|
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
@ -145,7 +146,7 @@ int test_finalize(void)
|
|||||||
/* note this is for additional output that does NOT go to STDERR but STDOUT */
|
/* note this is for additional output that does NOT go to STDERR but STDOUT */
|
||||||
void test_comment (const char* userstr)
|
void test_comment (const char* userstr)
|
||||||
{
|
{
|
||||||
fprintf(stdout, "%s:%s\n", ompi_description, userstr);
|
fprintf(stdout, "%s:%s\n", opal_description, userstr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* University of Stuttgart. All rights reserved.
|
* University of Stuttgart. All rights reserved.
|
||||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Copyright (c) 2008 Cisco Systems, Inc. All rights reserved.
|
* Copyright (c) 2008-2010 Cisco Systems, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -17,7 +17,7 @@
|
|||||||
* $HEADER$
|
* $HEADER$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ompi_config.h"
|
#include "opal_config.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
#include "ompi_config.h"
|
/*
|
||||||
|
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
|
||||||
|
* $COPYRIGHT$
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "opal_config.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* $HEADER$
|
* $HEADER$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ompi_config.h"
|
#include "opal_config.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user