Explorar el Código

add framework code to run the installed aptitude with the current
build library in the test environment

David Kalnischkies hace 15 años
padre
commit
b6b5a542bd
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  1. 9 0
      test/integration/framework

+ 9 - 0
test/integration/framework

@@ -78,6 +78,15 @@ aptkey() { runapt apt-key $*; }
 dpkg() {
 	$(which dpkg) --root=${TMPWORKINGDIRECTORY}/rootdir --force-not-root --force-bad-path --log=${TMPWORKINGDIRECTORY}/rootdir/var/log/dpkg.log $*
 }
+aptitude() {
+	if [ -f ./aptconfig.conf ]; then
+		APT_CONFIG=aptconfig.conf LD_LIBRARY_PATH=${BUILDDIRECTORY}  $(which aptitude) $*
+	elif [ -f ../aptconfig.conf ]; then
+		APT_CONFIG=../aptconfig.conf LD_LIBRARY_PATH=${BUILDDIRECTORY} $(which aptitude) $*
+	else
+		LD_LIBRARY_PATH=${BUILDDIRECTORY}  $(which aptitude) $*
+	fi
+}
 
 setupenvironment() {
 	TMPWORKINGDIRECTORY=$(mktemp -d)