mirror of
https://github.com/goreleaser/nfpm.git
synced 2026-06-19 08:05:04 +00:00
test: deb.predepends integration test (#699)
* test: deb.predepends integration test refs #696 Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * fix: test Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * fix: typo --------- Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
3aded351f4
commit
b50fc3af8c
@@ -234,6 +234,7 @@ func TestDebSpecific(t *testing.T) {
|
||||
"rules",
|
||||
"triggers",
|
||||
"breaks",
|
||||
"predepends",
|
||||
}
|
||||
for _, name := range testNames {
|
||||
for _, arch := range formatArchs[format] {
|
||||
|
||||
Vendored
+7
@@ -177,6 +177,13 @@ RUN dpkg -i /tmp/foo.deb 2>&1 | grep "foo breaks dummy"
|
||||
RUN dpkg -r dummy
|
||||
RUN dpkg -i /tmp/foo.deb
|
||||
|
||||
|
||||
# ---- predepends test ----
|
||||
FROM test_base AS predepends
|
||||
COPY dummy.deb /tmp/dummy.deb
|
||||
# install dummy package
|
||||
RUN dpkg --info /tmp/foo.deb | grep "Pre-Depends: less"
|
||||
|
||||
# ---- compression test ----
|
||||
FROM min AS compression
|
||||
RUN test -e /usr/bin/fake
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
name: "foo"
|
||||
arch: "all"
|
||||
platform: "linux"
|
||||
version: "v1.0.0"
|
||||
maintainer: "John Doe <john@example.com>"
|
||||
description: Foo breaks dummy
|
||||
deb:
|
||||
predepends:
|
||||
- less
|
||||
Reference in New Issue
Block a user