Add ebuild testing script

This commit is contained in:
Sravan Balaji
2024-12-07 11:52:53 -05:00
parent 1da300f638
commit 1f2929e94b

22
overlaytools/ebuildtester.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/usr/bin/env sh
# Generates a docker container that replicates "fresh" Gentoo installations
# See https://wiki.gentoo.org/wiki/Ebuildtester
#
# This script sets some baseline arguments, but additional arguments can be
# passed into the script as if you were using the `ebuildtester` directly
#
# NOTE: `--overlay-dir` gets mounted to `/var/lib/overlays/<overlay-name>`
# inside the container
ebuildtester \
--portage-dir /var/db/repos/gentoo/ \
--overlay-dir $(git rev-parse --show-toplevel) \
--rm \
--update \
--pull \
--install-basic-packages \
--threads $(nproc) \
--unstable \
--with-vnc \
--manual ${@}