From fc550708a74ef01c1101b185bebd4ab3e0630c54 Mon Sep 17 00:00:00 2001 From: grev Date: Tue, 25 Aug 2009 16:55:06 +0000 Subject: [PATCH] b=18956 i=Jian.Yu add write_disjoint to acc-sm --- lustre/tests/metadata-updates.sh | 4 ++-- lustre/tests/mpi/Makefile.am | 4 +++- lustre/tests/mpi/write_disjoint.c | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lustre/tests/metadata-updates.sh b/lustre/tests/metadata-updates.sh index 68f8077..e8de813 100755 --- a/lustre/tests/metadata-updates.sh +++ b/lustre/tests/metadata-updates.sh @@ -276,12 +276,12 @@ do_partial_delete $(($NUM_FILES / 2)) || exit ${PIPESTATUS[0]} check_dir_contents $(($NUM_FILES / 2 + 1)) || STATUS=1 # "write_disjoint" test -echo "Part 5. write_disjoint test: see lustre/tests/write_disjoint.c for details" +echo "Part 5. write_disjoint test: see lustre/tests/mpi/write_disjoint.c for details" if [ -f "$WRITE_DISJOINT" ]; then set $TRACE MACHINEFILE=${MACHINEFILE:-$TMP/$(basename $0 .sh).machines} generate_machine_file $NODES_TO_USE $MACHINEFILE - mpi_run -np $(get_node_count ${NODES_TO_USE//,/ }) $MACHINEFILE \ + mpi_run -np $(get_node_count ${NODES_TO_USE//,/ }) -machinefile $MACHINEFILE \ $WRITE_DISJOINT -f $WRITE_DISJOINT_FILE -n $NUMLOOPS || STATUS=1 else skip "$0 : write_disjoint not found " diff --git a/lustre/tests/mpi/Makefile.am b/lustre/tests/mpi/Makefile.am index 805cdd3..bf0c1cb 100644 --- a/lustre/tests/mpi/Makefile.am +++ b/lustre/tests/mpi/Makefile.am @@ -4,11 +4,13 @@ AM_CFLAGS = $(LLCFLAGS) CC = @MPICC_WRAPPER@ -noinst_PROGRAMS = parallel_grouplock write_append_truncate createmany_mpi mdsrate +noinst_PROGRAMS = parallel_grouplock write_append_truncate createmany_mpi +noinst_PROGRAMS += mdsrate write_disjoint testdir = $(libdir)/lustre/tests test_SCRIPTS = $(noinst_PROGRAMS) write_append_truncate_SOURCES=write_append_truncate.c +write_disjoint_SOURCES=write_disjoint.c createmany_mpi_SOURCES=createmany-mpi.c parallel_grouplock_SOURCES=parallel_grouplock.c lp_utils.c lp_utils.h mdsrate_SOURCES=mdsrate.c diff --git a/lustre/tests/mpi/write_disjoint.c b/lustre/tests/mpi/write_disjoint.c index e02287d..9b28d60 100644 --- a/lustre/tests/mpi/write_disjoint.c +++ b/lustre/tests/mpi/write_disjoint.c @@ -193,7 +193,7 @@ int main (int argc, char *argv[]) { for (i = 0; i < noProcessors; i++) { char command[4096]; - int j; + int j, rc; if (!memcmp(read_buf + (i * CHUNK_SIZE(n)), chunk_buf[i], CHUNK_SIZE(n))) continue; @@ -218,7 +218,7 @@ int main (int argc, char *argv[]) { } sprintf(command, "od -Ad -a %s", filename); - system(command); + rc = system(command); rprintf(0, n, "data check error - exiting\n"); } } -- 1.8.3.1