예제 #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);
}
예제 #2
0
파일: testapp.c 프로젝트: bcui6611/moxi
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);
}