/ SecurityTests / testmain.c
testmain.c
1 /* 2 * testmain.c 3 * Security 4 * 5 * Copyright (c) 2010,2012-2014 Apple Inc. All Rights Reserved. 6 * 7 */ 8 #include <stdio.h> 9 #include <stdlib.h> 10 11 #include <unistd.h> 12 13 #include <regressions/test/testenv.h> 14 15 #include "testlist.h" 16 #include <regressions/test/testlist_begin.h> 17 #include "testlist.h" 18 #include <regressions/test/testlist_end.h> 19 20 #include <dispatch/dispatch.h> 21 #include <CoreFoundation/CFRunLoop.h> 22 #include "keychain/ckks/CKKS.h" 23 24 int main(int argc, char *argv[]) 25 { 26 //printf("Build date : %s %s\n", __DATE__, __TIME__); 27 //printf("WARNING: If running those tests on a device with a passcode, DONT FORGET TO UNLOCK!!!\n"); 28 29 SecCKKSDisable(); 30 #if 0 && NO_SERVER 31 SOSCloudKeychainServerInit(); 32 #endif 33 34 dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ 35 int result = tests_begin(argc, argv); 36 37 fflush(stderr); 38 fflush(stdout); 39 40 sleep(1); 41 42 exit(result); 43 }); 44 45 CFRunLoopRun(); 46 47 return 0; 48 }