Add tests for device IDs in file size column

This commit is contained in:
Benjamin Sago 2021-04-09 23:59:54 +01:00
parent 6403336028
commit f6e66d982d
2 changed files with 18 additions and 0 deletions

View File

@ -61,3 +61,14 @@ stdout = { file = "outputs/files_long_colourscale_bytes.ansitxt" }
stderr = { empty = true }
status = 0
tags = [ 'long', 'colour-scale', 'bytes' ]
[[cmd]]
name = "exa -l produces a details table with major and minor device IDs"
shell = "cd /dev; exa -l mem null port zero full random urandom --sort=none"
stdout = { file = "outputs/dev_long.ansitxt" }
stderr = { empty = true }
status = 0
tags = [ 'long', 'dev' ]
# these particular device IDs should be fixed:
# https://raw.githubusercontent.com/torvalds/linux/master/Documentation/admin-guide/devices.txt

View File

@ -0,0 +1,7 @@
crw-r----- 1,1 root  9 Apr 19:35 mem
crw-rw-rw- 1,3 root  9 Apr 19:35 null
crw-r----- 1,4 root  9 Apr 19:35 port
crw-rw-rw- 1,5 root  9 Apr 19:35 zero
crw-rw-rw- 1,7 root  9 Apr 19:35 full
crw-rw-rw- 1,8 root  9 Apr 19:35 random
crw-rw-rw- 1,9 root  9 Apr 19:35 urandom