Initial commit.
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / kwsys / testSystemInformation.cxx
blob0c87730718da66a649d2a166fc15534da773b795
1 #include "kwsysPrivate.h"
2 #include KWSYS_HEADER(SystemInformation.hxx)
3 #include KWSYS_HEADER(ios/iostream)
7 // Work-around CMake dependency scanning limitation. This must
8 // duplicate the above list of headers.
9 #if 0
10 # include "SystemInformation.hxx.in"
11 # include "kwsys_ios_iostream.h.in"
12 #endif
14 #define printMethod(inof, m) kwsys_ios::cout << #m << ": " \
15 << info.m() << "\n"
16 int testSystemInformation(int, char*[])
18 kwsys::SystemInformation info;
19 printMethod(info, GetVendorString);
20 info.RunCPUCheck();
21 info.RunOSCheck();
22 info.RunMemoryCheck();
23 printMethod(info, GetVendorString);
24 printMethod(info, GetVendorID);
25 printMethod(info, GetTypeID);
26 printMethod(info, GetFamilyID);
27 printMethod(info, GetModelID);
28 printMethod(info, GetExtendedProcessorName);
29 printMethod(info, GetProcessorSerialNumber);
30 printMethod(info, GetProcessorCacheSize);
31 printMethod(info, GetLogicalProcessorsPerPhysical);
32 printMethod(info, GetProcessorClockFrequency);
33 printMethod(info, GetProcessorAPICID);
34 printMethod(info, GetOSName);
35 printMethod(info, GetHostname);
36 printMethod(info, GetOSRelease);
37 printMethod(info, GetOSVersion);
38 printMethod(info, GetOSPlatform);
39 printMethod(info, Is64Bits);
40 printMethod(info, GetNumberOfLogicalCPU);
41 printMethod(info, GetNumberOfPhysicalCPU);
42 printMethod(info, DoesCPUSupportCPUID);
43 printMethod(info, GetTotalVirtualMemory);
44 printMethod(info, GetAvailableVirtualMemory);
45 printMethod(info, GetTotalPhysicalMemory);
46 printMethod(info, GetAvailablePhysicalMemory);
48 //int GetProcessorCacheXSize(long int);
49 // bool DoesCPUSupportFeature(long int);
50 return 0;