diff --git a/src/it/test16-ghost/pom.xml b/src/it/test16-ghost/pom.xml new file mode 100644 index 0000000..44ed22f --- /dev/null +++ b/src/it/test16-ghost/pom.xml @@ -0,0 +1,91 @@ + + + 4.0.0 + + de.dentrassi.maven.rpm.test + test16-ghost + 1.0.0-SNAPSHOT + jar + + Test Package #16 + + Test ghost file entry handling + + + http://dentrassi.de + + + Jens Reimann + http://dentrassi.de + + + + + Eclipse Public License - v 1.0 + repo + https://www.eclipse.org/legal/epl-v10.html + + + + + UTF-8 + UTF-8 + true + + + + + + + de.dentrassi.maven + rpm + @project.version@ + + + + rpm + + + Application/Misc + + test16.rpm + + + + /tmp/ghost-file-entry + true + root + root + 0644 + + + + + ${keyId} + ${user.home}/.gnupg/secring.gpg + ${passphrase} + SHA1 + ${skipSigning} + + + + + + + + + + + + sign + + false + + + false + + + + + diff --git a/src/it/test16-ghost/verify.groovy b/src/it/test16-ghost/verify.groovy new file mode 100644 index 0000000..eb4f680 --- /dev/null +++ b/src/it/test16-ghost/verify.groovy @@ -0,0 +1,16 @@ + +def flags ( options ) { + Process proc = ('rpm -l ' + options + ' -qp ' + basedir + "/target/test16.rpm").execute(); + return proc.in.getText().trim(); +} + +def all_files = flags(""); +println "Suggests: " + all_files; + +def noghost_files = flags("--noghost"); +println "Recommends: " + noghost_files; + +return + all_files == "./tmp/ghost-file-entry" && + noghost_files == "" + ;