コード例 #1
0
ファイル: b64url_test.c プロジェクト: pombredanne/spiz
int
main (int argc, char *argv[])
{
    if (argc < 2) {
	printf("Usage %s <string to encode>\n", argv[0]);
	return (1);
    }

    if ((test_sizes()) != 0) {
	return (1);
    }

    if ((test_string(argv[1], strlen(argv[1]))) != 0) {
	return (1);
    }

    if (test_uuid() != 0) {
	return (1);
    }

    if (test_random() != 0) {
	return (1);
    }

    return (0);
}
コード例 #2
0
int main(int argc, char *argv[])
   {
   time_timer();
#ifdef USE_CUDA
   cuda::cudaInitialize(std::cout);
   cuda::cudaQueryDevices(std::cout);
   time_kernelcalls();
   test_useofclasses();
   test_sizes();
#else
   failwith("CUDA support not enabled on this system");
#endif
   return 0;
   }