Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pytorch/cpuinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarat Dukhan <marat@fb.com>2018-04-20 03:17:18 +0300
committerMarat Dukhan <marat@fb.com>2018-04-20 03:17:18 +0300
commit43b442cbd80337d450bcf376bf037a5209f6e1a5 (patch)
treea3494d07c36c122d7506d9cd5089e405af93457b /test
parent934d8fd545f5e3bf0588e8600e63fd55580f2deb (diff)
Update Alcatel Revvl mock test
Diffstat (limited to 'test')
-rw-r--r--test/cpuinfo/alcatel-revvl.armeabi.log13
-rw-r--r--test/mock/alcatel-revvl.h21
2 files changed, 34 insertions, 0 deletions
diff --git a/test/cpuinfo/alcatel-revvl.armeabi.log b/test/cpuinfo/alcatel-revvl.armeabi.log
new file mode 100644
index 0000000..2f267a3
--- /dev/null
+++ b/test/cpuinfo/alcatel-revvl.armeabi.log
@@ -0,0 +1,13 @@
+Processor : AArch64 Processor rev 2 (aarch64)
+processor : 4
+model name : AArch64 Processor rev 2 (aarch64)
+BogoMIPS : 26.00
+BogoMIPS : 26.00
+Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt lpae evtstrm aes pmull sha1 sha2 crc32
+CPU implementer : 0x41
+CPU architecture: 8
+CPU variant : 0x0
+CPU part : 0xd03
+CPU revision : 2
+
+Hardware : MT6738
diff --git a/test/mock/alcatel-revvl.h b/test/mock/alcatel-revvl.h
index 3fcd314..2d7ecc6 100644
--- a/test/mock/alcatel-revvl.h
+++ b/test/mock/alcatel-revvl.h
@@ -1,4 +1,5 @@
struct cpuinfo_mock_file filesystem[] = {
+#if CPUINFO_ARCH_ARM64
{
.path = "/proc/cpuinfo",
.size = 554,
@@ -28,6 +29,26 @@ struct cpuinfo_mock_file filesystem[] = {
"\n"
"Hardware\t: MT6738\n",
},
+#elif CPUINFO_ARCH_ARM
+ {
+ .path = "/proc/cpuinfo",
+ .size = 367,
+ .content =
+ "Processor\t: AArch64 Processor rev 2 (aarch64)\n"
+ "processor\t: 4\n"
+ "model name\t: AArch64 Processor rev 2 (aarch64)\n"
+ "BogoMIPS\t: 26.00\n"
+ "BogoMIPS\t: 26.00\n"
+ "Features\t: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt lpae evtstrm aes pmull sha1 sha2 crc32\n"
+ "CPU implementer\t: 0x41\n"
+ "CPU architecture: 8\n"
+ "CPU variant\t: 0x0\n"
+ "CPU part\t: 0xd03\n"
+ "CPU revision\t: 2\n"
+ "\n"
+ "Hardware\t: MT6738\n",
+ },
+#endif
{
.path = "/system/build.prop",
.size = 9423,