[PVFS2-CVS] commit by bradles in pvfs2/test/correctness/pts: test-contiguous-datatype.c test-encode-basic.c test-explicit-offset.c test-mix.c test-noncontig-pattern.c test-request-contiguous.c test-request-indexed.c test-request-tiled.c test-romio-noncontig-pattern2.c test-vector-offset.c test-vector-start-final-offset.c test-write-eof.c

CVS commit program cvs at parl.clemson.edu
Mon May 17 12:58:12 EDT 2004


Update of /projects/cvsroot/pvfs2/test/correctness/pts
In directory styx.parl.clemson.edu:/tmp/cvs-serv15405/correctness/pts

Modified Files:
	test-contiguous-datatype.c test-encode-basic.c 
	test-explicit-offset.c test-mix.c test-noncontig-pattern.c 
	test-request-contiguous.c test-request-indexed.c 
	test-request-tiled.c test-romio-noncontig-pattern2.c 
	test-vector-offset.c test-vector-start-final-offset.c 
	test-write-eof.c 
Log Message:
Updates for distribution renaming, and added test case for creation with
user specified distributions.


Index: test-contiguous-datatype.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-contiguous-datatype.c,v
diff -p -u -r1.4 -r1.5
--- test-contiguous-datatype.c	13 May 2004 16:21:43 -0000	1.4
+++ test-contiguous-datatype.c	17 May 2004 15:58:12 -0000	1.5
@@ -17,8 +17,7 @@
 #include<assert.h>
 
 #include <pint-request.h>
-#include <pvfs-distribution.h>
-#include <simple-stripe.h>
+#include <pint-distribution.h>
 #include <pvfs2-debug.h>
 #include "client.h"
 #include "mpi.h"
@@ -60,9 +59,9 @@ static int test_cont_datatype(void){
    rf1.server_nr = 0;
    rf1.server_ct = 4;
    rf1.fsize = 0;
-   rf1.dist = PVFS_dist_create("simple_stripe");
+   rf1.dist = PINT_dist_create("simple_stripe");
    rf1.extend_flag = 1;
-   PINT_Dist_lookup(rf1.dist);
+   PINT_dist_lookup(rf1.dist);
                                                                                 
    /* set up result struct */
    seg1.offset_array = (int64_t *)malloc(SEGMAX * sizeof(int64_t));

Index: test-encode-basic.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-encode-basic.c,v
diff -p -u -r1.2 -r1.3
--- test-encode-basic.c	18 Mar 2004 20:59:03 -0000	1.2
+++ test-encode-basic.c	17 May 2004 15:58:12 -0000	1.3
@@ -17,8 +17,7 @@
 #include<assert.h>
 
 #include <pint-request.h>
-#include <pvfs-distribution.h>
-#include <simple-stripe.h>
+#include <pint-distribution.h>
 #include "client.h"
 #include "mpi.h"
 #include "pts.h"

Index: test-explicit-offset.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-explicit-offset.c,v
diff -p -u -r1.5 -r1.6
--- test-explicit-offset.c	13 May 2004 16:21:43 -0000	1.5
+++ test-explicit-offset.c	17 May 2004 15:58:12 -0000	1.6
@@ -17,8 +17,7 @@
 #include<assert.h>
 
 #include <pint-request.h>
-#include <pvfs-distribution.h>
-#include <simple-stripe.h>
+#include <pint-distribution.h>
 #include <pvfs2-debug.h>
 #include "client.h"
 #include "mpi.h"
@@ -60,9 +59,9 @@ static int test_exp_offset(void){
    rf1.server_nr = 0;
    rf1.server_ct = 4;
    rf1.fsize = 6000;
-   rf1.dist = PVFS_dist_create("simple_stripe");
+   rf1.dist = PINT_dist_create("simple_stripe");
    rf1.extend_flag = 0;
-   PINT_Dist_lookup(rf1.dist);
+   PINT_dist_lookup(rf1.dist);
                                                                                 
    /* set up result struct */
    seg1.offset_array = (int64_t *)malloc(SEGMAX * sizeof(int64_t));

Index: test-mix.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-mix.c,v
diff -p -u -r1.5 -r1.6
--- test-mix.c	13 May 2004 16:21:43 -0000	1.5
+++ test-mix.c	17 May 2004 15:58:12 -0000	1.6
@@ -17,8 +17,7 @@
 #include<assert.h>
 
 #include <pint-request.h>
-#include <pvfs-distribution.h>
-#include <simple-stripe.h>
+#include <pint-distribution.h>
 #include <pvfs2-debug.h>
 #include "client.h"
 #include "mpi.h"
@@ -74,9 +73,9 @@ static int test_mx(void){
    rf1.server_nr = 0;
    rf1.server_ct = 2;
    rf1.fsize = 6000;
-   rf1.dist = PVFS_dist_create("simple_stripe");
+   rf1.dist = PINT_dist_create("simple_stripe");
    rf1.extend_flag = 0;
-   PINT_Dist_lookup(rf1.dist);
+   PINT_dist_lookup(rf1.dist);
                                                                                                                                                        
    /* set up result struct */
    seg1.offset_array = (int64_t *)malloc(SEGMAX * sizeof(int64_t));

Index: test-noncontig-pattern.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-noncontig-pattern.c,v
diff -p -u -r1.4 -r1.5
--- test-noncontig-pattern.c	13 May 2004 16:21:43 -0000	1.4
+++ test-noncontig-pattern.c	17 May 2004 15:58:12 -0000	1.5
@@ -19,8 +19,7 @@
 #include<assert.h>
 
 #include <pint-request.h>
-#include <pvfs-distribution.h>
-#include <simple-stripe.h>
+#include <pint-distribution.h>
 #include "client.h"
 #include "mpi.h"
 #include "pts.h"
@@ -88,9 +87,9 @@ static int test_noncontig(void){
    rf1.server_nr = 0;
    rf1.server_ct = 1;
    rf1.fsize = 0;
-   rf1.dist = PVFS_dist_create("simple_stripe");
+   rf1.dist = PINT_dist_create("simple_stripe");
    rf1.extend_flag = 1;
-   PINT_Dist_lookup(rf1.dist);
+   PINT_dist_lookup(rf1.dist);
                                                                                
    /* set up result struct */
    seg1.offset_array = (int64_t *)malloc(SEGMAX * sizeof(int64_t));

Index: test-request-contiguous.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-request-contiguous.c,v
diff -p -u -r1.6 -r1.7
--- test-request-contiguous.c	13 May 2004 16:21:43 -0000	1.6
+++ test-request-contiguous.c	17 May 2004 15:58:12 -0000	1.7
@@ -19,10 +19,9 @@
 #include <stdlib.h>
 
 #include <pint-request.h>
-#include <pvfs-distribution.h>
+#include <pint-distribution.h>
 #include <pvfs2-types.h>
 #include <pvfs2-request.h>
-#include <simple-stripe.h>
 #include "client.h"
 #include "mpi.h"
 #include "pts.h"
@@ -114,30 +113,30 @@ static int test_request_cont(void){
     rf1.server_nr = 0;
     rf1.server_ct = 4;
     rf1.fsize = 0;
-    rf1.dist = PVFS_dist_create("simple_stripe");
+    rf1.dist = PINT_dist_create("simple_stripe");
     rf1.extend_flag = 1;
-    PINT_Dist_lookup(rf1.dist);
+    PINT_dist_lookup(rf1.dist);
                                                                                  
     rf2.server_nr = 1;
     rf2.server_ct = 4;
     rf2.fsize = 0;
-    rf2.dist = PVFS_dist_create("simple_stripe");
+    rf2.dist = PINT_dist_create("simple_stripe");
     rf2.extend_flag = 1;
-    PINT_Dist_lookup(rf2.dist);
+    PINT_dist_lookup(rf2.dist);
                                                                                  
     rf3.server_nr = 2;
     rf3.server_ct = 4;
     rf3.fsize = 0;
-    rf3.dist = PVFS_dist_create("simple_stripe");
+    rf3.dist = PINT_dist_create("simple_stripe");
     rf3.extend_flag = 1;
-    PINT_Dist_lookup(rf3.dist);
+    PINT_dist_lookup(rf3.dist);
                                                                                  
     rf4.server_nr = 3;
     rf4.server_ct = 4;
     rf4.fsize = 0;
-    rf4.dist = PVFS_dist_create("simple_stripe");
+    rf4.dist = PINT_dist_create("simple_stripe");
     rf4.extend_flag = 1;
-    PINT_Dist_lookup(rf4.dist);
+    PINT_dist_lookup(rf4.dist);
                                                                                  
     /* set up response for each server */
     seg1.offset_array = (int64_t *)malloc(SEGMAX * sizeof(int64_t));

Index: test-request-indexed.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-request-indexed.c,v
diff -p -u -r1.7 -r1.8
--- test-request-indexed.c	13 May 2004 16:21:43 -0000	1.7
+++ test-request-indexed.c	17 May 2004 15:58:12 -0000	1.8
@@ -23,8 +23,7 @@
 #include <stdlib.h>
 
 #include <pint-request.h>
-#include <pvfs-distribution.h>
-#include <simple-stripe.h>
+#include <pint-distribution.h>
 #include "client.h"
 #include "mpi.h"
 #include "pts.h"
@@ -75,9 +74,9 @@ static int test_request(void){
     rf1.server_nr = 0;
     rf1.server_ct = 1;
     rf1.fsize = 0;
-    rf1.dist = PVFS_dist_create("simple_stripe");
+    rf1.dist = PINT_dist_create("simple_stripe");
     rf1.extend_flag = 1;
-    PINT_Dist_lookup(rf1.dist);
+    PINT_dist_lookup(rf1.dist);
                                                                                 
     /* file data for second request is the same, except the file
      * will have grown by 10M
@@ -85,9 +84,9 @@ static int test_request(void){
     rf2.server_nr = 0;
     rf2.server_ct = 1;
     rf2.fsize = 10*1024*1024;
-    rf2.dist = PVFS_dist_create("simple_stripe");
+    rf2.dist = PINT_dist_create("simple_stripe");
     rf2.extend_flag = 1;
-    PINT_Dist_lookup(rf2.dist);
+    PINT_dist_lookup(rf2.dist);
                                                                                  
     /* set up result structures */
     seg1.offset_array = (int64_t *)malloc(SEGMAX * sizeof(int64_t));

Index: test-request-tiled.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-request-tiled.c,v
diff -p -u -r1.4 -r1.5
--- test-request-tiled.c	13 May 2004 16:21:43 -0000	1.4
+++ test-request-tiled.c	17 May 2004 15:58:12 -0000	1.5
@@ -17,8 +17,7 @@
 #include<assert.h>
 
 #include <pint-request.h>
-#include <pvfs-distribution.h>
-#include <simple-stripe.h>
+#include <pint-distribution.h>
 #include <pvfs2-debug.h>
 #include "client.h"
 #include "mpi.h"
@@ -56,9 +55,9 @@ static int test_req_tiled(void){
    rf1.server_nr = 0;
    rf1.server_ct = 4;
    rf1.fsize = 6000;
-   rf1.dist = PVFS_dist_create("simple_stripe");
+   rf1.dist = PINT_dist_create("simple_stripe");
    rf1.extend_flag = 0;
-   PINT_Dist_lookup(rf1.dist);
+   PINT_dist_lookup(rf1.dist);
                                                                                 
    /* set up result struct */
    seg1.offset_array = (int64_t *)malloc(SEGMAX * sizeof(int64_t));

Index: test-romio-noncontig-pattern2.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-romio-noncontig-pattern2.c,v
diff -p -u -r1.4 -r1.5
--- test-romio-noncontig-pattern2.c	13 May 2004 16:21:43 -0000	1.4
+++ test-romio-noncontig-pattern2.c	17 May 2004 15:58:12 -0000	1.5
@@ -17,8 +17,7 @@
 #include<assert.h>
 
 #include <pint-request.h>
-#include <pvfs-distribution.h>
-#include <simple-stripe.h>
+#include <pint-distribution.h>
 #include <pvfs2-debug.h>
 #include "client.h"
 #include "mpi.h"
@@ -79,9 +78,9 @@ static int test_romio_noncontig2(void){
    rf1.server_nr = 0;
    rf1.server_ct = 1;
    rf1.fsize = 0;
-   rf1.dist = PVFS_dist_create("simple_stripe");
+   rf1.dist = PINT_dist_create("simple_stripe");
    rf1.extend_flag = 1;
-   PINT_Dist_lookup(rf1.dist);
+   PINT_dist_lookup(rf1.dist);
                                                                                                                                                        
    /* set up result struct */
    seg1.offset_array = (int64_t *)malloc(SEGMAX * sizeof(int64_t));

Index: test-vector-offset.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-vector-offset.c,v
diff -p -u -r1.4 -r1.5
--- test-vector-offset.c	13 May 2004 16:21:43 -0000	1.4
+++ test-vector-offset.c	17 May 2004 15:58:12 -0000	1.5
@@ -17,8 +17,7 @@
 #include<assert.h>
 
 #include <pint-request.h>
-#include <pvfs-distribution.h>
-#include <simple-stripe.h>
+#include <pint-distribution.h>
 #include <pvfs2-debug.h>
 #include "client.h"
 #include "mpi.h"
@@ -57,9 +56,9 @@ static int test_vec_offset(void){
     rf1.server_nr = 0;
     rf1.server_ct = 8;
     rf1.fsize = 10000000;
-    rf1.dist = PVFS_dist_create("simple_stripe");
+    rf1.dist = PINT_dist_create("simple_stripe");
     rf1.extend_flag = 1;
-    PINT_Dist_lookup(rf1.dist);
+    PINT_dist_lookup(rf1.dist);
                                                                                 
     /* set up result struct */
     seg1.offset_array = (int64_t *)malloc(SEGMAX * sizeof(int64_t));

Index: test-vector-start-final-offset.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-vector-start-final-offset.c,v
diff -p -u -r1.4 -r1.5
--- test-vector-start-final-offset.c	13 May 2004 16:21:43 -0000	1.4
+++ test-vector-start-final-offset.c	17 May 2004 15:58:12 -0000	1.5
@@ -17,8 +17,7 @@
 #include<assert.h>
 
 #include <pint-request.h>
-#include <pvfs-distribution.h>
-#include <simple-stripe.h>
+#include <pint-distribution.h>
 #include <pvfs2-debug.h>
 #include "client.h"
 #include "mpi.h"
@@ -58,9 +57,9 @@ static int test_vec_start_final(void){
     rf1.server_nr = 0;
     rf1.server_ct = 8;
     rf1.fsize = 10000000;
-    rf1.dist = PVFS_dist_create("simple_stripe");
+    rf1.dist = PINT_dist_create("simple_stripe");
     rf1.extend_flag = 1;
-    PINT_Dist_lookup(rf1.dist);
+    PINT_dist_lookup(rf1.dist);
                                                                                 
     /* set up result struct */
     seg1.offset_array = (int64_t *)malloc(SEGMAX * sizeof(int64_t));

Index: test-write-eof.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-write-eof.c,v
diff -p -u -r1.4 -r1.5
--- test-write-eof.c	13 May 2004 16:21:43 -0000	1.4
+++ test-write-eof.c	17 May 2004 15:58:12 -0000	1.5
@@ -18,8 +18,7 @@
 #include<assert.h>
 
 #include <pint-request.h>
-#include <pvfs-distribution.h>
-#include <simple-stripe.h>
+#include <pint-distribution.h>
 #include <pvfs2-debug.h>
 #include "client.h"
 #include "mpi.h"
@@ -66,9 +65,9 @@ static int test_write(void){
    rf1.server_nr = 0;
    rf1.server_ct = 3;
    rf1.fsize = 8454144;
-   rf1.dist = PVFS_dist_create("simple_stripe");
+   rf1.dist = PINT_dist_create("simple_stripe");
    rf1.extend_flag = 0;
-   PINT_Dist_lookup(rf1.dist);
+   PINT_dist_lookup(rf1.dist);
                                                                                 
    /* file data for second request is the same, except the file
     * will have grown by 10M
@@ -76,9 +75,9 @@ static int test_write(void){
    rf2.server_nr = 0;
    rf2.server_ct = 3;
    rf2.fsize = 8454144;
-   rf2.dist = PVFS_dist_create("simple_stripe");
+   rf2.dist = PINT_dist_create("simple_stripe");
    rf2.extend_flag = 0;
-   PINT_Dist_lookup(rf2.dist);
+   PINT_dist_lookup(rf2.dist);
                                                                                 
    /* set up result struct */
    seg1.offset_array = (int64_t *)malloc(SEGMAX * sizeof(int64_t));



More information about the PVFS2-CVS mailing list