Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove two outdated files.

  • Loading branch information...
commit c86dc2fb90c5d5e7cc198d4fe977003f66e9ddbc 1 parent 2ed4e3a
@derickr authored
Showing with 0 additions and 55 deletions.
  1. +0 −8 mcon/compile.sh
  2. +0 −47 mcon/parse-test.c
View
8 mcon/compile.sh
@@ -1,8 +0,0 @@
-#!/bin/bash
-
-#gcc -ggdb3 -O0 -o test2 bson_helpers.c connections.c manager.c mini_bson.c parse.c simplecon-test.c str.c utils.c io.c
-#gcc -Wall -ggdb3 -O0 -o test3 bson_helpers.c collection.c connections.c manager.c mini_bson.c parse.c read_preference.c replicacon-test.c str.c utils.c io.c
-#gcc -Wall -ggdb3 -O0 -o rp-test1 rp-test-simple1.c bson_helpers.c collection.c connections.c manager.c mini_bson.c parse.c read_preference.c str.c utils.c io.c
-#gcc -Wall -ggdb3 -O0 -o hash-test1 test-hash-split.c bson_helpers.c collection.c connections.c manager.c mini_bson.c parse.c read_preference.c str.c utils.c io.c
-#gcc -Wall -ggdb3 -O0 -o rp-test1 rp-test-complex1.c bson_helpers.c collection.c connections.c manager.c mini_bson.c parse.c read_preference.c str.c utils.c io.c
-gcc -Wall -ggdb3 -O0 -o test3 parse-test2.c bson_helpers.c collection.c connections.c manager.c mini_bson.c parse.c read_preference.c str.c utils.c io.c
View
47 mcon/parse-test.c
@@ -1,47 +0,0 @@
-#include "parse.h"
-#include "utils.h"
-#include <stdlib.h>
-#include <stdio.h>
-
-void parse_test(char *spec)
-{
- int i;
- mongo_servers *servers;
-
- servers = mongo_parse_server_spec(spec);
-
- for (i = 0; i < servers->count; i++) {
- char *tmp_hash;
-
- tmp_hash = mongo_server_create_hash(servers->server[i]);
- printf("HASH: %s\n", tmp_hash);
- free(tmp_hash);
- }
- mongo_servers_dump(servers);
-
- mongo_servers_dtor(servers);
-}
-
-int main(void)
-{
- parse_test("host1:123");
- parse_test("host1:123,host2:123");
- parse_test("mongodb://host1:123,host2:123");
- parse_test("mongodb://derick:test@host1:123");
- parse_test("mongodb://derick:test@host1:123,host2:123");
- parse_test("mongodb://derick:test@host1:123,host2:123/database");
- parse_test("mongodb://derick:test@host1:123,host2/database");
- parse_test("mongodb://derick:test@host1,host2:123/database");
- parse_test("mongodb://host1,host2:123/database");
- /* Specifying options */
- parse_test("mongodb://derick:test@host1,host2:123/database?option1=foo");
- parse_test("mongodb://derick:test@host1,host2:123/?option2=bar");
- parse_test("mongodb://derick:test@host1,host2:123?option3=bar");
- parse_test("mongodb://derick:test@host1,host2:123/?option4");
- parse_test("mongodb://derick:test@host1,host2:123/?option5=bar;option6=baz");
- parse_test("mongodb://derick:test@host1,host2:123/?option7=bar&option8=baz");
- parse_test("mongodb://derick:test@host1,host2:123/?option9=bar;option10");
- parse_test("mongodb://derick:test@host1,host2:123/?option11;option12=baz");
- /* Specific options */
- parse_test("mongodb://host1/?replicaSet=testset");
-}
Please sign in to comment.
Something went wrong with that request. Please try again.