19 #include <gtest/gtest.h>
22 TEST(ARMLinuxTest, CPUInfo) {
31 "Processor: ARMv7 Processory rev 0 (v71)\n"
38 "Features: swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 "
40 "CPU implementer : 0x51\n"
41 "CPU architecture: 7\n"
46 "Hardware: SAMSUNG M2\n"
48 "Serial: 00001e030000354e\n",
55 "Processor : ARMv7 Processor rev 0 (v7l)\n"
59 "Features : swp half thumb fastmult vfp edsp neon vfpv3 tls "
61 "CPU implementer : 0x51\n"
62 "CPU architecture: 7\n"
67 "Hardware : SAMSUNG M2_ATT\n"
69 "Serial : 0000df0c00004d4c\n",
76 "Processor : ARMv7 Processor rev 2 (v7l)\n"
89 "Features : swp half thumb fastmult vfp edsp neon vfpv3 tls "
91 "CPU implementer : 0x51\n"
92 "CPU architecture: 7\n"
97 "Hardware : QCT APQ8064 MAKO\n"
99 "Serial : 0000000000000000\n",
106 "Processor : ARMv7 Processor rev 4 (v7l)\n"
110 "Features : swp half thumb fastmult vfp edsp neon vfpv3 tls "
112 "CPU implementer : 0x51\n"
113 "CPU architecture: 7\n"
114 "CPU variant : 0x1\n"
118 "Hardware : msm8960dt\n"
120 "Serial : 0001000201fe37a5\n",
127 "Processor : AArch64 Processor rev 1 (aarch64)\n"
130 "Features : fp asimd evtstrm aes pmull sha1 sha2 crc32\n"
131 "CPU implementer : 0x51\n"
132 "CPU architecture: 8\n"
133 "CPU variant : 0xa\n"
139 "Features : fp asimd evtstrm aes pmull sha1 sha2 crc32\n"
140 "CPU implementer : 0x51\n"
141 "CPU architecture: 8\n"
142 "CPU variant : 0xa\n"
148 "Features : fp asimd evtstrm aes pmull sha1 sha2 crc32\n"
149 "CPU implementer : 0x51\n"
150 "CPU architecture: 8\n"
151 "CPU variant : 0xa\n"
157 "Features : fp asimd evtstrm aes pmull sha1 sha2 crc32\n"
158 "CPU implementer : 0x51\n"
159 "CPU architecture: 8\n"
160 "CPU variant : 0xa\n"
165 "Hardware : Qualcomm Technologies, Inc MSM8998\n",
173 "Blah blah blah this is definitely an ARM CPU",
181 "Features : aes pmull sha1 sha2\n"
182 "CPU architecture: 8\n",
189 "Features : aes sha1 sha2\n"
190 "CPU architecture: 8\n",
196 "Features : pmull sha2\n"
197 "CPU architecture: 8\n",
203 "Features : aes aes aes not_aes aes aes \n"
204 "CPU architecture: 8\n",
211 "CPU architecture: 8\n",
217 "Features : nothing\n"
218 "CPU architecture: 8\n",
232 for (
const auto &t :
kTests) {