Diff of the two buildlogs: -- --- b1/build.log 2024-12-08 09:48:57.530338052 +0000 +++ b2/build.log 2024-12-08 09:57:18.867576286 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sat Dec 7 21:46:23 -12 2024 -I: pbuilder-time-stamp: 1733651183 +I: Current time: Sun Dec 8 23:49:13 +14 2024 +I: pbuilder-time-stamp: 1733651353 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -25,52 +25,84 @@ dpkg-source: info: unpacking cliphist_0.5.0-1.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/7614/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/2642/tmp/hooks/D01_modify_environment starting +debug: Running on wbq0. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Dec 8 09:50 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/2642/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/2642/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='armhf' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=3 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='armhf' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="32" [3]="1" [4]="release" [5]="arm-unknown-linux-gnueabihf") + BASH_VERSION='5.2.32(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=armhf + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=4 ' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf IFS=' ' - INVOCATION_ID='9b7abb83ef1a4b43ba9094da42aa2b03' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='7614' - PS1='# ' - PS2='> ' + INVOCATION_ID=516eebe1bb8b4498b87e1761bedda765 + LANG=C + LANGUAGE=it_CH:it + LC_ALL=C + MACHTYPE=arm-unknown-linux-gnueabihf + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnueabihf + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=2642 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.WdaaW6eM/pbuilderrc_QYUO --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.WdaaW6eM/b1 --logfile b1/build.log cliphist_0.5.0-1.dsc' - SUDO_GID='113' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://10.0.0.15:3142/' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.WdaaW6eM/pbuilderrc_yBxH --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.WdaaW6eM/b2 --logfile b2/build.log cliphist_0.5.0-1.dsc' + SUDO_GID=113 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://10.0.0.15:3142/ I: uname -a - Linux virt64c 6.1.0-28-arm64 #1 SMP Debian 6.1.119-1 (2024-11-22) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-28-armmp #1 SMP Debian 6.1.119-1 (2024-11-22) armv7l GNU/Linux I: ls -l /bin lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/7614/tmp/hooks/D02_print_environment finished +I: user script /srv/workspace/pbuilder/2642/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -172,7 +204,7 @@ Get: 52 http://deb.debian.org/debian trixie/main armhf golang-golang-x-tools-dev all 1:0.23.0+ds-1 [1593 kB] Get: 53 http://deb.debian.org/debian trixie/main armhf golang-github-rogpeppe-go-internal-dev all 1.12.0-3 [103 kB] Get: 54 http://deb.debian.org/debian trixie/main armhf golang-golang-x-image-dev all 0.18.0-1 [3000 kB] -Fetched 74.3 MB in 2s (48.4 MB/s) +Fetched 74.3 MB in 9s (8085 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package sensible-utils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19685 files and directories currently installed.) @@ -403,7 +435,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/cliphist-0.5.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../cliphist_0.5.0-1_source.changes +I: user script /srv/workspace/pbuilder/2642/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/2642/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/cliphist-0.5.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../cliphist_0.5.0-1_source.changes dpkg-buildpackage: info: source package cliphist dpkg-buildpackage: info: source version 0.5.0-1 dpkg-buildpackage: info: source distribution unstable @@ -421,38 +457,38 @@ dh_autoreconf -O--builddirectory=_build -O--buildsystem=golang dh_auto_configure -O--builddirectory=_build -O--buildsystem=golang dh_auto_build -O--builddirectory=_build -O--buildsystem=golang - cd _build && go install -trimpath -v -p 3 github.com/sentriz/cliphist + cd _build && go install -trimpath -v -p 4 github.com/sentriz/cliphist internal/goarch internal/unsafeheader -internal/cpu internal/byteorder +internal/cpu +internal/coverage/rtcov internal/abi internal/chacha8rand -internal/bytealg -internal/coverage/rtcov internal/godebugs internal/goexperiment internal/goos +internal/bytealg internal/profilerecord internal/runtime/atomic internal/runtime/syscall internal/stringslite runtime/internal/math runtime/internal/sys -internal/runtime/exithook internal/race sync/atomic unicode +internal/runtime/exithook unicode/utf8 cmp -runtime math/bits internal/asan internal/itoa internal/msan -math encoding image/color +math +runtime image/color/palette iter internal/reflectlite @@ -462,27 +498,27 @@ internal/bisect errors sort -io +internal/godebug internal/oserror +io path -internal/godebug -bytes -strings syscall strconv -bufio +bytes +strings hash hash/fnv +bufio +hash/adler32 reflect +hash/crc32 image -time +image/internal/imageutil internal/syscall/unix +time internal/syscall/execenv -image/internal/imageutil image/draw image/jpeg -hash/adler32 -hash/crc32 io/fs internal/poll embed @@ -492,19 +528,19 @@ encoding/binary golang.org/x/image/bmp golang.org/x/sys/unix -path/filepath fmt +path/filepath encoding/hex -flag compress/lzw -image/gif +flag compress/flate +image/gif compress/zlib image/png go.etcd.io/bbolt github.com/sentriz/cliphist dh_auto_test -O--builddirectory=_build -O--buildsystem=golang - cd _build && go test -vet=off -v -p 3 github.com/sentriz/cliphist + cd _build && go test -vet=off -v -p 4 github.com/sentriz/cliphist === RUN TestScripts === RUN TestScripts/clipboard-state-env-clear === PAUSE TestScripts/clipboard-state-env-clear @@ -544,99 +580,11 @@ === PAUSE TestScripts/wipe === CONT TestScripts/clipboard-state-env-clear === CONT TestScripts/multi-line -=== CONT TestScripts/invalid-usage -=== CONT TestScripts/wipe -=== NAME TestScripts/invalid-usage - testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2894560223/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games - GOTRACEBACK=system - HOME=$WORK - TMPDIR=$WORK/.tmp - devnull=/dev/null - /=/ - :=: - $=$ - exe= - XDG_CACHE_HOME=$WORK - - > ! exec cliphist - [stderr] - usage: - $ cliphist - options: - -max-dedupe-search (default 100) - maximum number of last items to look through when finding duplicates - -max-items (default 750) - maximum number of items to store - [exit status 1] - > ! stdout . - > stderr '^usage:' - > stderr '^options:' - > ! exec cliphist hello - [stderr] - usage: - $ cliphist - options: - -max-dedupe-search (default 100) - maximum number of last items to look through when finding duplicates - -max-items (default 750) - maximum number of items to store - [exit status 1] - > ! stdout . - > stderr '^usage:' - > stderr '^options:' - > ! exec cliphist -unknown - [stderr] - flag provided but not defined: -unknown - usage: - $ cliphist - options: - -max-dedupe-search (default 100) - maximum number of last items to look through when finding duplicates - -max-items (default 750) - maximum number of items to store - [exit status 1] - > ! stdout . - > stderr '^usage:' - > stderr '^options:' - # should store first (0.094s) - > ! exec cliphist list - [stderr] - opening db: please store something first - [exit status 1] - > stderr 'please store something first' - > exec rand 16 - [stdout] - s - /es%8> exec cliphist store - # delete query (0.004s) - > ! exec cliphist delete-query - [stderr] - please provide a query - [exit status 1] - > ! stdout . - > stderr 'please provide a query' - # decode id check (0.004s) - > ! exec cliphist decode - [stderr] - extracting id: input not prefixed with id - [exit status 1] - > ! stdout . - > stderr 'input not prefixed with id' - # invalid id (0.005s) - > stdin in-invalid-id - > ! exec cliphist decode - [stderr] - extracting id: converting id: strconv.Atoi: parsing "a": invalid syntax - [exit status 1] - > ! stdout . - > stderr 'parsing "a": invalid syntax' - PASS - +=== CONT TestScripts/test-image-and-preview-jpg === CONT TestScripts/multi-line-text-preview === NAME TestScripts/multi-line testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2894560223/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2338448775/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -649,114 +597,44 @@ > exec rand 2048 [stdout] - Y!K W ry*e @MGٖh$T^?;o l:/t݄9|zt+Aez?˳Qꭶ{rmI?kE`PKgwC0it|ڵuTw1P`)\7p Qh)_@'0h2tڇqާ #V؉OӮK˘璑(,%Kyk 1O ~h2'I]}#eRH5G-bsS|IwMp:}['ssP+HZb% - t - b+ | pxPP&7´[TN]zE,{>҅,D\ 4۰ǹK?ݺd?jӯsCJn&12Opޜ=ovNhsӾ7!I=yI(\6/@'a Nb`:Ԋasz( - D-(u[cb٭c⎨Wp`4sӦ3%H4RL c٭Kx\6"uɃP|Ý!}c!ees~O3!#2Y.cjs7^ Rk־D4{i?<xr#.߄VX{ti) - d;Z-7}Cljr|k,."U{b~Rqoі - 4E<@ r|}x6U ~gq - y2H‐PEf*6r|uePaD|H [|>N"- PYF(Fχrq{&X5wt m- )o jK kq!K%UO>?f~@Q:<ȻE"òJ}C-a hļ&paaPlo괊\[mrGW^*%}p0n}J9߹c w&Wkq?0k3:|Ѣ=/ Q} - 0%ʣlbOgţtPe|Bv~𥉉LF3c߀8!FJR3#f֋VZ xzMMjaH:\f" B[}=Svj dj1/O uC\aJ2/pV 05p.LѼn+t PHGKqUsr!)[Xnk#m=1R *Kv5ݱ߭rO}g<*>҃ - :> cp stdout data-in + Om275zbTn_tcl̳)B}G!|L*E^59g M Tmj~>%݇8k \sVU $C> + D]=s&ܺ{}a2¤Ұuٗ^q|WB)K XAt$sVRXmTj\pz߇f4gXb$Ï])=d;OwōYztoItu-Łmu7;v\ + ZлϴB+Ng= JŐۈ?·9LLl_[eݔa(qs6ꭰ{kŝ[_jn>A7>7!JvIQ!]\X:ol8]ff9f6ɽ?!Xl$j`;R NJTwٰ)e!#Qˬ۪i&3}[1N)v:Wl%{h}# hL#XP1e[ Ou-.[^Fd^tcz@;vU3Z'L:DK)˺>J-_#ݐ7T]SP'G'Lqӽ>@KG25e#N{"һ2F1?A'PzF+U?{!9aClLe=1 ċ', + LӮϬ`;0n,@T_]Ձ3nQ}/_a xiY[ќ9,{hk*T5S0`dz91yѨCij  #Ώ}2:x"g7E>z$yK튵iKԆ Mw;;Zȼ{y\IjYp:֍20/Lt/GC;.s:U_q|GXwz氺\AȖ^3nl+S@:QYC߲ K0L_6b=R#[\5~.iWv~ߕ~n: + +!<$`ধ}pKܥndyUd{3R_L#Tkn Hyr.JɎ)SW5}Je2+=應j=|7!rHsԾGSws!ُtc/yv + p>~l}?g+a^ѩr n% + ЩMV1kM|$ڕ@4eQM f t9И+׊(-T3C;oF`S~]kTuCЀ{e*c!*pcy@Os-J* L]9 Zl7Rwzr;CJrE٥@}huͅE&> * 'Q 6U YaiL y= x#贷/ȮvܱÙ ˇB&mӡ+xL 𰙃5_wɈh/xa`V-7s!.\Ot>Ӣ!U#,Wx#n޲SK&ޔQ0i&g)̵'7,)ʸ̊HmUR<99GwL$֚cIq~C{GĕDPr&#*> + >3Kqsf@eӹ '7-DՅi'3Y;>)&~R#ɿ{ A!Bt9 + )E&(]iQ)PF0+2v!C_/kaPOyzʡ]u(N$ϛJг &6E^: + 7\^/p#yA0+W9KXkI$6n5qx~%d[+9< + D'gdJC:\@٣9`> aI9Xzv\׮.@̔a + iORJMD + 8eS[ yӐ> cp stdout data-in > stdin data-in > exec cliphist store > stdin query > exec cliphist decode [stdout] - Y!K W ry*e @MGٖh$T^?;o l:/t݄9|zt+Aez?˳Qꭶ{rmI?kE`PKgwC0it|ڵuTw1P`)\7p Qh)_@'0h2tڇqާ #V؉OӮK˘璑(,%Kyk 1O ~h2'I]}#eRH5G-bsS|IwMp:}['ssP+HZb% - t - b+ | pxPP&7´[TN]zE,{>҅,D\ 4۰ǹK?ݺd?jӯsCJn&12Opޜ=ovNhsӾ7!I=yI(\6/@'a Nb`:Ԋasz( - D-(u[cb٭c⎨Wp`4sӦ3%H4RL c٭Kx\6"uɃP|Ý!}c!ees~O3!#2Y.cjs7^ Rk־D4{i?<xr#.߄VX{ti) - d;Z-7}Cljr|k,."U{b~Rqoі - 4E<@ r|}x6U ~gq - y2H‐PEf*6r|uePaD|H [|>N"- PYF(Fχrq{&X5wt m- )o jK kq!K%UO>?f~@Q:<ȻE"òJ}C-a hļ&paaPlo괊\[mrGW^*%}p0n}J9߹c w&Wkq?0k3:|Ѣ=/ Q} - 0%ʣlbOgţtPe|Bv~𥉉LF3c߀8!FJR3#f֋VZ xzMMjaH:\f" B[}=Svj dj1/O uC\aJ2/pV 05p.LѼn+t PHGKqUsr!)[Xnk#m=1R *Kv5ݱ߭rO}g<*>҃ - :> cp stdout data-out + Om275zbTn_tcl̳)B}G!|L*E^59g M Tmj~>%݇8k \sVU $C> + D]=s&ܺ{}a2¤Ұuٗ^q|WB)K XAt$sVRXmTj\pz߇f4gXb$Ï])=d;OwōYztoItu-Łmu7;v\ + ZлϴB+Ng= JŐۈ?·9LLl_[eݔa(qs6ꭰ{kŝ[_jn>A7>7!JvIQ!]\X:ol8]ff9f6ɽ?!Xl$j`;R NJTwٰ)e!#Qˬ۪i&3}[1N)v:Wl%{h}# hL#XP1e[ Ou-.[^Fd^tcz@;vU3Z'L:DK)˺>J-_#ݐ7T]SP'G'Lqӽ>@KG25e#N{"һ2F1?A'PzF+U?{!9aClLe=1 ċ', + LӮϬ`;0n,@T_]Ձ3nQ}/_a xiY[ќ9,{hk*T5S0`dz91yѨCij  #Ώ}2:x"g7E>z$yK튵iKԆ Mw;;Zȼ{y\IjYp:֍20/Lt/GC;.s:U_q|GXwz氺\AȖ^3nl+S@:QYC߲ K0L_6b=R#[\5~.iWv~ߕ~n: + +!<$`ধ}pKܥndyUd{3R_L#Tkn Hyr.JɎ)SW5}Je2+=應j=|7!rHsԾGSws!ُtc/yv + p>~l}?g+a^ѩr n% + ЩMV1kM|$ڕ@4eQM f t9И+׊(-T3C;oF`S~]kTuCЀ{e*c!*pcy@Os-J* L]9 Zl7Rwzr;CJrE٥@}huͅE&> * 'Q 6U YaiL y= x#贷/ȮvܱÙ ˇB&mӡ+xL 𰙃5_wɈh/xa`V-7s!.\Ot>Ӣ!U#,Wx#n޲SK&ޔQ0i&g)̵'7,)ʸ̊HmUR<99GwL$֚cIq~C{GĕDPr&#*> + >3Kqsf@eӹ '7-DՅi'3Y;>)&~R#ɿ{ A!Bt9 + )E&(]iQ)PF0+2v!C_/kaPOyzʡ]u(N$ϛJг &6E^: + 7\^/p#yA0+W9KXkI$6n5qx~%d[+9< + D'gdJC:\@٣9`> aI9Xzv\׮.@̔a + iORJMD + 8eS[ yӐ> cp stdout data-out > cmp data-in data-out PASS === CONT TestScripts/max-dedupe -=== NAME TestScripts/clipboard-state-env-clear - testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2894560223/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games - GOTRACEBACK=system - HOME=$WORK - TMPDIR=$WORK/.tmp - devnull=/dev/null - /=/ - :=: - $=$ - exe= - XDG_CACHE_HOME=$WORK - - > stdin in-1 - > exec cliphist store - > stdin in-2 - > exec cliphist store - > stdin in-3 - > exec cliphist store - > exec cliphist list - [stdout] - 3 test input 3 - 2 test input 2 - 1 test input 1 - > cmp stdout out-before - > env CLIPBOARD_STATE=clear - > exec cliphist store - > exec cliphist list - [stdout] - 2 test input 2 - 1 test input 1 - > cmp stdout out-after - PASS - -=== CONT TestScripts/list-order -=== NAME TestScripts/wipe - testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2894560223/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games - GOTRACEBACK=system - HOME=$WORK - TMPDIR=$WORK/.tmp - devnull=/dev/null - /=/ - :=: - $=$ - exe= - XDG_CACHE_HOME=$WORK - - > exec rand 16 - [stdout] - "myn/X8O> stdin stdout - > exec cliphist store - > exec rand 16 - [stdout] - J|jH+> stdin stdout - > exec cliphist store - > exec rand 16 - [stdout] - pͫM6U? - t> stdin stdout - > exec cliphist store - > exec cliphist wipe - > ! stdout . - > exec cliphist list - > ! stdout . - PASS - -=== CONT TestScripts/test-image-and-preview-gif === NAME TestScripts/multi-line-text-preview testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2894560223/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2338448775/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -769,13 +647,13 @@ > stdin in > exec cliphist store - # preview should be flat (0.005s) + # preview should be flat (0.048s) > exec cliphist list [stdout] 1 a b c d e f g h i j > stdout '^1 a b c d e f g h i j$' > stdout -count=1 '^.' - # but what's stored should be identical (0.005s) + # but what's stored should be identical (0.065s) > stdin query > exec cliphist decode [stdout] @@ -787,9 +665,10 @@ > cmp in out PASS -=== CONT TestScripts/version +=== CONT TestScripts/list-order +=== NAME TestScripts/test-image-and-preview-jpg testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2894560223/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2338448775/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -800,16 +679,38 @@ exe= XDG_CACHE_HOME=$WORK - > exec cliphist version - [stderr] - 0.5.0 - > stderr '^\d+\.\d+\.\d+$' + > exec jpg + [stdout] +   +   $.' ",#(7),01444'9=82<.342  2!!22222222222222222222222222222222222222222222222222" + }!1AQa"q2#BR$3br + %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz + w!1AQaq"2B #3Rbr + $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?((((> cp stdout in.jpg + > stdin stdout + > exec cliphist store + # check we render preview (0.124s) + > exec cliphist list + [stdout] + 1 [[ binary data 609 B jpeg 20x20 ]] + > stdout '\[\[ binary data \d+ B jpeg 20x20 \]\]' + > stdin query + > exec cliphist decode + [stdout] +   +   $.' ",#(7),01444'9=82<.342  2!!22222222222222222222222222222222222222222222222222" + }!1AQa"q2#BR$3br + %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz + w!1AQaq"2B #3Rbr + $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?((((> cp stdout out.jpg + # check we didn't lose any bytes (0.000s) + > cmp in.jpg out.jpg PASS -=== CONT TestScripts/test-image-and-preview-png -=== NAME TestScripts/list-order +=== CONT TestScripts/invalid-usage +=== NAME TestScripts/clipboard-state-env-clear testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2894560223/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2338448775/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -831,13 +732,20 @@ 3 test input 3 2 test input 2 1 test input 1 - > cmp stdout out + > cmp stdout out-before + > env CLIPBOARD_STATE=clear + > exec cliphist store + > exec cliphist list + [stdout] + 2 test input 2 + 1 test input 1 + > cmp stdout out-after PASS -=== CONT TestScripts/test-image-and-preview-jpg -=== NAME TestScripts/test-image-and-preview-gif +=== CONT TestScripts/delete +=== NAME TestScripts/list-order testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2894560223/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2338448775/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -848,28 +756,24 @@ exe= XDG_CACHE_HOME=$WORK - > exec gif - [stdout] - GIF89aDDDDDDDD̈UUUULILIݓ"""ffffUOUOU333wwww]U]DDDDDDDDDDDDDDDDDDDDDD̈DDUUULIUUUUULLIILLLLIIIIIݓIOfffUOfffffUUOOUUUUOOOOOUUwww]Uwwwww]]UU]]]]UUUÜDDDDD̈D̈D̈̈DLݙLLLLIݙLݓIݓݙUUUUUOUO]]]]]U]UDDDDD̈̈D̈̈D̈DIIIIIݓݓIݓݓIݓIOOOOOOOOUUUUUUUU,"H*\ȰÇ#JHŋ3jh1 ;> cp stdout in.gif - > stdin stdout + > stdin in-1 + > exec cliphist store + > stdin in-2 + > exec cliphist store + > stdin in-3 > exec cliphist store - # check we render preview (0.015s) > exec cliphist list [stdout] - 1 [[ binary data 829 B gif 20x20 ]] - > stdout '\[\[ binary data \d+ B gif 20x20 \]\]' - > stdin query - > exec cliphist decode - [stdout] - GIF89aDDDDDDDD̈UUUULILIݓ"""ffffUOUOU333wwww]U]DDDDDDDDDDDDDDDDDDDDDD̈DDUUULIUUUUULLIILLLLIIIIIݓIOfffUOfffffUUOOUUUUOOOOOUUwww]Uwwwww]]UU]]]]UUUÜDDDDD̈D̈D̈̈DLݙLLLLIݙLݓIݓݙUUUUUOUO]]]]]U]UDDDDD̈̈D̈̈D̈DIIIIIݓݓIݓݓIݓIOOOOOOOOUUUUUUUU,"H*\ȰÇ#JHŋ3jh1 ;> cp stdout out.gif - # check we didn't lose any bytes (0.000s) - > cmp in.gif out.gif + 3 test input 3 + 2 test input 2 + 1 test input 1 + > cmp stdout out PASS === CONT TestScripts/dedupe -=== NAME TestScripts/test-image-and-preview-png +=== NAME TestScripts/invalid-usage testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2894560223/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2338448775/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -880,32 +784,83 @@ exe= XDG_CACHE_HOME=$WORK - > exec png - [stdout] - PNG -  - IHDR IDATxbb25pQG 5p8)&IENDB`> cp stdout in.png - > stdin stdout - > exec cliphist store - # check we render preview (0.011s) - > exec cliphist list - [stdout] - 1 [[ binary data 87 B png 20x20 ]] - > stdout '\[\[ binary data \d+ B png 20x20 \]\]' - > stdin query - > exec cliphist decode + > ! exec cliphist + [stderr] + usage: + $ cliphist + options: + -max-dedupe-search (default 100) + maximum number of last items to look through when finding duplicates + -max-items (default 750) + maximum number of items to store + [exit status 1] + > ! stdout . + > stderr '^usage:' + > stderr '^options:' + > ! exec cliphist hello + [stderr] + usage: + $ cliphist + options: + -max-dedupe-search (default 100) + maximum number of last items to look through when finding duplicates + -max-items (default 750) + maximum number of items to store + [exit status 1] + > ! stdout . + > stderr '^usage:' + > stderr '^options:' + > ! exec cliphist -unknown + [stderr] + flag provided but not defined: -unknown + usage: + $ cliphist + options: + -max-dedupe-search (default 100) + maximum number of last items to look through when finding duplicates + -max-items (default 750) + maximum number of items to store + [exit status 1] + > ! stdout . + > stderr '^usage:' + > stderr '^options:' + # should store first (0.152s) + > ! exec cliphist list + [stderr] + opening db: please store something first + [exit status 1] + > stderr 'please store something first' + > exec rand 16 [stdout] - PNG -  - IHDR IDATxbb25pQG 5p8)&IENDB`> cp stdout out.png - # check we didn't lose any bytes (0.000s) - > cmp in.png out.png + o؍ύP]Ha> exec cliphist store + # delete query (0.037s) + > ! exec cliphist delete-query + [stderr] + please provide a query + [exit status 1] + > ! stdout . + > stderr 'please provide a query' + # decode id check (0.039s) + > ! exec cliphist decode + [stderr] + extracting id: input not prefixed with id + [exit status 1] + > ! stdout . + > stderr 'input not prefixed with id' + # invalid id (0.041s) + > stdin in-invalid-id + > ! exec cliphist decode + [stderr] + extracting id: converting id: strconv.Atoi: parsing "a": invalid syntax + [exit status 1] + > ! stdout . + > stderr 'parsing "a": invalid syntax' PASS -=== CONT TestScripts/delete +=== CONT TestScripts/decode-by-argument === NAME TestScripts/max-dedupe testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2894560223/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2338448775/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -920,40 +875,40 @@ > exec cliphist store > exec rand 8 [stdout] - \ 6> stdin stdout + :Wv> stdin stdout > exec cliphist store > stdin in > exec cliphist store > exec cliphist list [stdout] 3 test line - 2 \ 6 + 2 :Wv > stdout -count=2 '^.' > exec rand 8 [stdout] - ^> stdin stdout + `膘b> stdin stdout > exec cliphist store > exec cliphist list [stdout] - 4 ^ + 4 `膘b 3 test line - 2 \ 6 + 2 :Wv > stdout -count=3 '^.' > stdin in > exec cliphist -max-dedupe-search=0 store > exec cliphist list [stdout] 5 test line - 4 ^ + 4 `膘b 3 test line - 2 \ 6 + 2 :Wv > stdout -count=4 '^.' PASS -=== CONT TestScripts/decode-by-argument -=== NAME TestScripts/test-image-and-preview-jpg +=== CONT TestScripts/clipboard-state-env-sensitive +=== NAME TestScripts/dedupe testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2894560223/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2338448775/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -964,38 +919,57 @@ exe= XDG_CACHE_HOME=$WORK - > exec jpg - [stdout] -   -   $.' ",#(7),01444'9=82<.342  2!!22222222222222222222222222222222222222222222222222" - }!1AQa"q2#BR$3br - %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz - w!1AQaq"2B #3Rbr - $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?((((> cp stdout in.jpg - > stdin stdout + > stdin in-a + > exec cliphist store + > stdin in-b + > exec cliphist store + > stdin in-a + > exec cliphist store + > stdin in-b > exec cliphist store - # check we render preview (0.009s) > exec cliphist list [stdout] - 1 [[ binary data 609 B jpeg 20x20 ]] - > stdout '\[\[ binary data \d+ B jpeg 20x20 \]\]' - > stdin query - > exec cliphist decode + 4 my other test input + 3 my test input + > cmp stdout out + PASS + +=== CONT TestScripts/test-image-and-preview-gif +=== NAME TestScripts/delete + testscript.go:558: WORK=$WORK + PATH=/tmp/testscript-main2338448775/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + GOTRACEBACK=system + HOME=$WORK + TMPDIR=$WORK/.tmp + devnull=/dev/null + /=/ + :=: + $=$ + exe= + XDG_CACHE_HOME=$WORK + + > stdin in-good + > exec cliphist store + > stdin in-bad-1 + > exec cliphist store + > stdin in-bad-2 + > exec cliphist store + > stdin in-bad-3 + > exec cliphist store + > stdin delete-query + > exec cliphist delete + > exec cliphist delete-query 'bad-3' + > exec cliphist delete-query 'i dont exist' + > exec cliphist list [stdout] -   -   $.' ",#(7),01444'9=82<.342  2!!22222222222222222222222222222222222222222222222222" - }!1AQa"q2#BR$3br - %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz - w!1AQaq"2B #3Rbr - $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?((((> cp stdout out.jpg - # check we didn't lose any bytes (0.000s) - > cmp in.jpg out.jpg + 1 im a test + > cmp stdout out PASS -=== CONT TestScripts/store-limit +=== CONT TestScripts/test-image-and-preview-bmp === NAME TestScripts/decode-by-argument testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2894560223/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2338448775/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -1028,10 +1002,10 @@ > stderr 'input not prefixed with id' PASS -=== CONT TestScripts/test-image-and-preview-bmp -=== NAME TestScripts/dedupe +=== CONT TestScripts/store-limit +=== NAME TestScripts/test-image-and-preview-gif testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2894560223/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2338448775/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -1042,24 +1016,60 @@ exe= XDG_CACHE_HOME=$WORK - > stdin in-a - > exec cliphist store - > stdin in-b - > exec cliphist store - > stdin in-a - > exec cliphist store - > stdin in-b + > exec gif + [stdout] + GIF89aDDDDDDDD̈UUUULILIݓ"""ffffUOUOU333wwww]U]DDDDDDDDDDDDDDDDDDDDDD̈DDUUULIUUUUULLIILLLLIIIIIݓIOfffUOfffffUUOOUUUUOOOOOUUwww]Uwwwww]]UU]]]]UUUÜDDDDD̈D̈D̈̈DLݙLLLLIݙLݓIݓݙUUUUUOUO]]]]]U]UDDDDD̈̈D̈̈D̈DIIIIIݓݓIݓݓIݓIOOOOOOOOUUUUUUUU,"H*\ȰÇ#JHŋ3jh1 ;> cp stdout in.gif + > stdin stdout > exec cliphist store + # check we render preview (0.103s) > exec cliphist list [stdout] - 4 my other test input - 3 my test input - > cmp stdout out + 1 [[ binary data 829 B gif 20x20 ]] + > stdout '\[\[ binary data \d+ B gif 20x20 \]\]' + > stdin query + > exec cliphist decode + [stdout] + GIF89aDDDDDDDD̈UUUULILIݓ"""ffffUOUOU333wwww]U]DDDDDDDDDDDDDDDDDDDDDD̈DDUUULIUUUUULLIILLLLIIIIIݓIOfffUOfffffUUOOUUUUOOOOOUUwww]Uwwwww]]UU]]]]UUUÜDDDDD̈D̈D̈̈DLݙLLLLIݙLݓIݓݙUUUUUOUO]]]]]U]UDDDDD̈̈D̈̈D̈DIIIIIݓݓIݓݓIݓIOOOOOOOOUUUUUUUU,"H*\ȰÇ#JHŋ3jh1 ;> cp stdout out.gif + # check we didn't lose any bytes (0.000s) + > cmp in.gif out.gif PASS === CONT TestScripts/no-permission +=== NAME TestScripts/test-image-and-preview-bmp + testscript.go:558: WORK=$WORK + PATH=/tmp/testscript-main2338448775/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + GOTRACEBACK=system + HOME=$WORK + TMPDIR=$WORK/.tmp + devnull=/dev/null + /=/ + :=: + $=$ + exe= + XDG_CACHE_HOME=$WORK + + > exec bmp + [stdout] + BMv6( @> cp stdout in.bmp + > stdin stdout + > exec cliphist store + # check we render preview (0.181s) + > exec cliphist list + [stdout] + 1 [[ binary data 2 KiB bmp 20x20 ]] + > stdout '\[\[ binary data \d+ KiB bmp 20x20 \]\]' + > stdin query + > exec cliphist decode + [stdout] + BMv6( @> cp stdout out.bmp + # check we didn't lose any bytes (0.000s) + > cmp in.bmp out.bmp + PASS + +=== CONT TestScripts/version +=== NAME TestScripts/no-permission testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2894560223/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2338448775/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -1074,7 +1084,7 @@ > chmod 111 $XDG_CACHE_HOME > exec rand 8 [stdout] - hPáp> stdin stdout + EJ> stdin stdout > ! exec cliphist store [stderr] opening db: create cache dir: mkdir $WORK/cliphist: permission denied @@ -1083,10 +1093,10 @@ > stderr 'permission denied' PASS -=== CONT TestScripts/clipboard-state-env-sensitive -=== NAME TestScripts/store-limit +=== CONT TestScripts/wipe +=== NAME TestScripts/version testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2894560223/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2338448775/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -1097,39 +1107,50 @@ exe= XDG_CACHE_HOME=$WORK - > exec rand 16 - [stdout] - JbXyy3㵰> stdin stdout - > exec cliphist -max-items 2 store - > exec rand 16 - [stdout] - Y/2MJӦy> stdin stdout - > exec cliphist -max-items 2 store - > exec rand 16 + > exec cliphist version + [stderr] + 0.5.0 + > stderr '^\d+\.\d+\.\d+$' + PASS + +=== CONT TestScripts/test-image-and-preview-png +=== NAME TestScripts/clipboard-state-env-sensitive + testscript.go:558: WORK=$WORK + PATH=/tmp/testscript-main2338448775/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + GOTRACEBACK=system + HOME=$WORK + TMPDIR=$WORK/.tmp + devnull=/dev/null + /=/ + :=: + $=$ + exe= + XDG_CACHE_HOME=$WORK + + > env CLIPBOARD_STATE=data + > exec rand 8 [stdout] - c2-e> stdin stdout - > exec cliphist -max-items 2 store - # we only kept 2 (0.046s) + HйJ> stdin stdout + > exec cliphist store + # check 1 item with CLIPBOARD_STATE=data (0.307s) > exec cliphist list [stdout] - 3 c2-e - 2 Y/2MJӦy - > ! stdout '^1\t' - > stdout '^2\t' - > stdout '^3\t' - > exec rand 16 + 1 HйJ + > stdout -count=1 '^.' + > exec cliphist wipe + > env CLIPBOARD_STATE=sensitive + > exec rand 8 [stdout] - v{x,D,8> stdin stdout - > exec cliphist -max-items 0 store - # 0 clears the lot (0.009s) + &BC> stdin stdout + > exec cliphist store + # check 0 items with CLIPBOARD_STATE=sensitive (0.092s) > exec cliphist list > ! stdout . - > ! stderr . PASS -=== NAME TestScripts/test-image-and-preview-bmp +=== NAME TestScripts/test-image-and-preview-png testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2894560223/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2338448775/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -1140,27 +1161,31 @@ exe= XDG_CACHE_HOME=$WORK - > exec bmp + > exec png [stdout] - BMv6( @> cp stdout in.bmp + PNG +  + IHDR IDATxbb25pQG 5p8)&IENDB`> cp stdout in.png > stdin stdout > exec cliphist store - # check we render preview (0.014s) + # check we render preview (0.059s) > exec cliphist list [stdout] - 1 [[ binary data 2 KiB bmp 20x20 ]] - > stdout '\[\[ binary data \d+ KiB bmp 20x20 \]\]' + 1 [[ binary data 87 B png 20x20 ]] + > stdout '\[\[ binary data \d+ B png 20x20 \]\]' > stdin query > exec cliphist decode [stdout] - BMv6( @> cp stdout out.bmp + PNG +  + IHDR IDATxbb25pQG 5p8)&IENDB`> cp stdout out.png # check we didn't lose any bytes (0.000s) - > cmp in.bmp out.bmp + > cmp in.png out.png PASS -=== NAME TestScripts/delete +=== NAME TestScripts/store-limit testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2894560223/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2338448775/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -1171,27 +1196,39 @@ exe= XDG_CACHE_HOME=$WORK - > stdin in-good - > exec cliphist store - > stdin in-bad-1 - > exec cliphist store - > stdin in-bad-2 - > exec cliphist store - > stdin in-bad-3 - > exec cliphist store - > stdin delete-query - > exec cliphist delete - > exec cliphist delete-query 'bad-3' - > exec cliphist delete-query 'i dont exist' + > exec rand 16 + [stdout] + GzUAS~> stdin stdout + > exec cliphist -max-items 2 store + > exec rand 16 + [stdout] + ՟J5ϭps> stdin stdout + > exec cliphist -max-items 2 store + > exec rand 16 + [stdout] + n ` #i> stdin stdout + > exec cliphist -max-items 2 store + # we only kept 2 (0.094s) > exec cliphist list [stdout] - 1 im a test - > cmp stdout out + 3 n ` #i + 2 ՟J5ϭps + > ! stdout '^1\t' + > stdout '^2\t' + > stdout '^3\t' + > exec rand 16 + [stdout] + ae1}4>h> stdin stdout + > exec cliphist -max-items 0 store + # 0 clears the lot (0.023s) + > exec cliphist list + > ! stdout . + > ! stderr . PASS -=== NAME TestScripts/clipboard-state-env-sensitive +=== NAME TestScripts/wipe testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2894560223/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2338448775/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -1202,48 +1239,45 @@ exe= XDG_CACHE_HOME=$WORK - > env CLIPBOARD_STATE=data - > exec rand 8 + > exec rand 16 [stdout] - YU7> stdin stdout + 1-2y!> stdin stdout > exec cliphist store - # check 1 item with CLIPBOARD_STATE=data (0.057s) - > exec cliphist list + > exec rand 16 [stdout] - 1 YU7 - > stdout -count=1 '^.' - > exec cliphist wipe - > env CLIPBOARD_STATE=sensitive - > exec rand 8 + $NC#>l.e`> stdin stdout + > exec cliphist store + > exec rand 16 [stdout] - ޙq> stdin stdout + AQ6w9h=> stdin stdout > exec cliphist store - # check 0 items with CLIPBOARD_STATE=sensitive (0.007s) + > exec cliphist wipe + > ! stdout . > exec cliphist list > ! stdout . PASS ---- PASS: TestScripts (0.00s) - --- PASS: TestScripts/invalid-usage (0.13s) - --- PASS: TestScripts/multi-line (0.14s) - --- PASS: TestScripts/clipboard-state-env-clear (0.20s) - --- PASS: TestScripts/wipe (0.22s) - --- PASS: TestScripts/multi-line-text-preview (0.11s) - --- PASS: TestScripts/version (0.01s) - --- PASS: TestScripts/list-order (0.18s) - --- PASS: TestScripts/test-image-and-preview-gif (0.17s) +--- PASS: TestScripts (0.01s) + --- PASS: TestScripts/multi-line (0.24s) + --- PASS: TestScripts/multi-line-text-preview (0.26s) + --- PASS: TestScripts/test-image-and-preview-jpg (0.31s) + --- PASS: TestScripts/clipboard-state-env-clear (0.41s) + --- PASS: TestScripts/list-order (0.28s) + --- PASS: TestScripts/invalid-usage (0.42s) + --- PASS: TestScripts/max-dedupe (0.58s) + --- PASS: TestScripts/dedupe (0.34s) + --- PASS: TestScripts/delete (0.55s) + --- PASS: TestScripts/decode-by-argument (0.38s) + --- PASS: TestScripts/test-image-and-preview-gif (0.24s) + --- PASS: TestScripts/test-image-and-preview-bmp (0.32s) + --- PASS: TestScripts/no-permission (0.19s) + --- PASS: TestScripts/version (0.05s) + --- PASS: TestScripts/clipboard-state-env-sensitive (0.52s) --- PASS: TestScripts/test-image-and-preview-png (0.18s) - --- PASS: TestScripts/max-dedupe (0.30s) - --- PASS: TestScripts/test-image-and-preview-jpg (0.12s) - --- PASS: TestScripts/decode-by-argument (0.19s) - --- PASS: TestScripts/dedupe (0.24s) - --- PASS: TestScripts/no-permission (0.01s) - --- PASS: TestScripts/store-limit (0.25s) - --- PASS: TestScripts/test-image-and-preview-bmp (0.16s) - --- PASS: TestScripts/delete (0.38s) - --- PASS: TestScripts/clipboard-state-env-sensitive (0.18s) + --- PASS: TestScripts/store-limit (0.53s) + --- PASS: TestScripts/wipe (0.33s) PASS -ok github.com/sentriz/cliphist 0.846s +ok github.com/sentriz/cliphist 1.692s create-stamp debian/debhelper-build-stamp dh_testroot -O--builddirectory=_build -O--buildsystem=golang dh_prep -O--builddirectory=_build -O--buildsystem=golang @@ -1281,12 +1315,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: including full source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/2642/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/2642/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/7614 and its subdirectories -I: Current time: Sat Dec 7 21:48:52 -12 2024 -I: pbuilder-time-stamp: 1733651332 +I: removing directory /srv/workspace/pbuilder/2642 and its subdirectories +I: Current time: Sun Dec 8 23:57:14 +14 2024 +I: pbuilder-time-stamp: 1733651834