Template:Overlay/testcases
From Gentoo Wiki
Jump to:navigation
Jump to:search
Test cases
Note
This is the template test case page for Template:Overlay and its sandbox version. You may have to to update the examples.
This is the template test case page for Template:Overlay and its sandbox version. You may have to to update the examples.
Correct
One anonymous parameter matching an overlay already known to eselect-repository
Wiki code
{{Overlay|gentoo}}
Main version
To add the
gentoo
overlay, run:
root #
eselect repository enable gentoo
root #
emaint sync -r gentoo
Sandbox version
To add the
gentoo
overlay, run:
root #
eselect repository enable gentoo
root #
emaint sync -r gentoo
Adding an overlay unknown to eselect-repository
Wiki code
{{Overlay|gentoo|uri=https://github.com/gentoo/gentoo.git|type=git}}
Main version
To add the
gentoo
overlay, run:
root #
eselect repository add gentoo git https://github.com/gentoo/gentoo.git
root #
emaint sync -r gentoo
Sandbox version
To add the
gentoo
overlay, run:
root #
eselect repository add gentoo git https://github.com/gentoo/gentoo.git
root #
emaint sync -r gentoo
Incorrect
Adding an overlay unknown to eselect-repository while missing a URI parameter
Wiki code
{{Overlay|gentoo|type=git}}
Main version
To add the
gentoo
overlay, run:
root #
eselect repository add gentoo git
root #
emaint sync -r gentoo
Sandbox version
To add the
gentoo
overlay, run:
root #
eselect repository add gentoo git
root #
emaint sync -r gentoo
Adding an overlay unknown to eselect-repository while missing a type parameter
Wiki code
{{Overlay|gentoo|type=git}}
Main version
To add the
gentoo
overlay, run:
root #
eselect repository add gentoo git
root #
emaint sync -r gentoo
Sandbox version
To add the
gentoo
overlay, run:
root #
eselect repository add gentoo git
root #
emaint sync -r gentoo
Adding an overlay while missing the 1 parameter
Wiki code
{{Overlay|type=git}}
Main version
{{Overlay template error}}
Parameter 1 not defined. For correct usage see Overlay template's documentation on the
1
parameter.Sandbox version
{{Overlay template error}}
Parameter 1 not defined. For correct usage see Overlay template's documentation on the
1
parameter.