1
1

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.
Этот коммит содержится в:
Jeff Squyres 2010-07-28 14:20:58 +00:00
родитель 9661cc83c4
Коммит f5c3c2c0ac
14 изменённых файлов: 60 добавлений и 49 удалений

Просмотреть файл

@ -9,6 +9,7 @@
* University of Stuttgart. All rights reserved.
* Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved.
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -17,7 +18,7 @@
*/
#define OMPI_BUILDING 0
#include "ompi_config.h"
#include "opal_config.h"
#include "opal/sys/atomic.h"

Просмотреть файл

@ -9,6 +9,7 @@
* University of Stuttgart. All rights reserved.
* Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved.
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -17,7 +18,7 @@
*/
#define OMPI_BUILDING 0
#include "ompi_config.h"
#include "opal_config.h"
#undef NDEBUG
#define DEBUG

Просмотреть файл

@ -9,6 +9,7 @@
* University of Stuttgart. All rights reserved.
* Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved.
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -17,7 +18,7 @@
*/
#define OMPI_BUILDING 0
#include "ompi_config.h"
#include "opal_config.h"
#ifdef HAVE_PTHREAD_H
#include <pthread.h>

Просмотреть файл

@ -9,6 +9,7 @@
* University of Stuttgart. All rights reserved.
* Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved.
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -17,7 +18,7 @@
*/
#define OMPI_BUILDING 0
#include "ompi_config.h"
#include "opal_config.h"
#ifdef HAVE_PTHREAD_H
#include <pthread.h>

Просмотреть файл

@ -9,7 +9,7 @@
* University of Stuttgart. All rights reserved.
* Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved.
* Copyright (c) 2006 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2006-2010 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -17,7 +17,7 @@
* $HEADER$
*/
#include "ompi_config.h"
#include "opal_config.h"
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif

Просмотреть файл

@ -9,7 +9,7 @@
* University of Stuttgart. All rights reserved.
* Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved.
* Copyright (c) 2008-2009 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2008-2010 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -17,7 +17,7 @@
* $HEADER$
*/
#include "ompi_config.h"
#include "opal_config.h"
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif

Просмотреть файл

@ -9,7 +9,7 @@
* University of Stuttgart. All rights reserved.
* Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved.
* Copyright (c) 2008-2009 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2008-2010 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -17,7 +17,7 @@
* $HEADER$
*/
#include "ompi_config.h"
#include "opal_config.h"
#include <assert.h>
#include "support.h"

Просмотреть файл

@ -10,6 +10,7 @@
* University of Stuttgart. All rights reserved.
* Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved.
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -22,7 +23,7 @@
* class
*/
#include "ompi_config.h"
#include "opal_config.h"
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>

Просмотреть файл

@ -9,7 +9,7 @@
* University of Stuttgart. All rights reserved.
* Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved.
* Copyright (c) 2008-2009 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2008-2010 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -21,7 +21,7 @@
* This test is intended to test the opal_value_array class
*/
#include "ompi_config.h"
#include "opal_config.h"
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>

Просмотреть файл

@ -9,7 +9,7 @@
* University of Stuttgart. All rights reserved.
* Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved.
* Copyright (c) 2009 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2009-2010 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -17,12 +17,12 @@
* $HEADER$
*/
#include "ompi_config.h"
#include "opal_config.h"
#include <string.h>
#include <stdio.h>
#include "ompi/constants.h"
#include "opal/constants.h"
#include "opal/mca/mca.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 ||
NULL == mca) {
return OMPI_ERR_BAD_PARAM;
return OPAL_ERR_BAD_PARAM;
}
comp_handle->tch_handle = 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;
if (NULL == (*mca)->mca_open_component ||
(NULL != (*mca)->mca_open_component &&
OMPI_SUCCESS == (*mca)->mca_open_component())) {
return OMPI_SUCCESS;
OPAL_SUCCESS == (*mca)->mca_open_component())) {
return OPAL_SUCCESS;
}
/* 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 */
return OMPI_ERROR;
return OPAL_ERROR;
}
@ -100,12 +100,12 @@ int test_component_find_symbol(const char *name,
} value;
if (NULL == handle || NULL == sym) {
return OMPI_ERR_BAD_PARAM;
return OPAL_ERR_BAD_PARAM;
}
value.vvalue = lt_dlsym(handle->tch_handle, name);
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;
}
return OMPI_SUCCESS;
return OPAL_SUCCESS;
}

Просмотреть файл

@ -9,6 +9,7 @@
* University of Stuttgart. All rights reserved.
* Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved.
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -16,7 +17,7 @@
* $HEADER$
*/
#include "ompi_config.h"
#include "opal_config.h"
#include <stdlib.h>
#include <string.h>
#include <assert.h>
@ -28,10 +29,10 @@
* A testing support library to provide uniform reporting output
*/
static int ompi_n_tests;
static int ompi_n_success;
static int ompi_n_failures;
static char *ompi_description;
static int opal_n_tests;
static int opal_n_success;
static int opal_n_failures;
static char *opal_description;
void test_init(const char *a)
{
@ -40,15 +41,15 @@ void test_init(const char *a)
/* save the descriptive string */
len = strlen(a);
ompi_description = (char *) malloc(len + 1);
assert(ompi_description);
opal_description = (char *) malloc(len + 1);
assert(opal_description);
strcpy(ompi_description, a);
strcpy(opal_description, a);
/* initialize counters */
ompi_n_tests = 0;
ompi_n_success = 0;
ompi_n_failures = 0;
opal_n_tests = 0;
opal_n_success = 0;
opal_n_failures = 0;
return;
@ -57,18 +58,18 @@ void test_init(const char *a)
void test_success(void)
{
ompi_n_tests++;
ompi_n_success++;
opal_n_tests++;
opal_n_success++;
}
void test_failure(const char *a)
{
ompi_n_tests++;
ompi_n_failures++;
opal_n_tests++;
opal_n_failures++;
fprintf(stderr, " Failure : ");
fprintf(stderr, a);
fprintf(stderr, "%s", a);
fprintf(stderr, "\n");
fflush(stderr);
}
@ -123,20 +124,20 @@ int test_finalize(void)
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",
ompi_description, ompi_n_tests);
opal_description, opal_n_tests);
fflush(stderr);
} else {
fprintf(stderr,
"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);
return_value = 1;
}
if (NULL != ompi_description)
free(ompi_description);
if (NULL != opal_description)
free(opal_description);
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 */
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.
* Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved.
* Copyright (c) 2008 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2008-2010 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -17,7 +17,7 @@
* $HEADER$
*/
#include "ompi_config.h"
#include "opal_config.h"
#include <stdio.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>

Просмотреть файл

@ -19,7 +19,7 @@
* $HEADER$
*/
#include "ompi_config.h"
#include "opal_config.h"
#include <stdio.h>
#include <string.h>