--- /dev/null
+#!/bin/bash
+
+
+#./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s 2 -l 50
+
+
+./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s2 -b55 &
+cat posttest_blob.txt |nc 127.0.0.1 6666
+
+./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s2 -b482 &
+cat posttest_headers.txt |nc 127.0.0.1 6666
+
+./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s2 -b537 &
+cat posttest.txt |nc 127.0.0.1 6666
+
+
+./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s2 -n1 &
+cat posttest_blob.txt |nc 127.0.0.1 6666
+
+./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s2 -n13 &
+cat posttest_headers.txt |nc 127.0.0.1 6666
+
+./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s2 -n14 &
+cat posttest.txt |nc 127.0.0.1 6666
+
+posttest.txt
// else run the simple http test
break;
case 't':
- timeout = atoi(optarg);
+ if (optarg != NULL)
+ timeout = atoi(optarg);
break;
case 's':
- selres = atoi(optarg);
+ if (optarg != NULL)
+ selres = atoi(optarg);
break;
}
}
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#define SHOW_ME_VAPPEND_PRINTF
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include "stringbuf_test.h"
+#define SHOW_ME_VAPPEND_PRINTF
#include "../lib/libcitadel.h"
int Quiet = 0;
-static void AddStrBufSimlpeTests(void)
+static void AddStrBufSimpleTests(void)
{
CU_pSuite pGroup = NULL;
CU_pTest pTest = NULL;
}
Run = CU_TRUE ;
- AddStrBufSimlpeTests();
+ AddStrBufSimpleTests();
if (CU_TRUE == Run) {
//CU_console_run_tests();