Revision a445564c

View differences:

src/Tests/topology_test.c
26 26
#include "peersampler.h"
27 27
#include "net_helpers.h"
28 28

  
29

  
29
static const char *psample_config;
30 30
static struct psample_context *context;
31 31
static const char *my_addr = "127.0.0.1";
32 32
static int port = 6666;
......
38 38
{
39 39
  int o;
40 40

  
41
  while ((o = getopt(argc, argv, "s:p:i:P:I:")) != -1) {
41
  while ((o = getopt(argc, argv, "s:p:i:P:I:c")) != -1) {
42 42
    switch(o) {
43 43
      case 'p':
44 44
        srv_port = atoi(optarg);
......
55 55
      case 's':
56 56
        fprefix = strdup(optarg);
57 57
        break;
58
      case 'c':
59
        psample_config = "protocol=cyclon";
60
        break;
58 61
      default:
59 62
        fprintf(stderr, "Error: unknown option %c\n", o);
60 63

  
......
73 76

  
74 77
    return NULL;
75 78
  }
76
//  context = psample_init(myID, NULL, 0, "protocol=cyclon");
77
  context = psample_init(myID, NULL, 0, "");
79
  context = psample_init(myID, NULL, 0, psample_config);
78 80

  
79 81
  return myID;
80 82
}

Also available in: Unified diff