Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1inKhz-0004L7-Kj for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Jan 2020 11:01:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1inKhy-0004fT-CB for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Jan 2020 11:01:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1inKhy-0004fL-39 for pgsql-hackers@lists.postgresql.org; Fri, 03 Jan 2020 11:01:34 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1inKhv-0002Lp-3P for pgsql-hackers@postgresql.org; Fri, 03 Jan 2020 11:01:33 +0000 Received: from msg.df7cb.de (unknown [IPv6:2a02:908:1476:ff00:76e5:bff:fef3:7e00]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 47q25j71ZMz3Dwk; Fri, 3 Jan 2020 12:01:29 +0100 (CET) Date: Fri, 3 Jan 2020 12:01:29 +0100 From: Christoph Berg To: Tom Lane Cc: PostgreSQL Hackers Subject: Re: pgsql: Add basic TAP tests for psql's tab-completion logic. Message-ID: <20200103110128.GA28967@msg.df7cb.de> Mail-Followup-To: Christoph Berg , Tom Lane , PostgreSQL Hackers References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Re: Tom Lane 2020-01-02 > Add basic TAP tests for psql's tab-completion logic. The \DRD test fails on Debian/unstable: # check case-sensitive keyword replacement # XXX the output here might vary across readline versions check_completion( "\\DRD\t", "\\DRD\b\b\bdrds ", "complete \\DRD to \\drds"); 00:58:02 rm -rf '/<>/build/src/bin/psql'/tmp_check 00:58:02 /bin/mkdir -p '/<>/build/src/bin/psql'/tmp_check 00:58:02 cd /<>/build/../src/bin/psql && TESTDIR='/<>/build/src/bin/psql' PATH="/<>/build/tmp_install/usr/lib/postgresql/13/bin:$PATH" LD_LIBRARY_PATH="/<>/build/tmp_install/usr/lib/x86_64-linux-gnu" PGPORT='65432' PG_REGRESS='/<>/build/src/bin/psql/../../../src/test/regress/pg_regress' REGRESS_SHLIB='/<>/build/src/test/regress/regress.so' /usr/bin/prove -I /<>/build/../src/test/perl/ -I /<>/build/../src/bin/psql t/*.pl 00:58:09 00:58:09 # Failed test 'complete \DRD to \drds' 00:58:09 # at t/010_tab_completion.pl line 64. 00:58:09 # Looks like you failed 1 test of 12. 00:58:09 t/010_tab_completion.pl .. 00:58:09 Dubious, test returned 1 (wstat 256, 0x100) 00:58:09 Failed 1/12 subtests 00:58:09 00:58:09 Test Summary Report 00:58:09 ------------------- 00:58:09 t/010_tab_completion.pl (Wstat: 256 Tests: 12 Failed: 1) 00:58:09 Failed test: 11 00:58:09 Non-zero exit status: 1 00:58:09 Files=1, Tests=12, 7 wallclock secs ( 0.01 usr 0.01 sys + 0.77 cusr 0.23 csys = 1.02 CPU) 00:58:09 Result: FAIL 00:58:09 make[2]: *** [Makefile:87: check] Error 1 https://pgdgbuild.dus.dg-i.net/job/postgresql-13-binaries/architecture=amd64,distribution=sid/444/console Shouldn't this print some "expected foo, got bar" diagnostics instead of just dying? Christoph