Exemplo n.º 1
0
int main(void) {
  testConfig("config");
  testConfig("config-flat");
  testConfig("config-in-envelope");
  testConfig("config-in-envelope2");
  testConfig("config-in-envelope-fft");
  testWrongServer("config");
  testWrongServerFFT("config-in-envelope-fft");
  testWrongNumVbuckets("config-wrong-num-vbuckets");
  testConfigDiff();
  testConfigDiffSame();
  testConfigUserPassword();
  testConfigCouchApiBase();
  testConfigDiffKetamaSame();
  exit(EXIT_SUCCESS);
}
Exemplo n.º 2
0
int main(int argc, char **argv)
{
    char buffer[1024];
    if (argc > 1 && getenv("CMAKE_CURRENT_SOURCE_DIR") == NULL) {
        snprintf(buffer, sizeof(buffer), "CMAKE_CURRENT_SOURCE_DIR=%s",
                 argv[1]);
        putenv(buffer);
    }
  testConfig("config");
  testConfig("config-flat");
  testConfig("config-in-envelope");
  testConfig("config-in-envelope2");
  testConfig("config-in-envelope-fft");
  testWrongServer("config");
  testWrongServerFFT("config-in-envelope-fft");
  testWrongNumVbuckets("config-wrong-num-vbuckets");
  testConfigDiff();
  testConfigDiffSame();
  testConfigUserPassword();
  testConfigCouchApiBase();
  testConfigDiffKetamaSame();
  exit(EXIT_SUCCESS);
}