Diff of the two buildlogs: -- --- b1/build.log 2024-05-09 10:34:49.973273131 +0000 +++ b2/build.log 2024-05-09 10:35:32.875446968 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Wed May 8 22:33:48 -12 2024 -I: pbuilder-time-stamp: 1715250828 +I: Current time: Thu Jun 12 06:57:52 +14 2025 +I: pbuilder-time-stamp: 1749661072 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -26,54 +26,86 @@ 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/22590/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/14861/tmp/hooks/D01_modify_environment starting +debug: Running on ionos16-i386. +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 Jun 11 16:58 /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/14861/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/14861/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='i386' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=11 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='i386' + 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]="21" [3]="1" [4]="release" [5]="i686-pc-linux-gnu") + BASH_VERSION='5.2.21(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=i386 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=21 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='6eaf81c1edee456c9d4fe5e67335c163' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - LD_LIBRARY_PATH='/usr/lib/libeatmydata' - LD_PRELOAD='libeatmydata.so' - 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='22590' - PS1='# ' - PS2='> ' + INVOCATION_ID=b460bc8e1151481d96a9d0c41ef67c22 + LANG=C + LANGUAGE=de_CH:de + LC_ALL=C + LD_LIBRARY_PATH=/usr/lib/libeatmydata + LD_PRELOAD=libeatmydata.so + MACHTYPE=i686-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + 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=14861 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.mSH0sck6/pbuilderrc_CMGS --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.mSH0sck6/b1 --logfile b1/build.log cliphist_0.5.0-1.dsc' - SUDO_GID='112' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://46.16.76.132:3128' + 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.mSH0sck6/pbuilderrc_39sT --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.mSH0sck6/b2 --logfile b2/build.log cliphist_0.5.0-1.dsc' + SUDO_GID=112 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://213.165.73.152:3128 I: uname -a - Linux ionos12-i386 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 May 9 07:42 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/22590/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Jun 10 14:06 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/14861/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -175,7 +207,7 @@ Get: 52 http://deb.debian.org/debian unstable/main i386 golang-golang-x-tools-dev all 1:0.20.0+ds-1 [1571 kB] Get: 53 http://deb.debian.org/debian unstable/main i386 golang-github-rogpeppe-go-internal-dev all 1.12.0-3 [103 kB] Get: 54 http://deb.debian.org/debian unstable/main i386 golang-golang-x-image-dev all 0.15.0-1 [3006 kB] -Fetched 73.3 MB in 1s (60.5 MB/s) +Fetched 73.3 MB in 2s (44.9 MB/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 ... 19684 files and directories currently installed.) @@ -406,7 +438,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/14861/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/14861/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 @@ -424,33 +460,33 @@ 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 11 github.com/sentriz/cliphist -internal/unsafeheader + cd _build && go install -trimpath -v -p 21 github.com/sentriz/cliphist +encoding internal/goarch -internal/race +internal/unsafeheader +internal/goos internal/coverage/rtcov +internal/race +cmp +image/color internal/godebugs -internal/goexperiment -internal/goos +internal/itoa +runtime/internal/syscall sync/atomic -runtime/internal/atomic internal/cpu -unicode/utf8 +runtime/internal/atomic math/bits +unicode/utf8 +internal/goexperiment unicode -runtime/internal/syscall -internal/abi runtime/internal/math internal/chacha8rand +internal/abi runtime/internal/sys -cmp -internal/itoa -encoding -image/color -internal/bytealg -math slices +math image/color/palette +internal/bytealg runtime internal/reflectlite sync @@ -463,31 +499,31 @@ io strconv syscall +hash bytes strings -hash -hash/fnv hash/adler32 hash/crc32 +hash/fnv reflect bufio image -internal/syscall/unix -time -internal/syscall/execenv image/internal/imageutil image/draw image/jpeg +internal/syscall/execenv +internal/syscall/unix +time io/fs internal/poll -encoding/binary internal/fmtsort +encoding/binary embed os golang.org/x/image/bmp golang.org/x/sys/unix -path/filepath fmt +path/filepath encoding/hex flag compress/lzw @@ -498,7 +534,7 @@ 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 11 github.com/sentriz/cliphist + cd _build && go test -vet=off -v -p 21 github.com/sentriz/cliphist === RUN TestScripts === RUN TestScripts/clipboard-state-env-clear === PAUSE TestScripts/clipboard-state-env-clear @@ -539,19 +575,24 @@ === CONT TestScripts/clipboard-state-env-clear === CONT TestScripts/multi-line === CONT TestScripts/invalid-usage -=== CONT TestScripts/multi-line-text-preview === CONT TestScripts/delete -=== CONT TestScripts/test-image-and-preview-gif -=== CONT TestScripts/dedupe === CONT TestScripts/test-image-and-preview-jpg -=== CONT TestScripts/decode-by-argument +=== CONT TestScripts/wipe +=== CONT TestScripts/list-order +=== CONT TestScripts/store-limit +=== CONT TestScripts/no-permission +=== CONT TestScripts/test-image-and-preview-png +=== CONT TestScripts/clipboard-state-env-sensitive +=== CONT TestScripts/multi-line-text-preview +=== CONT TestScripts/version === CONT TestScripts/max-dedupe +=== CONT TestScripts/decode-by-argument +=== CONT TestScripts/dedupe +=== CONT TestScripts/test-image-and-preview-gif === CONT TestScripts/test-image-and-preview-bmp -=== CONT TestScripts/test-image-and-preview-png -=== CONT TestScripts/store-limit -=== NAME TestScripts/multi-line-text-preview +=== NAME TestScripts/version testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1998905571/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1931129402/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -562,30 +603,15 @@ exe= XDG_CACHE_HOME=$WORK - > stdin in - > exec cliphist store - # preview should be flat (0.006s) - > 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.008s) - > stdin query - > exec cliphist decode - [stdout] - a b - c d e f - g h i j - - > cp stdout out - > cmp in out + > exec cliphist version + [stderr] + 0.5.0 + > stderr '^\d+\.\d+\.\d+$' PASS -=== CONT TestScripts/version -=== NAME TestScripts/multi-line +=== NAME TestScripts/no-permission testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1998905571/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1931129402/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -596,48 +622,22 @@ exe= XDG_CACHE_HOME=$WORK - > exec rand 2048 - [stdout] - Ct|@Ϭz=R|lvqxLPL.~u.y~*Y4;Ռ9'd2NBe'+™ZBŗ<UW6L0p@ɚw%QU2QruQZ7qtTcPGItЬвUg0jlz+ ]{uYyH:MsAЪضJ8?Cٝ063 KMl9; )X|Y}f}j7i~՟c Rң]gP1 yEFjU";S H4{@F9nYhsw - 9D^ftWW$ީ P;XӾ!#X>4@TSl< HKG80PcB!oh8?8X乂.%;T[JM0haQ2AYI(*JA|X$j1 F?+bj"a&zP؜=LG)h"hf$De+>r'f׎㽨ƛ1 4]zU - u,Zf/9w!ޝqұZ - s?}! ؟@ɲ$mK be.icw(YB^pϕ?FP5<0')BQNh =JrZ_y,-l\<}pM(AHy07SM- - 5- WT+AWG"vk;r$&#C|_, | {w#Ҳ]O`Ŝ - B6ƬZ Dsh&^cA7фڄXg@࣑@uiuT\FC@A>O - |~ - W @}?K%jvd{~=x1)\K3 wG~l|vXn!|gIIaӀSNe<[`V}2wjHf8uAե{ n^ koеg#hh - [υ̬1_ - gzy_X>6=jRؾm ge|K5엥1prlQ 5\^L$sٌ8LK0AznЛ wEFϻ'{6 - K2e4u.%wg0HfdрtѢdݻ>@!(SsbߒN-C\BEb - b 3[]E dJC$kg!Ovu| xJice2-82 O.A.#͟9܉6d]G;U"W뵍7yq&=⍰u#M&fh@y >)-ۜrOfUSPhe - W@汳_? I+z0цj"g}-zIJu 5իt q? x$S 2$nI *XW#W8uS:*k -{;ZQvBʢfN:|t{]@Z x{JMyOnC<}cW&Q+\)!ۿ3H= B{m> cp stdout data-in - > stdin data-in - > exec cliphist store - > stdin query - > exec cliphist decode + > chmod 111 $HOME + > chmod 111 $XDG_CACHE_HOME + > exec rand 8 [stdout] - Ct|@Ϭz=R|lvqxLPL.~u.y~*Y4;Ռ9'd2NBe'+™ZBŗ<UW6L0p@ɚw%QU2QruQZ7qtTcPGItЬвUg0jlz+ ]{uYyH:MsAЪضJ8?Cٝ063 KMl9; )X|Y}f}j7i~՟c Rң]gP1 yEFjU";S H4{@F9nYhsw - 9D^ftWW$ީ P;XӾ!#X>4@TSl< HKG80PcB!oh8?8X乂.%;T[JM0haQ2AYI(*JA|X$j1 F?+bj"a&zP؜=LG)h"hf$De+>r'f׎㽨ƛ1 4]zU - u,Zf/9w!ޝqұZ - s?}! ؟@ɲ$mK be.icw(YB^pϕ?FP5<0')BQNh =JrZ_y,-l\<}pM(AHy07SM- - 5- WT+AWG"vk;r$&#C|_, | {w#Ҳ]O`Ŝ - B6ƬZ Dsh&^cA7фڄXg@࣑@uiuT\FC@A>O - |~ - W @}?K%jvd{~=x1)\K3 wG~l|vXn!|gIIaӀSNe<[`V}2wjHf8uAե{ n^ koеg#hh - [υ̬1_ - gzy_X>6=jRؾm ge|K5엥1prlQ 5\^L$sٌ8LK0AznЛ wEFϻ'{6 - K2e4u.%wg0HfdрtѢdݻ>@!(SsbߒN-C\BEb - b 3[]E dJC$kg!Ovu| xJice2-82 O.A.#͟9܉6d]G;U"W뵍7yq&=⍰u#M&fh@y >)-ۜrOfUSPhe - W@汳_? I+z0цj"g}-zIJu 5իt q? x$S 2$nI *XW#W8uS:*k -{;ZQvBʢfN:|t{]@Z x{JMyOnC<}cW&Q+\)!ۿ3H= B{m> cp stdout data-out - > cmp data-in data-out + jnae> stdin stdout + > ! exec cliphist store + [stderr] + opening db: create cache dir: mkdir $WORK/cliphist: permission denied + [exit status 1] + > ! stdout . + > stderr 'permission denied' PASS -=== CONT TestScripts/wipe -=== NAME TestScripts/version +=== NAME TestScripts/invalid-usage testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1998905571/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1931129402/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -648,15 +648,82 @@ exe= XDG_CACHE_HOME=$WORK - > exec cliphist version + > ! exec cliphist [stderr] - 0.5.0 - > stderr '^\d+\.\d+\.\d+$' + 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.361s) + > ! exec cliphist list + [stderr] + opening db: please store something first + [exit status 1] + > stderr 'please store something first' + > exec rand 16 + [stdout] + c6'6> exec cliphist store + # delete query (0.003s) + > ! exec cliphist delete-query + [stderr] + please provide a query + [exit status 1] + > ! stdout . + > stderr 'please provide a query' + # decode id check (0.002s) + > ! exec cliphist decode + [stderr] + extracting id: input not prefixed with id + [exit status 1] + > ! stdout . + > stderr 'input not prefixed with id' + # invalid id (0.002s) + > 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 === NAME TestScripts/test-image-and-preview-jpg testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1998905571/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1931129402/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -677,7 +744,7 @@ $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?((((> cp stdout in.jpg > stdin stdout > exec cliphist store - # check we render preview (0.016s) + # check we render preview (0.006s) > exec cliphist list [stdout] 1 [[ binary data 609 B jpeg 20x20 ]] @@ -695,10 +762,9 @@ > cmp in.jpg out.jpg PASS -=== CONT TestScripts/list-order -=== NAME TestScripts/dedupe +=== NAME TestScripts/test-image-and-preview-gif testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1998905571/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1931129402/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -709,26 +775,27 @@ 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.005s) > 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 -=== CONT TestScripts/clipboard-state-env-sensitive -=== NAME TestScripts/clipboard-state-env-clear +=== NAME TestScripts/test-image-and-preview-png testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1998905571/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1931129402/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -739,30 +806,31 @@ 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 + > exec png [stdout] - 3 test input 3 - 2 test input 2 - 1 test input 1 - > cmp stdout out-before - > env CLIPBOARD_STATE=clear + PNG +  + IHDR IDATxbb25pQG 5p8)&IENDB`> cp stdout in.png + > stdin stdout > exec cliphist store + # check we render preview (0.005s) > exec cliphist list [stdout] - 2 test input 2 - 1 test input 1 - > cmp stdout out-after + 1 [[ binary data 87 B png 20x20 ]] + > stdout '\[\[ binary data \d+ B png 20x20 \]\]' + > stdin query + > exec cliphist decode + [stdout] + PNG +  + IHDR IDATxbb25pQG 5p8)&IENDB`> cp stdout out.png + # check we didn't lose any bytes (0.000s) + > cmp in.png out.png PASS -=== NAME TestScripts/decode-by-argument +=== NAME TestScripts/multi-line-text-preview testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1998905571/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1931129402/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -773,31 +841,29 @@ exe= XDG_CACHE_HOME=$WORK - > stdin in-a - > exec cliphist store - > stdin in-b + > stdin in > exec cliphist store - > exec cliphist decode 1 + # preview should be flat (0.015s) + > exec cliphist list [stdout] - a - - > stdout '^a$' - > exec cliphist decode 2 + 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.002s) + > stdin query + > exec cliphist decode [stdout] - b - > stdout '^b$' - > exec cliphist decode 3 - > stdout '^$' - > ! exec cliphist decode - [stderr] - extracting id: input not prefixed with id - [exit status 1] - > stderr 'input not prefixed with id' + a b + c d e f + g h i j + + > cp stdout out + > cmp in out PASS -=== NAME TestScripts/test-image-and-preview-gif +=== NAME TestScripts/multi-line testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1998905571/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1931129402/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -808,27 +874,35 @@ exe= XDG_CACHE_HOME=$WORK - > exec gif + > exec rand 2048 [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 + q `*d?ˎ1)_9ʫ+v R r!.`Ԭ=y 6,YV0a7^$(`,2;[i*6`m9 bk#P QAސl)dH&&zFcӰbZj*u8u\*mę V\/s|^Wi/U ޮ¥ + H.˳nh0'7&ԯ-3Qr#:pi.T^ {<}ӘSxD2n! &Ѿ]#hr{֠'kik'kr6%{\z--;2{f,˨K,y^0e~BxPB(Ŧ$^TR_]rYcǜyksBUVՈ鳻Bj`4 =3W6 LqL}V g2țhƈ?tb;PuL\{ |;hSLbVPgV@f1\taEuw茜s*Urm ZK@{[XS,f+FjC/JMm;+sG"ₖ#x@ WCG>/|Րݡx1٥H)wAߛTnU&mR[ {)7gO'@Q{G?pkBJz' + FB[ldnɴl`2ř!qϏRz._}qq?)\ЋƎ%:_ƕeʚ9v{eJQKߜ$(eA6;RԞOFIZh(db)Lٌ8x + C(CY,UQ㌣Dʺ5Dx6< 2D1L! + Q7ҽ 5J$f2Q+b + X(+E\kѹZmFL9x}2k|f&y$}+Ix91Ȧ[JF,r{*ԆSX]f}k@{\wvVC {7PL9"4z"&r_,0@u]G d|E<)u]#%C:?{X:^6Qj?9)?p 1V],}Yv:(gZ(iVr8)ј84bLDM6' :#s,*=/{_0y U"GIą<x̥x"!a |!e}19NHmNE3Mڑ,ZrEi”W4!vp?Wlcr<뷻*=f ?H3>[oy<:h0B<ݹWw yFd&SvpK릎Ze([ۦazAޟbD@s;H=[P@‚YH_ x0N:H)5iIǺ=>|54bԻcB .K50@>^Bm.|gA*e6КHXLZV!L¡ΪcOg`c?HFoVlӼp nT_!fy3ieȌ*؃9P0d \_6 + WY&"8Ae3KbʓI2;=`̸o90;O[Se3uzϷ- 1x9 + =n?̛i:t]UOp> cp stdout data-in + > stdin data-in > exec cliphist store - # check we render preview (0.023s) - > 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 + q `*d?ˎ1)_9ʫ+v R r!.`Ԭ=y 6,YV0a7^$(`,2;[i*6`m9 bk#P QAސl)dH&&zFcӰbZj*u8u\*mę V\/s|^Wi/U ޮ¥ + H.˳nh0'7&ԯ-3Qr#:pi.T^ {<}ӘSxD2n! &Ѿ]#hr{֠'kik'kr6%{\z--;2{f,˨K,y^0e~BxPB(Ŧ$^TR_]rYcǜyksBUVՈ鳻Bj`4 =3W6 LqL}V g2țhƈ?tb;PuL\{ |;hSLbVPgV@f1\taEuw茜s*Urm ZK@{[XS,f+FjC/JMm;+sG"ₖ#x@ WCG>/|Րݡx1٥H)wAߛTnU&mR[ {)7gO'@Q{G?pkBJz' + FB[ldnɴl`2ř!qϏRz._}qq?)\ЋƎ%:_ƕeʚ9v{eJQKߜ$(eA6;RԞOFIZh(db)Lٌ8x + C(CY,UQ㌣Dʺ5Dx6< 2D1L! + Q7ҽ 5J$f2Q+b + X(+E\kѹZmFL9x}2k|f&y$}+Ix91Ȧ[JF,r{*ԆSX]f}k@{\wvVC {7PL9"4z"&r_,0@u]G d|E<)u]#%C:?{X:^6Qj?9)?p 1V],}Yv:(gZ(iVr8)ј84bLDM6' :#s,*=/{_0y U"GIą<x̥x"!a |!e}19NHmNE3Mڑ,ZrEi”W4!vp?Wlcr<뷻*=f ?H3>[oy<:h0B<ݹWw yFd&SvpK릎Ze([ۦazAޟbD@s;H=[P@‚YH_ x0N:H)5iIǺ=>|54bԻcB .K50@>^Bm.|gA*e6КHXLZV!L¡ΪcOg`c?HFoVlӼp nT_!fy3ieȌ*؃9P0d \_6 + WY&"8Ae3KbʓI2;=`̸o90;O[Se3uzϷ- 1x9 + =n?̛i:t]UOp> cp stdout data-out + > cmp data-in data-out PASS -=== NAME TestScripts/test-image-and-preview-png +=== NAME TestScripts/test-image-and-preview-bmp testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1998905571/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1931129402/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -839,31 +913,27 @@ exe= XDG_CACHE_HOME=$WORK - > exec png + > exec bmp [stdout] - PNG -  - IHDR IDATxbb25pQG 5p8)&IENDB`> cp stdout in.png + BMv6( @> cp stdout in.bmp > stdin stdout > exec cliphist store - # check we render preview (0.027s) + # check we render preview (0.005s) > exec cliphist list [stdout] - 1 [[ binary data 87 B png 20x20 ]] - > stdout '\[\[ binary data \d+ B png 20x20 \]\]' + 1 [[ binary data 2 KiB bmp 20x20 ]] + > stdout '\[\[ binary data \d+ KiB bmp 20x20 \]\]' > stdin query > exec cliphist decode [stdout] - PNG -  - IHDR IDATxbb25pQG 5p8)&IENDB`> cp stdout out.png + BMv6( @> cp stdout out.bmp # check we didn't lose any bytes (0.000s) - > cmp in.png out.png + > cmp in.bmp out.bmp PASS -=== NAME TestScripts/no-permission +=== NAME TestScripts/clipboard-state-env-sensitive testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1998905571/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1931129402/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -874,22 +944,30 @@ exe= XDG_CACHE_HOME=$WORK - > chmod 111 $HOME - > chmod 111 $XDG_CACHE_HOME + > env CLIPBOARD_STATE=data > exec rand 8 [stdout] - wJ> stdin stdout - > ! exec cliphist store - [stderr] - opening db: create cache dir: mkdir $WORK/cliphist: permission denied - [exit status 1] + l> stdin stdout + > exec cliphist store + # check 1 item with CLIPBOARD_STATE=data (0.114s) + > exec cliphist list + [stdout] + 1 l + > stdout -count=1 '^.' + > exec cliphist wipe + > env CLIPBOARD_STATE=sensitive + > exec rand 8 + [stdout] + %*$iGW> stdin stdout + > exec cliphist store + # check 0 items with CLIPBOARD_STATE=sensitive (0.003s) + > exec cliphist list > ! stdout . - > stderr 'permission denied' PASS -=== NAME TestScripts/test-image-and-preview-bmp +=== NAME TestScripts/decode-by-argument testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1998905571/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1931129402/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -900,27 +978,31 @@ exe= XDG_CACHE_HOME=$WORK - > exec bmp - [stdout] - BMv6( @> cp stdout in.bmp - > stdin stdout + > stdin in-a > exec cliphist store - # check we render preview (0.018s) - > exec cliphist list + > stdin in-b + > exec cliphist store + > exec cliphist decode 1 [stdout] - 1 [[ binary data 2 KiB bmp 20x20 ]] - > stdout '\[\[ binary data \d+ KiB bmp 20x20 \]\]' - > stdin query - > exec cliphist decode + a + + > stdout '^a$' + > exec cliphist decode 2 [stdout] - BMv6( @> cp stdout out.bmp - # check we didn't lose any bytes (0.000s) - > cmp in.bmp out.bmp + b + > stdout '^b$' + > exec cliphist decode 3 + > stdout '^$' + > ! exec cliphist decode + [stderr] + extracting id: input not prefixed with id + [exit status 1] + > stderr 'input not prefixed with id' PASS -=== NAME TestScripts/invalid-usage +=== NAME TestScripts/list-order testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1998905571/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1931129402/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -931,82 +1013,23 @@ 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.032s) - > ! exec cliphist list - [stderr] - opening db: please store something first - [exit status 1] - > stderr 'please store something first' - > exec rand 16 + > stdin in-1 + > exec cliphist store + > stdin in-2 + > exec cliphist store + > stdin in-3 + > exec cliphist store + > exec cliphist list [stdout] - ԴR6<6zW> exec cliphist store - # delete query (0.012s) - > ! exec cliphist delete-query - [stderr] - please provide a query - [exit status 1] - > ! stdout . - > stderr 'please provide a query' - # decode id check (0.007s) - > ! 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' + 3 test input 3 + 2 test input 2 + 1 test input 1 + > cmp stdout out PASS -=== NAME TestScripts/store-limit +=== NAME TestScripts/dedupe testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1998905571/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1931129402/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -1017,39 +1040,24 @@ exe= XDG_CACHE_HOME=$WORK - > exec rand 16 - [stdout] - .Pќ\YCt' > stdin stdout - > exec cliphist -max-items 2 store - > exec rand 16 - [stdout] - Nr_DLtW:"I> stdin stdout - > exec cliphist -max-items 2 store - > exec rand 16 - [stdout] - RdG40U.> stdin stdout - > exec cliphist -max-items 2 store - # we only kept 2 (0.019s) + > stdin in-a + > exec cliphist store + > stdin in-b + > exec cliphist store + > stdin in-a + > exec cliphist store + > stdin in-b + > exec cliphist store > exec cliphist list [stdout] - 3 RdG40U. - 2 Nr_DLtW:"I - > ! stdout '^1\t' - > stdout '^2\t' - > stdout '^3\t' - > exec rand 16 - [stdout] - o@vM6 `> stdin stdout - > exec cliphist -max-items 0 store - # 0 clears the lot (0.006s) - > exec cliphist list - > ! stdout . - > ! stderr . + 4 my other test input + 3 my test input + > cmp stdout out PASS -=== NAME TestScripts/list-order +=== NAME TestScripts/clipboard-state-env-clear testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1998905571/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1931129402/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -1071,12 +1079,19 @@ 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 -=== NAME TestScripts/delete +=== NAME TestScripts/wipe testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1998905571/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1931129402/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -1087,27 +1102,28 @@ exe= XDG_CACHE_HOME=$WORK - > stdin in-good - > exec cliphist store - > stdin in-bad-1 + > exec rand 16 + [stdout] + \Ļ KE-4> stdin stdout > exec cliphist store - > stdin in-bad-2 + > exec rand 16 + [stdout] + + V3x:p,}> stdin stdout > exec cliphist store - > stdin in-bad-3 + > exec rand 16 + [stdout] + [pE7\kd> stdin stdout > exec cliphist store - > stdin delete-query - > exec cliphist delete - > exec cliphist delete-query 'bad-3' - > exec cliphist delete-query 'i dont exist' + > exec cliphist wipe + > ! stdout . > exec cliphist list - [stdout] - 1 im a test - > cmp stdout out + > ! stdout . PASS -=== NAME TestScripts/clipboard-state-env-sensitive +=== NAME TestScripts/store-limit testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1998905571/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1931129402/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -1118,31 +1134,39 @@ exe= XDG_CACHE_HOME=$WORK - > env CLIPBOARD_STATE=data - > exec rand 8 + > exec rand 16 [stdout] - OB@> stdin stdout - > exec cliphist store - # check 1 item with CLIPBOARD_STATE=data (0.022s) + ,;&ZA> stdin stdout + > exec cliphist -max-items 2 store + > exec rand 16 + [stdout] + +Yll E'u> stdin stdout + > exec cliphist -max-items 2 store + > exec rand 16 + [stdout] + rF`I'> stdin stdout + > exec cliphist -max-items 2 store + # we only kept 2 (0.113s) > exec cliphist list [stdout] - 1 OB@ - > stdout -count=1 '^.' - > exec cliphist wipe - > env CLIPBOARD_STATE=sensitive - > exec rand 8 + 3 rF`I' + 2 +Yll E'u + > ! stdout '^1\t' + > stdout '^2\t' + > stdout '^3\t' + > exec rand 16 [stdout] - #<4 - > stdin stdout - > exec cliphist store - # check 0 items with CLIPBOARD_STATE=sensitive (0.005s) + ?Ac4QV`c> stdin stdout + > exec cliphist -max-items 0 store + # 0 clears the lot (0.003s) > exec cliphist list > ! stdout . + > ! stderr . PASS === NAME TestScripts/max-dedupe testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1998905571/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1931129402/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -1157,39 +1181,39 @@ > exec cliphist store > exec rand 8 [stdout] - \qn> stdin stdout + +vg> stdin stdout > exec cliphist store > stdin in > exec cliphist store > exec cliphist list [stdout] 3 test line - 2 \qn + 2 +vg > stdout -count=2 '^.' > exec rand 8 [stdout] - `:Е> stdin stdout + $1> stdin stdout > exec cliphist store > exec cliphist list [stdout] - 4 `:Е + 4 $1 3 test line - 2 \qn + 2 +vg > stdout -count=3 '^.' > stdin in > exec cliphist -max-dedupe-search=0 store > exec cliphist list [stdout] 5 test line - 4 `:Е + 4 $1 3 test line - 2 \qn + 2 +vg > stdout -count=4 '^.' PASS -=== NAME TestScripts/wipe +=== NAME TestScripts/delete testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1998905571/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1931129402/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=$WORK TMPDIR=$WORK/.tmp @@ -1200,45 +1224,45 @@ exe= XDG_CACHE_HOME=$WORK - > exec rand 16 - [stdout] - x]J ׯ6i> stdin stdout + > stdin in-good > exec cliphist store - > exec rand 16 - [stdout] - 5܂nˑ,9> stdin stdout + > stdin in-bad-1 > exec cliphist store - > exec rand 16 - [stdout] - \Ԥ뢞S]o-> stdin stdout + > stdin in-bad-2 > exec cliphist store - > exec cliphist wipe - > ! stdout . + > 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 . + [stdout] + 1 im a test + > cmp stdout out PASS --- PASS: TestScripts (0.00s) - --- PASS: TestScripts/multi-line-text-preview (0.07s) - --- PASS: TestScripts/multi-line (0.07s) - --- PASS: TestScripts/version (0.01s) - --- PASS: TestScripts/dedupe (0.08s) - --- PASS: TestScripts/test-image-and-preview-jpg (0.08s) - --- PASS: TestScripts/clipboard-state-env-clear (0.09s) - --- PASS: TestScripts/decode-by-argument (0.09s) - --- PASS: TestScripts/test-image-and-preview-gif (0.09s) - --- PASS: TestScripts/test-image-and-preview-png (0.09s) - --- PASS: TestScripts/no-permission (0.02s) - --- PASS: TestScripts/test-image-and-preview-bmp (0.10s) - --- PASS: TestScripts/invalid-usage (0.11s) - --- PASS: TestScripts/store-limit (0.12s) - --- PASS: TestScripts/list-order (0.05s) - --- PASS: TestScripts/clipboard-state-env-sensitive (0.05s) - --- PASS: TestScripts/delete (0.13s) - --- PASS: TestScripts/max-dedupe (0.14s) - --- PASS: TestScripts/wipe (0.07s) + --- PASS: TestScripts/version (0.04s) + --- PASS: TestScripts/no-permission (0.04s) + --- PASS: TestScripts/invalid-usage (0.41s) + --- PASS: TestScripts/test-image-and-preview-jpg (0.47s) + --- PASS: TestScripts/test-image-and-preview-gif (0.47s) + --- PASS: TestScripts/test-image-and-preview-png (0.48s) + --- PASS: TestScripts/multi-line-text-preview (0.51s) + --- PASS: TestScripts/multi-line (0.54s) + --- PASS: TestScripts/test-image-and-preview-bmp (0.54s) + --- PASS: TestScripts/clipboard-state-env-sensitive (0.58s) + --- PASS: TestScripts/decode-by-argument (0.58s) + --- PASS: TestScripts/list-order (0.64s) + --- PASS: TestScripts/dedupe (0.75s) + --- PASS: TestScripts/clipboard-state-env-clear (0.76s) + --- PASS: TestScripts/wipe (0.76s) + --- PASS: TestScripts/store-limit (0.76s) + --- PASS: TestScripts/max-dedupe (0.76s) + --- PASS: TestScripts/delete (0.77s) PASS -ok github.com/sentriz/cliphist 0.151s +ok github.com/sentriz/cliphist 0.772s create-stamp debian/debhelper-build-stamp dh_testroot -O--builddirectory=_build -O--buildsystem=golang dh_prep -O--builddirectory=_build -O--buildsystem=golang @@ -1276,12 +1300,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/14861/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/14861/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/22590 and its subdirectories -I: Current time: Wed May 8 22:34:49 -12 2024 -I: pbuilder-time-stamp: 1715250889 +I: removing directory /srv/workspace/pbuilder/14861 and its subdirectories +I: Current time: Thu Jun 12 06:58:32 +14 2025 +I: pbuilder-time-stamp: 1749661112