Template:GenericCmd/testcases
From Gentoo Wiki
Jump to:navigation
Jump to:search
Note
This is the template test case page for Template:GenericCmd and its sandbox version. The page may need to be refreshed to update the examples (click "Refresh" from the "More" menu ).
This is the template test case page for Template:GenericCmd and its sandbox version. The page may need to be refreshed to update the examples (click "Refresh" from the "More" menu ).
Correct
Unnamed parameter
Wiki code
{{GenericCmd|<pre>
command output
this
that
</pre>}}
Main version
command output
this
that
Sandbox version
command output
this
that
Multiple unnamed parameters (up to 10)
Wiki code
{{GenericCmd|command 1|command 2|command 3}}
Main version
command 1
command 2
command 3
Sandbox version
command 1
command 2
command 3
Unnamed parameter with large output
Wiki code
{{GenericCmd|ls -l /|output=<pre>
total 4
drwxr-xr-x 1 root root 970 Oct 26 22:29 bin
drwxr-xr-x 1 root root 10 Oct 26 18:29 boot
drwxr-xr-x 1 root root 1686 Oct 26 18:31 dev
drwxr-xr-x 1 root root 1276 Oct 26 22:32 etc
drwxr-xr-x 1 root root 10 Oct 26 18:29 home
lrwxrwxrwx 1 root root 5 Oct 26 21:09 lib -> lib64
drwxr-xr-x 1 root root 1366 Oct 26 21:09 lib32
drwxr-xr-x 1 root root 3490 Oct 26 22:29 lib64
drwxr-xr-x 1 root root 10 Oct 26 18:29 media
drwxr-xr-x 1 root root 10 Oct 26 18:29 mnt
drwxr-xr-x 1 root root 10 Oct 26 18:29 opt
drwxr-xr-x 1 root root 0 Oct 26 18:16 proc
drwx------ 1 root root 10 Oct 26 18:29 root
drwxr-xr-x 1 root root 22 Oct 26 22:28 run
drwxr-xr-x 1 root root 1914 Oct 26 22:32 sbin
drwxr-xr-x 1 root root 10 Oct 26 18:29 sys
drwxrwxrwt 1 root root 10 Oct 26 22:32 tmp
drwxr-xr-x 1 root root 138 Oct 26 22:32 usr
drwxr-xr-x 1 root root 66 Oct 26 18:29 var
</pre>}}
Main version
ls -l /
total 4 drwxr-xr-x 1 root root 970 Oct 26 22:29 bin drwxr-xr-x 1 root root 10 Oct 26 18:29 boot drwxr-xr-x 1 root root 1686 Oct 26 18:31 dev drwxr-xr-x 1 root root 1276 Oct 26 22:32 etc drwxr-xr-x 1 root root 10 Oct 26 18:29 home lrwxrwxrwx 1 root root 5 Oct 26 21:09 lib -> lib64 drwxr-xr-x 1 root root 1366 Oct 26 21:09 lib32 drwxr-xr-x 1 root root 3490 Oct 26 22:29 lib64 drwxr-xr-x 1 root root 10 Oct 26 18:29 media drwxr-xr-x 1 root root 10 Oct 26 18:29 mnt drwxr-xr-x 1 root root 10 Oct 26 18:29 opt drwxr-xr-x 1 root root 0 Oct 26 18:16 proc drwx------ 1 root root 10 Oct 26 18:29 root drwxr-xr-x 1 root root 22 Oct 26 22:28 run drwxr-xr-x 1 root root 1914 Oct 26 22:32 sbin drwxr-xr-x 1 root root 10 Oct 26 18:29 sys drwxrwxrwt 1 root root 10 Oct 26 22:32 tmp drwxr-xr-x 1 root root 138 Oct 26 22:32 usr drwxr-xr-x 1 root root 66 Oct 26 18:29 var
Sandbox version
ls -l /
total 4 drwxr-xr-x 1 root root 970 Oct 26 22:29 bin drwxr-xr-x 1 root root 10 Oct 26 18:29 boot drwxr-xr-x 1 root root 1686 Oct 26 18:31 dev drwxr-xr-x 1 root root 1276 Oct 26 22:32 etc drwxr-xr-x 1 root root 10 Oct 26 18:29 home lrwxrwxrwx 1 root root 5 Oct 26 21:09 lib -> lib64 drwxr-xr-x 1 root root 1366 Oct 26 21:09 lib32 drwxr-xr-x 1 root root 3490 Oct 26 22:29 lib64 drwxr-xr-x 1 root root 10 Oct 26 18:29 media drwxr-xr-x 1 root root 10 Oct 26 18:29 mnt drwxr-xr-x 1 root root 10 Oct 26 18:29 opt drwxr-xr-x 1 root root 0 Oct 26 18:16 proc drwx------ 1 root root 10 Oct 26 18:29 root drwxr-xr-x 1 root root 22 Oct 26 22:28 run drwxr-xr-x 1 root root 1914 Oct 26 22:32 sbin drwxr-xr-x 1 root root 10 Oct 26 18:29 sys drwxrwxrwt 1 root root 10 Oct 26 22:32 tmp drwxr-xr-x 1 root root 138 Oct 26 22:32 usr drwxr-xr-x 1 root root 66 Oct 26 18:29 var
Unnamed parameter with large output (collapsed output)
Wiki code
{{GenericCmd|ls -l /|collapse-output=true|output=<pre>
total 4
drwxr-xr-x 1 root root 970 Oct 26 22:29 bin
drwxr-xr-x 1 root root 10 Oct 26 18:29 boot
drwxr-xr-x 1 root root 1686 Oct 26 18:31 dev
drwxr-xr-x 1 root root 1276 Oct 26 22:32 etc
drwxr-xr-x 1 root root 10 Oct 26 18:29 home
lrwxrwxrwx 1 root root 5 Oct 26 21:09 lib -> lib64
drwxr-xr-x 1 root root 1366 Oct 26 21:09 lib32
drwxr-xr-x 1 root root 3490 Oct 26 22:29 lib64
drwxr-xr-x 1 root root 10 Oct 26 18:29 media
drwxr-xr-x 1 root root 10 Oct 26 18:29 mnt
drwxr-xr-x 1 root root 10 Oct 26 18:29 opt
drwxr-xr-x 1 root root 0 Oct 26 18:16 proc
drwx------ 1 root root 10 Oct 26 18:29 root
drwxr-xr-x 1 root root 22 Oct 26 22:28 run
drwxr-xr-x 1 root root 1914 Oct 26 22:32 sbin
drwxr-xr-x 1 root root 10 Oct 26 18:29 sys
drwxrwxrwt 1 root root 10 Oct 26 22:32 tmp
drwxr-xr-x 1 root root 138 Oct 26 22:32 usr
drwxr-xr-x 1 root root 66 Oct 26 18:29 var
</pre>}}
Main version
ls -l /
total 4 drwxr-xr-x 1 root root 970 Oct 26 22:29 bin drwxr-xr-x 1 root root 10 Oct 26 18:29 boot drwxr-xr-x 1 root root 1686 Oct 26 18:31 dev drwxr-xr-x 1 root root 1276 Oct 26 22:32 etc drwxr-xr-x 1 root root 10 Oct 26 18:29 home lrwxrwxrwx 1 root root 5 Oct 26 21:09 lib -> lib64 drwxr-xr-x 1 root root 1366 Oct 26 21:09 lib32 drwxr-xr-x 1 root root 3490 Oct 26 22:29 lib64 drwxr-xr-x 1 root root 10 Oct 26 18:29 media drwxr-xr-x 1 root root 10 Oct 26 18:29 mnt drwxr-xr-x 1 root root 10 Oct 26 18:29 opt drwxr-xr-x 1 root root 0 Oct 26 18:16 proc drwx------ 1 root root 10 Oct 26 18:29 root drwxr-xr-x 1 root root 22 Oct 26 22:28 run drwxr-xr-x 1 root root 1914 Oct 26 22:32 sbin drwxr-xr-x 1 root root 10 Oct 26 18:29 sys drwxrwxrwt 1 root root 10 Oct 26 22:32 tmp drwxr-xr-x 1 root root 138 Oct 26 22:32 usr drwxr-xr-x 1 root root 66 Oct 26 18:29 var
Sandbox version
ls -l /
total 4 drwxr-xr-x 1 root root 970 Oct 26 22:29 bin drwxr-xr-x 1 root root 10 Oct 26 18:29 boot drwxr-xr-x 1 root root 1686 Oct 26 18:31 dev drwxr-xr-x 1 root root 1276 Oct 26 22:32 etc drwxr-xr-x 1 root root 10 Oct 26 18:29 home lrwxrwxrwx 1 root root 5 Oct 26 21:09 lib -> lib64 drwxr-xr-x 1 root root 1366 Oct 26 21:09 lib32 drwxr-xr-x 1 root root 3490 Oct 26 22:29 lib64 drwxr-xr-x 1 root root 10 Oct 26 18:29 media drwxr-xr-x 1 root root 10 Oct 26 18:29 mnt drwxr-xr-x 1 root root 10 Oct 26 18:29 opt drwxr-xr-x 1 root root 0 Oct 26 18:16 proc drwx------ 1 root root 10 Oct 26 18:29 root drwxr-xr-x 1 root root 22 Oct 26 22:28 run drwxr-xr-x 1 root root 1914 Oct 26 22:32 sbin drwxr-xr-x 1 root root 10 Oct 26 18:29 sys drwxrwxrwt 1 root root 10 Oct 26 22:32 tmp drwxr-xr-x 1 root root 138 Oct 26 22:32 usr drwxr-xr-x 1 root root 66 Oct 26 18:29 var
Incorrect
No parameter (empty box)
Wiki code
{{GenericCmd}}
Main version
Sandbox version