mirror of
https://github.com/sharkdp/bat
synced 2024-11-15 08:37:12 +00:00
Merge pull request #1307 from molcay/master
Add syntax tests for CpuInfo and MemInfo filetype
This commit is contained in:
commit
a838ff47b5
4 changed files with 196 additions and 0 deletions
45
tests/syntax-tests/highlighted/CpuInfo/test.CpuInfo
Normal file
45
tests/syntax-tests/highlighted/CpuInfo/test.CpuInfo
Normal file
|
@ -0,0 +1,45 @@
|
|||
[38;2;248;248;242mprocessor : 0[0m
|
||||
[38;2;248;248;242mmodel name : ARMv7 Processor rev 3 (v7l)[0m
|
||||
[38;2;248;248;242mBogoMIPS : 270.00[0m
|
||||
[38;2;248;248;242mFeatures : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32[0m
|
||||
[38;2;248;248;242mCPU implementer : 0x41[0m
|
||||
[38;2;248;248;242mCPU architecture: 7[0m
|
||||
[38;2;248;248;242mCPU variant : 0x0[0m
|
||||
[38;2;248;248;242mCPU part : 0xd08[0m
|
||||
[38;2;248;248;242mCPU revision : 3[0m
|
||||
|
||||
[38;2;248;248;242mprocessor : 1[0m
|
||||
[38;2;248;248;242mmodel name : ARMv7 Processor rev 3 (v7l)[0m
|
||||
[38;2;248;248;242mBogoMIPS : 270.00[0m
|
||||
[38;2;248;248;242mFeatures : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32[0m
|
||||
[38;2;248;248;242mCPU implementer : 0x41[0m
|
||||
[38;2;248;248;242mCPU architecture: 7[0m
|
||||
[38;2;248;248;242mCPU variant : 0x0[0m
|
||||
[38;2;248;248;242mCPU part : 0xd08[0m
|
||||
[38;2;248;248;242mCPU revision : 3[0m
|
||||
|
||||
[38;2;248;248;242mprocessor : 2[0m
|
||||
[38;2;248;248;242mmodel name : ARMv7 Processor rev 3 (v7l)[0m
|
||||
[38;2;248;248;242mBogoMIPS : 270.00[0m
|
||||
[38;2;248;248;242mFeatures : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32[0m
|
||||
[38;2;248;248;242mCPU implementer : 0x41[0m
|
||||
[38;2;248;248;242mCPU architecture: 7[0m
|
||||
[38;2;248;248;242mCPU variant : 0x0[0m
|
||||
[38;2;248;248;242mCPU part : 0xd08[0m
|
||||
[38;2;248;248;242mCPU revision : 3[0m
|
||||
|
||||
[38;2;248;248;242mprocessor : 3[0m
|
||||
[38;2;248;248;242mmodel name : ARMv7 Processor rev 3 (v7l)[0m
|
||||
[38;2;248;248;242mBogoMIPS : 270.00[0m
|
||||
[38;2;248;248;242mFeatures : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32[0m
|
||||
[38;2;248;248;242mCPU implementer : 0x41[0m
|
||||
[38;2;248;248;242mCPU architecture: 7[0m
|
||||
[38;2;248;248;242mCPU variant : 0x0[0m
|
||||
[38;2;248;248;242mCPU part : 0xd08[0m
|
||||
[38;2;248;248;242mCPU revision : 3[0m
|
||||
|
||||
[38;2;248;248;242mHardware : BCM2711[0m
|
||||
[38;2;248;248;242mRevision : b03111[0m
|
||||
[38;2;248;248;242mSerial : 1000000095fd9fc5[0m
|
||||
[38;2;248;248;242mModel : Raspberry Pi 4 Model B Rev 1.1[0m
|
||||
|
53
tests/syntax-tests/highlighted/MemInfo/test.MemInfo
Normal file
53
tests/syntax-tests/highlighted/MemInfo/test.MemInfo
Normal file
|
@ -0,0 +1,53 @@
|
|||
[38;2;248;248;242mMemTotal: 1004892 kB[0m
|
||||
[38;2;248;248;242mMemFree: 109424 kB[0m
|
||||
[38;2;248;248;242mMemAvailable: 498032 kB[0m
|
||||
[38;2;248;248;242mBuffers: 66360 kB[0m
|
||||
[38;2;248;248;242mCached: 448344 kB[0m
|
||||
[38;2;248;248;242mSwapCached: 0 kB[0m
|
||||
[38;2;248;248;242mActive: 547076 kB[0m
|
||||
[38;2;248;248;242mInactive: 196864 kB[0m
|
||||
[38;2;248;248;242mActive(anon): 249956 kB[0m
|
||||
[38;2;248;248;242mInactive(anon): 7328 kB[0m
|
||||
[38;2;248;248;242mActive(file): 297120 kB[0m
|
||||
[38;2;248;248;242mInactive(file): 189536 kB[0m
|
||||
[38;2;248;248;242mUnevictable: 18516 kB[0m
|
||||
[38;2;248;248;242mMlocked: 18516 kB[0m
|
||||
[38;2;248;248;242mSwapTotal: 0 kB[0m
|
||||
[38;2;248;248;242mSwapFree: 0 kB[0m
|
||||
[38;2;248;248;242mDirty: 276 kB[0m
|
||||
[38;2;248;248;242mWriteback: 0 kB[0m
|
||||
[38;2;248;248;242mAnonPages: 247780 kB[0m
|
||||
[38;2;248;248;242mMapped: 168472 kB[0m
|
||||
[38;2;248;248;242mShmem: 19860 kB[0m
|
||||
[38;2;248;248;242mKReclaimable: 59128 kB[0m
|
||||
[38;2;248;248;242mSlab: 108616 kB[0m
|
||||
[38;2;248;248;242mSReclaimable: 59128 kB[0m
|
||||
[38;2;248;248;242mSUnreclaim: 49488 kB[0m
|
||||
[38;2;248;248;242mKernelStack: 2060 kB[0m
|
||||
[38;2;248;248;242mPageTables: 4232 kB[0m
|
||||
[38;2;248;248;242mNFS_Unstable: 0 kB[0m
|
||||
[38;2;248;248;242mBounce: 0 kB[0m
|
||||
[38;2;248;248;242mWritebackTmp: 0 kB[0m
|
||||
[38;2;248;248;242mCommitLimit: 502444 kB[0m
|
||||
[38;2;248;248;242mCommitted_AS: 678300 kB[0m
|
||||
[38;2;248;248;242mVmallocTotal: 34359738367 kB[0m
|
||||
[38;2;248;248;242mVmallocUsed: 10756 kB[0m
|
||||
[38;2;248;248;242mVmallocChunk: 0 kB[0m
|
||||
[38;2;248;248;242mPercpu: 784 kB[0m
|
||||
[38;2;248;248;242mHardwareCorrupted: 0 kB[0m
|
||||
[38;2;248;248;242mAnonHugePages: 0 kB[0m
|
||||
[38;2;248;248;242mShmemHugePages: 0 kB[0m
|
||||
[38;2;248;248;242mShmemPmdMapped: 0 kB[0m
|
||||
[38;2;248;248;242mFileHugePages: 0 kB[0m
|
||||
[38;2;248;248;242mFilePmdMapped: 0 kB[0m
|
||||
[38;2;248;248;242mCmaTotal: 0 kB[0m
|
||||
[38;2;248;248;242mCmaFree: 0 kB[0m
|
||||
[38;2;248;248;242mHugePages_Total: 0[0m
|
||||
[38;2;248;248;242mHugePages_Free: 0[0m
|
||||
[38;2;248;248;242mHugePages_Rsvd: 0[0m
|
||||
[38;2;248;248;242mHugePages_Surp: 0[0m
|
||||
[38;2;248;248;242mHugepagesize: 2048 kB[0m
|
||||
[38;2;248;248;242mHugetlb: 0 kB[0m
|
||||
[38;2;248;248;242mDirectMap4k: 118764 kB[0m
|
||||
[38;2;248;248;242mDirectMap2M: 929792 kB[0m
|
||||
[38;2;248;248;242mDirectMap1G: 0 kB[0m
|
45
tests/syntax-tests/source/CpuInfo/test.CpuInfo
Normal file
45
tests/syntax-tests/source/CpuInfo/test.CpuInfo
Normal file
|
@ -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
|
||||
|
53
tests/syntax-tests/source/MemInfo/test.MemInfo
Normal file
53
tests/syntax-tests/source/MemInfo/test.MemInfo
Normal file
|
@ -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
|
Loading…
Reference in a new issue