<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/2c4e8613787829e232e82f1f4e89c72ba67f8511">https://github.com/macports/macports-base/commit/2c4e8613787829e232e82f1f4e89c72ba67f8511</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 2c4e8613 Test fixes
</span>2c4e8613 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 2c4e8613787829e232e82f1f4e89c72ba67f8511
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Tue Aug 30 22:59:34 2022 +1000
<span style='display:block; white-space:pre;color:#404040;'> Test fixes
</span>---
src/macports1.0/tests/macports.test | 2 +-
src/package1.0/tests/Portfile | 22 ++++++++--------------
src/package1.0/tests/portarchivefetch.test | 4 ++++
src/port1.0/tests/Portfile | 10 +++++++---
src/port1.0/tests/portclean.test | 2 +-
src/port1.0/tests/portinstall.test | 6 +++---
src/port1.0/tests/portload.test | 18 ++++++++++++++----
src/port1.0/tests/portpatch.test | 4 ++--
8 files changed, 40 insertions(+), 28 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/macports1.0/tests/macports.test b/src/macports1.0/tests/macports.test
</span><span style='display:block; white-space:pre;color:#808080;'>index 4b9eb398..f49462a0 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/macports1.0/tests/macports.test
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/macports1.0/tests/macports.test
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -148,7 +148,7 @@ test ch_logging {
</span> file delete -force $logname
} -body {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[macports::ch_logging $mport] != 0} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[catch {macports::ch_logging $mport}]} {
</span> return "FAIL: channels not set"
}
if {![file exists $logname]} {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/package1.0/tests/Portfile b/src/package1.0/tests/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index fc09bc36..1c97d46b 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/package1.0/tests/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/package1.0/tests/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,12 +5,10 @@ PortSystem 1.0
</span> name fondu
version 060102
revision 1
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span> categories print
license BSD
maintainers nomaintainer
homepage http://fondu.sourceforge.net/
<span style='display:block; white-space:pre;background:#ffe0e0;'>-master_sites http://fondu.sourceforge.net/
</span>
description A set of programs to interconvert between Mac font \
formats and pfb, ttf, otf and bdf files on UNIX.
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -22,23 +20,19 @@ long_description Dealing with Mac fonts is hard on other operating \
</span> from either a MacBinary file or a BinHex file. Ufond \
will create a resource fork inside a MacBinary file.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums md5 e20861beacddc1ab392bef7813641bf8
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-extract.suffix .tgz
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-distfiles ${name}_src-${version}${extract.suffix}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-post-patch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|^CFLAGS = -g \$(WFLAGS)|CFLAGS = -g \$(WFLAGS) ${configure.cppflags} ${configure.cflags} ${configure.ldflags} [get_canonical_archflags]|g" ${worksrcpath}/Makefile.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distfiles
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+extract {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${worksrcpath}
</span> }
# Avoid dependencies on libcxx and a macports-clang compiler, because
# the mpkg test is fragile and assumes no dependencies.
configure.cxx_stdlib
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.args --bindir=${prefix}/bin \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --mandir=${prefix}/share/man
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build {}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-post-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 644 {*}[glob ${worksrcpath}/*.1] ${destroot}${prefix}/share/man/man1/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ touch ${worksrcpath}/testfile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 644 ${worksrcpath}/testfile ${destroot}${prefix}/bin
</span> }
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-test.run yes
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/package1.0/tests/portarchivefetch.test b/src/package1.0/tests/portarchivefetch.test
</span><span style='display:block; white-space:pre;color:#808080;'>index 6a422342..29cf2499 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/package1.0/tests/portarchivefetch.test
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/package1.0/tests/portarchivefetch.test
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -23,6 +23,9 @@ namespace eval portutil {
</span> }
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+proc ui_progress_download {args} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> test filter_sites {
Filter sites unit test.
} -setup {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -101,6 +104,7 @@ test fetchfiles {
</span> } -body {
set archivefetch.pubkeys $pwd
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ set portutil::archive_available_result 0
</span> if {[catch {portarchivefetch::fetchfiles}] != 0} {
return "FAIL: cannot fetch archive"
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/port1.0/tests/Portfile b/src/port1.0/tests/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b3fd7b66..3d3a85e6 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/port1.0/tests/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/port1.0/tests/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -14,12 +14,16 @@ long_description ${description}
</span> homepage https://github.com/kelseyhightower/nocode
distfiles
<span style='display:block; white-space:pre;background:#e0ffe0;'>+extract {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${worksrcpath}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles
</span> patch {
foreach patch $patchfiles {
set fd [open ${filespath}/${patch} r]
set var [gets $fd]
close $fd
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set fd [open ${workpath}/${distname}/test_patch w+]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set fd [open ${worksrcpath}/test_patch w+]
</span> puts $fd $var
close $fd
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -27,8 +31,8 @@ patch {
</span> use_configure no
build {}
destroot {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- install -d -m755 ${destroot}${prefix}/share
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- install -d -m755 ${destroot}${prefix}/share/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${prefix}/share
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${prefix}/share/${name}
</span> touch ${destroot}${prefix}/share/${name}/EMPTY
}
test {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/port1.0/tests/portclean.test b/src/port1.0/tests/portclean.test
</span><span style='display:block; white-space:pre;color:#808080;'>index 9ec1e57a..8bf104c0 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/port1.0/tests/portclean.test
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/port1.0/tests/portclean.test
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -94,7 +94,7 @@ test clean_work {
</span> root
} -body {
set portpath portpath
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set subbuildpath /subbuild
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set subbuildpath $pwd/subbuild
</span> set worksymlink $pwd/symlink
# create files
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/port1.0/tests/portinstall.test b/src/port1.0/tests/portinstall.test
</span><span style='display:block; white-space:pre;color:#808080;'>index c55cefec..40114e01 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/port1.0/tests/portinstall.test
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/port1.0/tests/portinstall.test
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -30,9 +30,9 @@ set supported_archs {}
</span> set configure.build_arch build_arch
set portarchivetype tgz
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set subport gcc_select
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set version 0.1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set revision 4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set subport emptyport
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set version 0.2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set revision 0
</span>
test install_start {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/port1.0/tests/portload.test b/src/port1.0/tests/portload.test
</span><span style='display:block; white-space:pre;color:#808080;'>index 98ec2605..c71ffba7 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/port1.0/tests/portload.test
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/port1.0/tests/portload.test
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -13,6 +13,13 @@ array set ui_options {}
</span> #set ui_options(ports_verbose) yes
mportinit ui_options
<span style='display:block; white-space:pre;background:#e0ffe0;'>+set os_platform darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set os_version 20.0.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set os_arch i386
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set os_subplatform macosx
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set macos_version 11.0.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+package require port 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+package require portstartupitem 1.0
</span> package require portload 1.0
source ../port_autoconf.tcl
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -23,7 +30,7 @@ test load_main {
</span> root
} -setup {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set path /Library/test/files
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set path $pwd/opt/local/etc/test
</span> file mkdir $path
# Create dummy plist
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -43,7 +50,10 @@ test load_main {
</span> } -body {
set launchctl_path ${portutil::autoconf::launchctl_path}
set startupitem.location test
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set startupitem.plist files/file.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set startupitem.install no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set startupitem.plist file.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set prefix $pwd/opt/local
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set subport test
</span>
if {[portload::load_main] != ""} {
return "FAIL: unable to load plist"
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -51,8 +61,8 @@ test load_main {
</span> return "Load successful."
} -cleanup {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- exec -ignorestderr $launchctl_path unload -w $path
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file delete -force /Library/test
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ exec -ignorestderr $launchctl_path unload -w $path/file.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file delete -force $pwd/opt
</span>
} -result "Load successful."
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/port1.0/tests/portpatch.test b/src/port1.0/tests/portpatch.test
</span><span style='display:block; white-space:pre;color:#808080;'>index 28f84925..e15a04c2 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/port1.0/tests/portpatch.test
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/port1.0/tests/portpatch.test
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -37,7 +37,7 @@ test patch_main {
</span> } -setup {
set macos_version 11.0.1
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set subport gcc_select
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set subport emptyport
</span> set filespath $pwd/files
set distpath $pwd/dist
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -60,7 +60,7 @@ test patch_main {
</span> if {[$workername eval eval_targets patch]} {
return "FAIL: cannot run patch"
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![file exists $pwd/work/select-0.1/test_patch]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![file exists $pwd/work/emptyport-0.2/test_patch]} {
</span> return "FAIL: missing patched file"
}
return "Patch successful."
</pre><pre style='margin:0'>
</pre>