]> git.saurik.com Git - apple/xnu.git/blob - tools/tests/unit_tests/sampletest.c
xnu-2422.115.4.tar.gz
[apple/xnu.git] / tools / tests / unit_tests / sampletest.c
1 #include <stdio.h>
2 /*
3 Sample test file. Do not remove this.
4 */
5 int main(int argc, char *argv[]){
6 char os_version[20] = TARGET_OS_VERS;
7 char os_build[20] = TARGET_OS_BUILD_VERS;
8 printf("Sample test for xnu unit tests. This file is just an example for future unit tests.\n");
9 printf("This test was build with OS version %s and build %s\n", os_version, os_build);
10 /* an example of how SDKTARGET is used for different builds */
11 #ifdef TARGET_SDK_macosx
12 printf("The SDKTARGET for building this test is macosx\n");
13 #endif
14
15 #ifdef TARGET_SDK_macosx_internal
16 printf("The SDKTARGET for building this test is macosx.internal\n");
17 #endif
18
19 #ifdef TARGET_SDK_iphoneos
20 printf("The SDKTARGET for building this test is iphoneos\n");
21 #endif
22
23 #ifdef TARGET_SDK_iphoneos_internal
24 printf("The SDKTARGET for building this test is iphoneos.internal\n");
25 #endif
26
27 return 0;
28 }