This is a script to test ebuilds on Gentoo Linux.
- the environment is based on the btrfs subvolume
- root user needed
Dependencies:
- BtrFS and its tools
- bubblewrap
- standard linux tools
Preparation:
- create a btrfs subvolume, refer to the btrfs contents of Preparing a chroot environment
- setup the first few lines in the shell, especially the
REPO_gentoo
variable.
Run:
./testEbuilds.sh --help #show help message
export FSBASEPATH=/path/to/the/base/subvolume
# parallel mode
./testEbuilds.sh -d /path/to/_test_conf_root -r /path/to/extra/repo fcitx5-rime fcitx5-configtool fcitx5-gtk
# interactive mode
./testEbuilds.sh -d /path/to/_test_conf_root -r /path/to/extra/repo -i
# maintenance mode
./testEbuilds.sh -d /path/to/_test_conf_root -r /path/to/extra/repo -m