diff --git a/src/it/rpm-dependency-based-requires/invoker.properties b/src/it/rpm-dependency-based-requires/invoker.properties new file mode 100644 index 00000000..3d041b81 --- /dev/null +++ b/src/it/rpm-dependency-based-requires/invoker.properties @@ -0,0 +1 @@ +invoker.goals = clean package diff --git a/src/it/rpm-dependency-based-requires/pom.xml b/src/it/rpm-dependency-based-requires/pom.xml new file mode 100644 index 00000000..e58db144 --- /dev/null +++ b/src/it/rpm-dependency-based-requires/pom.xml @@ -0,0 +1,14 @@ + + + 4.0.0 + org.codehaus.mojo.rpm.its + rpm-dependency-based-requires + 1.0 + pom + + + rpm-dep + rpm-rpm + + diff --git a/src/it/rpm-dependency-based-requires/rpm-dep/pom.xml b/src/it/rpm-dependency-based-requires/rpm-dep/pom.xml new file mode 100644 index 00000000..59d17e67 --- /dev/null +++ b/src/it/rpm-dependency-based-requires/rpm-dep/pom.xml @@ -0,0 +1,45 @@ + + + 4.0.0 + org.codehaus.mojo.rpm.its + rpm-dependency-based-requires-rpm-dep + 8.1 + rpm + + 2009 + + my org + www.my.org + + + + UTF-8 + + + + + + org.codehaus.mojo + rpm-maven-plugin + @pom.version@ + true + + My App + Application/Collectors + rel + false + myuser + mygroup + + + /usr/myusr/app + + false + + + + + + + diff --git a/src/it/rpm-dependency-based-requires/rpm-rpm/pom.xml b/src/it/rpm-dependency-based-requires/rpm-rpm/pom.xml new file mode 100644 index 00000000..bd8c957a --- /dev/null +++ b/src/it/rpm-dependency-based-requires/rpm-rpm/pom.xml @@ -0,0 +1,48 @@ + + + 4.0.0 + org.codehaus.mojo.rpm.its + rpm-dependency-based-requires-rpm-rpm + 1.0 + rpm + + 2009 + + my org + www.my.org + + + + UTF-8 + + + + + org.codehaus.mojo.rpm.its + rpm-dependency-based-requires-rpm-dep + 8.1 + rpm + + + + + + + org.codehaus.mojo + rpm-maven-plugin + @pom.version@ + true + + My App + Application/Collectors + rel + false + myuser + mygroup + true + + + + + diff --git a/src/it/rpm-dependency-based-requires/verify.groovy b/src/it/rpm-dependency-based-requires/verify.groovy new file mode 100644 index 00000000..397b7d13 --- /dev/null +++ b/src/it/rpm-dependency-based-requires/verify.groovy @@ -0,0 +1,10 @@ +File rpm = new File(basedir, "rpm-rpm/target/rpm/rpm-dependency-based-requires-rpm-rpm/RPMS/noarch/rpm-dependency-based-requires-rpm-rpm-1.0-rel.noarch.rpm") +if (!rpm.exists()) + throw new AssertionError("rpm file does not exist: ${rpm.getAbsolutePath()}") + +def proc = ["rpm", "-qpR", rpm.getAbsolutePath()].execute() +proc.waitFor() +if (!proc.in.text.contains("rpm-dependency-based-requires-rpm-dep >= 8.1-rel")) + throw new AssertionError("Dependency to rpm-dependency-based-requires-rpm-dep missing!") + +return true