Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Remove two outdated files.

  • Loading branch information...
commit c86dc2fb90c5d5e7cc198d4fe977003f66e9ddbc 1 parent 2ed4e3a
Derick Rethans authored August 17, 2012
8  mcon/compile.sh
... ...
@@ -1,8 +0,0 @@
1  
-#!/bin/bash
2  
-
3  
-#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
4  
-#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
5  
-#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
6  
-#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
7  
-#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
8  
-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
47  mcon/parse-test.c
... ...
@@ -1,47 +0,0 @@
1  
-#include "parse.h"
2  
-#include "utils.h"
3  
-#include <stdlib.h>
4  
-#include <stdio.h>
5  
-
6  
-void parse_test(char *spec)
7  
-{
8  
-	int i;
9  
-	mongo_servers *servers;
10  
-
11  
-	servers = mongo_parse_server_spec(spec);
12  
-
13  
-	for (i = 0; i < servers->count; i++) {
14  
-		char *tmp_hash;
15  
-
16  
-		tmp_hash = mongo_server_create_hash(servers->server[i]);
17  
-		printf("HASH: %s\n", tmp_hash);
18  
-		free(tmp_hash);
19  
-	}
20  
-	mongo_servers_dump(servers);
21  
-
22  
-	mongo_servers_dtor(servers);
23  
-}
24  
-
25  
-int main(void)
26  
-{
27  
-	parse_test("host1:123");
28  
-	parse_test("host1:123,host2:123");
29  
-	parse_test("mongodb://host1:123,host2:123");
30  
-	parse_test("mongodb://derick:test@host1:123");
31  
-	parse_test("mongodb://derick:test@host1:123,host2:123");
32  
-	parse_test("mongodb://derick:test@host1:123,host2:123/database");
33  
-	parse_test("mongodb://derick:test@host1:123,host2/database");
34  
-	parse_test("mongodb://derick:test@host1,host2:123/database");
35  
-	parse_test("mongodb://host1,host2:123/database");
36  
-	/* Specifying options */
37  
-	parse_test("mongodb://derick:test@host1,host2:123/database?option1=foo");
38  
-	parse_test("mongodb://derick:test@host1,host2:123/?option2=bar");
39  
-	parse_test("mongodb://derick:test@host1,host2:123?option3=bar");
40  
-	parse_test("mongodb://derick:test@host1,host2:123/?option4");
41  
-	parse_test("mongodb://derick:test@host1,host2:123/?option5=bar;option6=baz");
42  
-	parse_test("mongodb://derick:test@host1,host2:123/?option7=bar&option8=baz");
43  
-	parse_test("mongodb://derick:test@host1,host2:123/?option9=bar;option10");
44  
-	parse_test("mongodb://derick:test@host1,host2:123/?option11;option12=baz");
45  
-	/* Specific options */
46  
-	parse_test("mongodb://host1/?replicaSet=testset");
47  
-}

0 notes on commit c86dc2f

Please sign in to comment.
Something went wrong with that request. Please try again.