[108992] branches/gsoc13-tests/src/package1.0/tests/portrpm.test
marius at macports.org
marius at macports.org
Mon Aug 5 14:24:32 PDT 2013
Revision: 108992
https://trac.macports.org/changeset/108992
Author: marius at macports.org
Date: 2013-08-05 14:24:32 -0700 (Mon, 05 Aug 2013)
Log Message:
-----------
portrpm.test: cannot create rpm file
Modified Paths:
--------------
branches/gsoc13-tests/src/package1.0/tests/portrpm.test
Modified: branches/gsoc13-tests/src/package1.0/tests/portrpm.test
===================================================================
--- branches/gsoc13-tests/src/package1.0/tests/portrpm.test 2013-08-05 21:10:39 UTC (rev 108991)
+++ branches/gsoc13-tests/src/package1.0/tests/portrpm.test 2013-08-05 21:24:32 UTC (rev 108992)
@@ -13,23 +13,23 @@
test rpm_main {
Rpm pkg unit test.
+} -constraints {
+ ![catch {exec which rpmbuild}]
} -setup {
- if {[catch {exec which rpmbuild}] != 0} {
- return "FAIL: missing rpm package. try 'port install rpm'"
- }
-
global os.platform os.major os.arch epoch destpath package.destpath configure.build_arch
global subport version revision package.flat maintainers description categories
global supported_archs portname porturl portdbpath workpath license
env_init
- file mkdir $workpath
- file mkdir $portdbpath
+} -body {
+ set mport [mportopen file://.]
+ set workername [ditem_key $mport workername]
-} -body {
- set res [portrpm::rpm_main]
+ set res [$workername eval eval_targets rpm]
puts $res
+ #if {![file exists /opt/local/src/macports/RPMS/x86_64/fondu-060102-1.x86_64.rpm]} {}
+
return "Rpm pkg successful."
} -result "Rpm pkg successful."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130805/78b0eb7c/attachment.html>
More information about the macports-changes
mailing list