From 994c21a5e14588dd252f1503ae06683baf8f3ffa Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Wed, 6 Oct 2021 06:50:11 +0200 Subject: syntax-tests: Make CpuInfo test actually work (#1887) * syntax-tests: Make CpuInfo test actually work File extension matching is case-sensitive, so extension needs to be .cpuinfo for the syntax to actually be used. * Also fix MemInfo --- .../syntax-tests/highlighted/CpuInfo/test.CpuInfo | 45 ------------------ .../syntax-tests/highlighted/CpuInfo/test.cpuinfo | 45 ++++++++++++++++++ .../syntax-tests/highlighted/MemInfo/test.MemInfo | 53 ---------------------- .../syntax-tests/highlighted/MemInfo/test.meminfo | 53 ++++++++++++++++++++++ tests/syntax-tests/source/CpuInfo/test.CpuInfo | 45 ------------------ tests/syntax-tests/source/CpuInfo/test.cpuinfo | 45 ++++++++++++++++++ tests/syntax-tests/source/MemInfo/test.MemInfo | 53 ---------------------- tests/syntax-tests/source/MemInfo/test.meminfo | 53 ++++++++++++++++++++++ 8 files changed, 196 insertions(+), 196 deletions(-) delete mode 100644 tests/syntax-tests/highlighted/CpuInfo/test.CpuInfo create mode 100644 tests/syntax-tests/highlighted/CpuInfo/test.cpuinfo delete mode 100644 tests/syntax-tests/highlighted/MemInfo/test.MemInfo create mode 100644 tests/syntax-tests/highlighted/MemInfo/test.meminfo delete mode 100644 tests/syntax-tests/source/CpuInfo/test.CpuInfo create mode 100644 tests/syntax-tests/source/CpuInfo/test.cpuinfo delete mode 100644 tests/syntax-tests/source/MemInfo/test.MemInfo create mode 100644 tests/syntax-tests/source/MemInfo/test.meminfo diff --git a/tests/syntax-tests/highlighted/CpuInfo/test.CpuInfo b/tests/syntax-tests/highlighted/CpuInfo/test.CpuInfo deleted file mode 100644 index 993fa002..00000000 --- a/tests/syntax-tests/highlighted/CpuInfo/test.CpuInfo +++ /dev/null @@ -1,45 +0,0 @@ -processor : 0 -model name : ARMv7 Processor rev 3 (v7l) -BogoMIPS : 270.00 -Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 -CPU implementer : 0x41 -CPU architecture: 7 -CPU variant : 0x0 -CPU part : 0xd08 -CPU revision : 3 - -processor : 1 -model name : ARMv7 Processor rev 3 (v7l) -BogoMIPS : 270.00 -Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 -CPU implementer : 0x41 -CPU architecture: 7 -CPU variant : 0x0 -CPU part : 0xd08 -CPU revision : 3 - -processor : 2 -model name : ARMv7 Processor rev 3 (v7l) -BogoMIPS : 270.00 -Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 -CPU implementer : 0x41 -CPU architecture: 7 -CPU variant : 0x0 -CPU part : 0xd08 -CPU revision : 3 - -processor : 3 -model name : ARMv7 Processor rev 3 (v7l) -BogoMIPS : 270.00 -Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 -CPU implementer : 0x41 -CPU architecture: 7 -CPU variant : 0x0 -CPU part : 0xd08 -CPU revision : 3 - -Hardware : BCM2711 -Revision : b03111 -Serial : 1000000095fd9fc5 -Model : Raspberry Pi 4 Model B Rev 1.1 - diff --git a/tests/syntax-tests/highlighted/CpuInfo/test.cpuinfo b/tests/syntax-tests/highlighted/CpuInfo/test.cpuinfo new file mode 100644 index 00000000..0fc8b5aa --- /dev/null +++ b/tests/syntax-tests/highlighted/CpuInfo/test.cpuinfo @@ -0,0 +1,45 @@ +processor : 0 +model name : ARMv7 Processor rev 3 (v7l) +BogoMIPS : 270.00 +Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 +CPU implementer : 0x41 +CPU architecture: 7 +CPU variant : 0x0 +CPU part : 0xd08 +CPU revision : 3 + +processor : 1 +model name : ARMv7 Processor rev 3 (v7l) +BogoMIPS : 270.00 +Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 +CPU implementer : 0x41 +CPU architecture: 7 +CPU variant : 0x0 +CPU part : 0xd08 +CPU revision : 3 + +processor : 2 +model name : ARMv7 Processor rev 3 (v7l) +BogoMIPS : 270.00 +Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 +CPU implementer : 0x41 +CPU architecture: 7 +CPU variant : 0x0 +CPU part : 0xd08 +CPU revision : 3 + +processor : 3 +model name : ARMv7 Processor rev 3 (v7l) +BogoMIPS : 270.00 +Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 +CPU implementer : 0x41 +CPU architecture: 7 +CPU variant : 0x0 +CPU part : 0xd08 +CPU revision : 3 + +Hardware : BCM2711 +Revision : b03111 +Serial : 1000000095fd9fc5 +Model : Raspberry Pi 4 Model B Rev 1.1 + diff --git a/tests/syntax-tests/highlighted/MemInfo/test.MemInfo b/tests/syntax-tests/highlighted/MemInfo/test.MemInfo deleted file mode 100644 index 7360ad65..00000000 --- a/tests/syntax-tests/highlighted/MemInfo/test.MemInfo +++ /dev/null @@ -1,53 +0,0 @@ -MemTotal: 1004892 kB -MemFree: 109424 kB -MemAvailable: 498032 kB -Buffers: 66360 kB -Cached: 448344 kB -SwapCached: 0 kB -Active: 547076 kB -Inactive: 196864 kB -Active(anon): 249956 kB -Inactive(anon): 7328 kB -Active(file): 297120 kB -Inactive(file): 189536 kB -Unevictable: 18516 kB -Mlocked: 18516 kB -SwapTotal: 0 kB -SwapFree: 0 kB -Dirty: 276 kB -Writeback: 0 kB -AnonPages: 247780 kB -Mapped: 168472 kB -Shmem: 19860 kB -KReclaimable: 59128 kB -Slab: 108616 kB -SReclaimable: 59128 kB -SUnreclaim: 49488 kB -KernelStack: 2060 kB -PageTables: 4232 kB -NFS_Unstable: 0 kB -Bounce: 0 kB -WritebackTmp: 0 kB -CommitLimit: 502444 kB -Committed_AS: 678300 kB -VmallocTotal: 34359738367 kB -VmallocUsed: 10756 kB -VmallocChunk: 0 kB -Percpu: 784 kB -HardwareCorrupted: 0 kB -AnonHugePages: 0 kB -ShmemHugePages: 0 kB -ShmemPmdMapped: 0 kB -FileHugePages: 0 kB -FilePmdMapped: 0 kB -CmaTotal: 0 kB -CmaFree: 0 kB -HugePages_Total: 0 -HugePages_Free: 0 -HugePages_Rsvd: 0 -HugePages_Surp: 0 -Hugepagesize: 2048 kB -Hugetlb: 0 kB -DirectMap4k: 118764 kB -DirectMap2M: 929792 kB -DirectMap1G: 0 kB diff --git a/tests/syntax-tests/highlighted/MemInfo/test.meminfo b/tests/syntax-tests/highlighted/MemInfo/test.meminfo new file mode 100644 index 00000000..2af52673 --- /dev/null +++ b/tests/syntax-tests/highlighted/MemInfo/test.meminfo @@ -0,0 +1,53 @@ +MemTotal: 1004892 kB +MemFree: 109424 kB +MemAvailable: 498032 kB +Buffers: 66360 kB +Cached: 448344 kB +SwapCached: 0 kB +Active: 547076 kB +Inactive: 196864 kB +Active(anon): 249956 kB +Inactive(anon): 7328 kB +Active(file): 297120 kB +Inactive(file): 189536 kB +Unevictable: 18516 kB +Mlocked: 18516 kB +SwapTotal: 0 kB +SwapFree: 0 kB +Dirty: 276 kB +Writeback: 0 kB +AnonPages: 247780 kB +Mapped: 168472 kB +Shmem: 19860 kB +KReclaimable: 59128 kB +Slab: 108616 kB +SReclaimable: 59128 kB +SUnreclaim: 49488 kB +KernelStack: 2060 kB +PageTables: 4232 kB +NFS_Unstable: 0 kB +Bounce: 0 kB +WritebackTmp: 0 kB +CommitLimit: 502444 kB +Committed_AS: 678300 kB +VmallocTotal: 34359738367 kB +VmallocUsed: 10756 kB +VmallocChunk: 0 kB +Percpu: 784 kB +HardwareCorrupted: 0 kB +AnonHugePages: 0 kB +ShmemHugePages: 0 kB +ShmemPmdMapped: 0 kB +FileHugePages: 0 kB +FilePmdMapped: 0 kB +CmaTotal: 0 kB +CmaFree: 0 kB +HugePages_Total: 0 +HugePages_Free: 0 +HugePages_Rsvd: 0 +HugePages_Surp: 0 +Hugepagesize: 2048 kB +Hugetlb: 0 kB +DirectMap4k: 118764 kB +DirectMap2M: 929792 kB +DirectMap1G: 0 kB diff --git a/tests/syntax-tests/source/CpuInfo/test.CpuInfo b/tests/syntax-tests/source/CpuInfo/test.CpuInfo deleted file mode 100644 index 120da39f..00000000 --- a/tests/syntax-tests/source/CpuInfo/test.CpuInfo +++ /dev/null @@ -1,45 +0,0 @@ -processor : 0 -model name : ARMv7 Processor rev 3 (v7l) -BogoMIPS : 270.00 -Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 -CPU implementer : 0x41 -CPU architecture: 7 -CPU variant : 0x0 -CPU part : 0xd08 -CPU revision : 3 - -processor : 1 -model name : ARMv7 Processor rev 3 (v7l) -BogoMIPS : 270.00 -Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 -CPU implementer : 0x41 -CPU architecture: 7 -CPU variant : 0x0 -CPU part : 0xd08 -CPU revision : 3 - -processor : 2 -model name : ARMv7 Processor rev 3 (v7l) -BogoMIPS : 270.00 -Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 -CPU implementer : 0x41 -CPU architecture: 7 -CPU variant : 0x0 -CPU part : 0xd08 -CPU revision : 3 - -processor : 3 -model name : ARMv7 Processor rev 3 (v7l) -BogoMIPS : 270.00 -Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 -CPU implementer : 0x41 -CPU architecture: 7 -CPU variant : 0x0 -CPU part : 0xd08 -CPU revision : 3 - -Hardware : BCM2711 -Revision : b03111 -Serial : 1000000095fd9fc5 -Model : Raspberry Pi 4 Model B Rev 1.1 - diff --git a/tests/syntax-tests/source/CpuInfo/test.cpuinfo b/tests/syntax-tests/source/CpuInfo/test.cpuinfo new file mode 100644 index 00000000..120da39f --- /dev/null +++ b/tests/syntax-tests/source/CpuInfo/test.cpuinfo @@ -0,0 +1,45 @@ +processor : 0 +model name : ARMv7 Processor rev 3 (v7l) +BogoMIPS : 270.00 +Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 +CPU implementer : 0x41 +CPU architecture: 7 +CPU variant : 0x0 +CPU part : 0xd08 +CPU revision : 3 + +processor : 1 +model name : ARMv7 Processor rev 3 (v7l) +BogoMIPS : 270.00 +Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 +CPU implementer : 0x41 +CPU architecture: 7 +CPU variant : 0x0 +CPU part : 0xd08 +CPU revision : 3 + +processor : 2 +model name : ARMv7 Processor rev 3 (v7l) +BogoMIPS : 270.00 +Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 +CPU implementer : 0x41 +CPU architecture: 7 +CPU variant : 0x0 +CPU part : 0xd08 +CPU revision : 3 + +processor : 3 +model name : ARMv7 Processor rev 3 (v7l) +BogoMIPS : 270.00 +Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 +CPU implementer : 0x41 +CPU architecture: 7 +CPU variant : 0x0 +CPU part : 0xd08 +CPU revision : 3 + +Hardware : BCM2711 +Revision : b03111 +Serial : 1000000095fd9fc5 +Model : Raspberry Pi 4 Model B Rev 1.1 + diff --git a/tests/syntax-tests/source/MemInfo/test.MemInfo b/tests/syntax-tests/source/MemInfo/test.MemInfo deleted file mode 100644 index dc944792..00000000 --- a/tests/syntax-tests/source/MemInfo/test.MemInfo +++ /dev/null @@ -1,53 +0,0 @@ -MemTotal: 1004892 kB -MemFree: 109424 kB -MemAvailable: 498032 kB -Buffers: 66360 kB -Cached: 448344 kB -SwapCached: 0 kB -Active: 547076 kB -Inactive: 196864 kB -Active(anon): 249956 kB -Inactive(anon): 7328 kB -Active(file): 297120 kB -Inactive(file): 189536 kB -Unevictable: 18516 kB -Mlocked: 18516 kB -SwapTotal: 0 kB -SwapFree: 0 kB -Dirty: 276 kB -Writeback: 0 kB -AnonPages: 247780 kB -Mapped: 168472 kB -Shmem: 19860 kB -KReclaimable: 59128 kB -Slab: 108616 kB -SReclaimable: 59128 kB -SUnreclaim: 49488 kB -KernelStack: 2060 kB -PageTables: 4232 kB -NFS_Unstable: 0 kB -Bounce: 0 kB -WritebackTmp: 0 kB -CommitLimit: 502444 kB -Committed_AS: 678300 kB -VmallocTotal: 34359738367 kB -VmallocUsed: 10756 kB -VmallocChunk: 0 kB -Percpu: 784 kB -HardwareCorrupted: 0 kB -AnonHugePages: 0 kB -ShmemHugePages: 0 kB -ShmemPmdMapped: 0 kB -FileHugePages: 0 kB -FilePmdMapped: 0 kB -CmaTotal: 0 kB -CmaFree: 0 kB -HugePages_Total: 0 -HugePages_Free: 0 -HugePages_Rsvd: 0 -HugePages_Surp: 0 -Hugepagesize: 2048 kB -Hugetlb: 0 kB -DirectMap4k: 118764 kB -DirectMap2M: 929792 kB -DirectMap1G: 0 kB diff --git a/tests/syntax-tests/source/MemInfo/test.meminfo b/tests/syntax-tests/source/MemInfo/test.meminfo new file mode 100644 index 00000000..dc944792 --- /dev/null +++ b/tests/syntax-tests/source/MemInfo/test.meminfo @@ -0,0 +1,53 @@ +MemTotal: 1004892 kB +MemFree: 109424 kB +MemAvailable: 498032 kB +Buffers: 66360 kB +Cached: 448344 kB +SwapCached: 0 kB +Active: 547076 kB +Inactive: 196864 kB +Active(anon): 249956 kB +Inactive(anon): 7328 kB +Active(file): 297120 kB +Inactive(file): 189536 kB +Unevictable: 18516 kB +Mlocked: 18516 kB +SwapTotal: 0 kB +SwapFree: 0 kB +Dirty: 276 kB +Writeback: 0 kB +AnonPages: 247780 kB +Mapped: 168472 kB +Shmem: 19860 kB +KReclaimable: 59128 kB +Slab: 108616 kB +SReclaimable: 59128 kB +SUnreclaim: 49488 kB +KernelStack: 2060 kB +PageTables: 4232 kB +NFS_Unstable: 0 kB +Bounce: 0 kB +WritebackTmp: 0 kB +CommitLimit: 502444 kB +Committed_AS: 678300 kB +VmallocTotal: 34359738367 kB +VmallocUsed: 10756 kB +VmallocChunk: 0 kB +Percpu: 784 kB +HardwareCorrupted: 0 kB +AnonHugePages: 0 kB +ShmemHugePages: 0 kB +ShmemPmdMapped: 0 kB +FileHugePages: 0 kB +FilePmdMapped: 0 kB +CmaTotal: 0 kB +CmaFree: 0 kB +HugePages_Total: 0 +HugePages_Free: 0 +HugePages_Rsvd: 0 +HugePages_Surp: 0 +Hugepagesize: 2048 kB +Hugetlb: 0 kB +DirectMap4k: 118764 kB +DirectMap2M: 929792 kB +DirectMap1G: 0 kB -- cgit v1.2.3