[C-MPI-commits] SF.net SVN: c-mpi:[88] test/driver
Status: Pre-Alpha
Brought to you by:
jmwozniak
|
From: <jmw...@us...> - 2010-05-11 21:23:37
|
Revision: 88
http://c-mpi.svn.sourceforge.net/c-mpi/?rev=88&view=rev
Author: jmwozniak
Date: 2010-05-11 21:23:31 +0000 (Tue, 11 May 2010)
Log Message:
-----------
Better test names
Added Paths:
-----------
test/driver/test-cmd-put.c
test/driver/test-cmd-quit.c
test/driver/test-cmd-sleep.c
Removed Paths:
-------------
test/driver/test01.c
test/driver/test02.c
test/driver/test03.c
Copied: test/driver/test-cmd-put.c (from rev 87, test/driver/test03.c)
===================================================================
--- test/driver/test-cmd-put.c (rev 0)
+++ test/driver/test-cmd-put.c 2010-05-11 21:23:31 UTC (rev 88)
@@ -0,0 +1,26 @@
+
+#include <assert.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include <accessor.h>
+
+int
+main(int argc, char* argv[])
+{
+ driver_access_fifo();
+
+ char* data = "hello does this work";
+
+ fprintf(to_cmpi, "put key1 %i\n", (int) strlen(data));
+ fprintf(to_cmpi, "%s", data);
+ fflush(to_cmpi);
+
+ char output[32];
+ fscanf(from_cmpi, "%s", output);
+
+ assert(!strcmp(output, "ok"));
+
+ return 0;
+}
Copied: test/driver/test-cmd-quit.c (from rev 87, test/driver/test02.c)
===================================================================
--- test/driver/test-cmd-quit.c (rev 0)
+++ test/driver/test-cmd-quit.c 2010-05-11 21:23:31 UTC (rev 88)
@@ -0,0 +1,24 @@
+
+#include <stdio.h>
+#include <stdlib.h>
+
+#include <mpi_tools.h>
+#include <accessor.h>
+
+int
+main(int argc, char* argv[])
+{
+ int error;
+
+ error = driver_access_fifo();
+ assert(error);
+
+ fprintf(to_cmpi, "quit\n");
+ fflush(to_cmpi);
+ char output[32];
+ fscanf(from_cmpi, "%s", output);
+
+ assert(!strcmp(output, "ok"));
+
+ return 0;
+}
Copied: test/driver/test-cmd-sleep.c (from rev 85, test/driver/test01.c)
===================================================================
--- test/driver/test-cmd-sleep.c (rev 0)
+++ test/driver/test-cmd-sleep.c 2010-05-11 21:23:31 UTC (rev 88)
@@ -0,0 +1,24 @@
+
+#include <assert.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include <accessor.h>
+
+int
+main(int argc, char* argv[])
+{
+ int error;
+
+ driver_access_fifo();
+
+ fprintf(to_cmpi, "sleep 3\n");
+ fflush(to_cmpi);
+ char output[32];
+ error = fscanf(from_cmpi, "%s", output);
+
+ assert(!strcmp(output, "ok"));
+
+ return 0;
+}
Deleted: test/driver/test01.c
===================================================================
--- test/driver/test01.c 2010-05-11 21:22:09 UTC (rev 87)
+++ test/driver/test01.c 2010-05-11 21:23:31 UTC (rev 88)
@@ -1,24 +0,0 @@
-
-#include <assert.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include <accessor.h>
-
-int
-main(int argc, char* argv[])
-{
- int error;
-
- driver_access_fifo();
-
- fprintf(to_cmpi, "sleep 3\n");
- fflush(to_cmpi);
- char output[32];
- error = fscanf(from_cmpi, "%s", output);
-
- assert(!strcmp(output, "ok"));
-
- return 0;
-}
Deleted: test/driver/test02.c
===================================================================
--- test/driver/test02.c 2010-05-11 21:22:09 UTC (rev 87)
+++ test/driver/test02.c 2010-05-11 21:23:31 UTC (rev 88)
@@ -1,24 +0,0 @@
-
-#include <stdio.h>
-#include <stdlib.h>
-
-#include <mpi_tools.h>
-#include <accessor.h>
-
-int
-main(int argc, char* argv[])
-{
- int error;
-
- error = driver_access_fifo();
- assert(error);
-
- fprintf(to_cmpi, "quit\n");
- fflush(to_cmpi);
- char output[32];
- fscanf(from_cmpi, "%s", output);
-
- assert(!strcmp(output, "ok"));
-
- return 0;
-}
Deleted: test/driver/test03.c
===================================================================
--- test/driver/test03.c 2010-05-11 21:22:09 UTC (rev 87)
+++ test/driver/test03.c 2010-05-11 21:23:31 UTC (rev 88)
@@ -1,26 +0,0 @@
-
-#include <assert.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include <accessor.h>
-
-int
-main(int argc, char* argv[])
-{
- driver_access_fifo();
-
- char* data = "hello does this work";
-
- fprintf(to_cmpi, "put key1 %i\n", (int) strlen(data));
- fprintf(to_cmpi, "%s", data);
- fflush(to_cmpi);
-
- char output[32];
- fscanf(from_cmpi, "%s", output);
-
- assert(!strcmp(output, "ok"));
-
- return 0;
-}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|