tests: make the dependency patching test more complete

- dependency patching test didn't attempt to apply patches; just to see
  whether they were on the spec.

- it applies the patch now and verifies that that patch was applied.
This commit is contained in:
Todd Gamblin
2018-08-14 00:07:46 -07:00
parent 85d00c5ef4
commit 62026ce302
5 changed files with 33 additions and 5 deletions

View File

@@ -0,0 +1,11 @@
--- patch-a-dependency/configure 2018-08-13 23:13:51.000000000 -0700
+++ patch-a-dependency/configure.patched 2018-08-13 23:14:15.000000000 -0700
@@ -2,7 +2,7 @@
prefix=$(echo $1 | sed 's/--prefix=//')
cat > Makefile <<EOF
all:
- echo Building...
+ echo Patched!
install:
mkdir -p $prefix

View File

@@ -33,7 +33,7 @@ class PatchADependency(Package):
version('1.0', '0123456789abcdef0123456789abcdef')
depends_on('libelf', patches=patch('foo.patch'))
depends_on('libelf', patches=patch('libelf.patch'))
def install(self, spec, prefix):
pass