bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

Blame utils/package-install-list.sh

Christoph Galuschka 751834
#! /bin/bash
Christoph Galuschka 751834
Christoph Galuschka 751834
# author: Christoph Galuschka <christoph.galuschka@chello.at>
Christoph Galuschka 751834
# This script will create a file with all packages which get installed by the tests
Christoph Galuschka 751834
Christoph Galuschka 751834
grep t_InstallPackage ../*/*/* | grep -v export | grep -v functions | egrep -v '.*\$.*' |\
Christoph Galuschka 751834
cut -d ':' -f 2 | sed 's/^ *//g' | tr -s ' ' | sed 's/t_InstallPackage/yum\ install\ \-y\ \-d0/g' > /var/tmp/t_functional_packagelist
Christoph Galuschka 751834
Christoph Galuschka 751834
# running the resulting file with '/bin/bash /var/tmp/t_functional_packagelist' will install all packages required by the current tests.