on master help sign in
Merge pull request #1307 from molcay/master

Add syntax tests for CpuInfo and MemInfo filetype

commita838ff47b5f5ec6153f3ff63087ee7ef3df24dd2 authorEthan P <32112321+eth-p@users.noreply.github.com> dateSun 11 Oct 2020, 11:58 (6 years ago) parentbce304a51036ce
4 files changed+196
tests/syntax-tests/highlighted/CpuInfo/test.CpuInfo+45 tests/syntax-tests/highlighted/MemInfo/test.MemInfo+53 tests/syntax-tests/source/CpuInfo/test.CpuInfo+45 tests/syntax-tests/source/MemInfo/test.MemInfo+53
tests/syntax-tests/highlighted/CpuInfo/test.CpuInfonew file+45
@@ -0,0 +1,45 @@
1+processor : 0
2+model name : ARMv7 Processor rev 3 (v7l)
3+BogoMIPS : 270.00
4+Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
5+CPU implementer : 0x41
6+CPU architecture: 7
7+CPU variant : 0x0
8+CPU part : 0xd08
9+CPU revision : 3
10+
11+processor : 1
12+model name : ARMv7 Processor rev 3 (v7l)
13+BogoMIPS : 270.00
14+Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
15+CPU implementer : 0x41
16+CPU architecture: 7
17+CPU variant : 0x0
18+CPU part : 0xd08
19+CPU revision : 3
20+
21+processor : 2
22+model name : ARMv7 Processor rev 3 (v7l)
23+BogoMIPS : 270.00
24+Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
25+CPU implementer : 0x41
26+CPU architecture: 7
27+CPU variant : 0x0
28+CPU part : 0xd08
29+CPU revision : 3
30+
31+processor : 3
32+model name : ARMv7 Processor rev 3 (v7l)
33+BogoMIPS : 270.00
34+Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
35+CPU implementer : 0x41
36+CPU architecture: 7
37+CPU variant : 0x0
38+CPU part : 0xd08
39+CPU revision : 3
40+
41+Hardware : BCM2711
42+Revision : b03111
43+Serial : 1000000095fd9fc5
44+Model : Raspberry Pi 4 Model B Rev 1.1
45+
tests/syntax-tests/highlighted/MemInfo/test.MemInfonew file+53
@@ -0,0 +1,53 @@
1+MemTotal: 1004892 kB
2+MemFree: 109424 kB
3+MemAvailable: 498032 kB
4+Buffers: 66360 kB
5+Cached: 448344 kB
6+SwapCached: 0 kB
7+Active: 547076 kB
8+Inactive: 196864 kB
9+Active(anon): 249956 kB
10+Inactive(anon): 7328 kB
11+Active(file): 297120 kB
12+Inactive(file): 189536 kB
13+Unevictable: 18516 kB
14+Mlocked: 18516 kB
15+SwapTotal: 0 kB
16+SwapFree: 0 kB
17+Dirty: 276 kB
18+Writeback: 0 kB
19+AnonPages: 247780 kB
20+Mapped: 168472 kB
21+Shmem: 19860 kB
22+KReclaimable: 59128 kB
23+Slab: 108616 kB
24+SReclaimable: 59128 kB
25+SUnreclaim: 49488 kB
26+KernelStack: 2060 kB
27+PageTables: 4232 kB
28+NFS_Unstable: 0 kB
29+Bounce: 0 kB
30+WritebackTmp: 0 kB
31+CommitLimit: 502444 kB
32+Committed_AS: 678300 kB
33+VmallocTotal: 34359738367 kB
34+VmallocUsed: 10756 kB
35+VmallocChunk: 0 kB
36+Percpu: 784 kB
37+HardwareCorrupted: 0 kB
38+AnonHugePages: 0 kB
39+ShmemHugePages: 0 kB
40+ShmemPmdMapped: 0 kB
41+FileHugePages: 0 kB
42+FilePmdMapped: 0 kB
43+CmaTotal: 0 kB
44+CmaFree: 0 kB
45+HugePages_Total: 0
46+HugePages_Free: 0
47+HugePages_Rsvd: 0
48+HugePages_Surp: 0
49+Hugepagesize: 2048 kB
50+Hugetlb: 0 kB
51+DirectMap4k: 118764 kB
52+DirectMap2M: 929792 kB
53+DirectMap1G: 0 kB
tests/syntax-tests/source/CpuInfo/test.CpuInfonew file+45
@@ -0,0 +1,45 @@
1+processor : 0
2+model name : ARMv7 Processor rev 3 (v7l)
3+BogoMIPS : 270.00
4+Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
5+CPU implementer : 0x41
6+CPU architecture: 7
7+CPU variant : 0x0
8+CPU part : 0xd08
9+CPU revision : 3
10+
11+processor : 1
12+model name : ARMv7 Processor rev 3 (v7l)
13+BogoMIPS : 270.00
14+Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
15+CPU implementer : 0x41
16+CPU architecture: 7
17+CPU variant : 0x0
18+CPU part : 0xd08
19+CPU revision : 3
20+
21+processor : 2
22+model name : ARMv7 Processor rev 3 (v7l)
23+BogoMIPS : 270.00
24+Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
25+CPU implementer : 0x41
26+CPU architecture: 7
27+CPU variant : 0x0
28+CPU part : 0xd08
29+CPU revision : 3
30+
31+processor : 3
32+model name : ARMv7 Processor rev 3 (v7l)
33+BogoMIPS : 270.00
34+Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
35+CPU implementer : 0x41
36+CPU architecture: 7
37+CPU variant : 0x0
38+CPU part : 0xd08
39+CPU revision : 3
40+
41+Hardware : BCM2711
42+Revision : b03111
43+Serial : 1000000095fd9fc5
44+Model : Raspberry Pi 4 Model B Rev 1.1
45+
tests/syntax-tests/source/MemInfo/test.MemInfonew file+53
@@ -0,0 +1,53 @@
1+MemTotal: 1004892 kB
2+MemFree: 109424 kB
3+MemAvailable: 498032 kB
4+Buffers: 66360 kB
5+Cached: 448344 kB
6+SwapCached: 0 kB
7+Active: 547076 kB
8+Inactive: 196864 kB
9+Active(anon): 249956 kB
10+Inactive(anon): 7328 kB
11+Active(file): 297120 kB
12+Inactive(file): 189536 kB
13+Unevictable: 18516 kB
14+Mlocked: 18516 kB
15+SwapTotal: 0 kB
16+SwapFree: 0 kB
17+Dirty: 276 kB
18+Writeback: 0 kB
19+AnonPages: 247780 kB
20+Mapped: 168472 kB
21+Shmem: 19860 kB
22+KReclaimable: 59128 kB
23+Slab: 108616 kB
24+SReclaimable: 59128 kB
25+SUnreclaim: 49488 kB
26+KernelStack: 2060 kB
27+PageTables: 4232 kB
28+NFS_Unstable: 0 kB
29+Bounce: 0 kB
30+WritebackTmp: 0 kB
31+CommitLimit: 502444 kB
32+Committed_AS: 678300 kB
33+VmallocTotal: 34359738367 kB
34+VmallocUsed: 10756 kB
35+VmallocChunk: 0 kB
36+Percpu: 784 kB
37+HardwareCorrupted: 0 kB
38+AnonHugePages: 0 kB
39+ShmemHugePages: 0 kB
40+ShmemPmdMapped: 0 kB
41+FileHugePages: 0 kB
42+FilePmdMapped: 0 kB
43+CmaTotal: 0 kB
44+CmaFree: 0 kB
45+HugePages_Total: 0
46+HugePages_Free: 0
47+HugePages_Rsvd: 0
48+HugePages_Surp: 0
49+Hugepagesize: 2048 kB
50+Hugetlb: 0 kB
51+DirectMap4k: 118764 kB
52+DirectMap2M: 929792 kB
53+DirectMap1G: 0 kB