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:
Carlos Alexandro Becker
2023-08-15 23:11:10 -03:00
committed by GitHub
parent 3aded351f4
commit b50fc3af8c
3 changed files with 17 additions and 0 deletions
+1
View File
@@ -234,6 +234,7 @@ func TestDebSpecific(t *testing.T) {
"rules",
"triggers",
"breaks",
"predepends",
}
for _, name := range testNames {
for _, arch := range formatArchs[format] {
+7
View File
@@ -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
View File
@@ -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