all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Juri Linkov <juri@linkov.net>,  emacs-devel@gnu.org
Subject: Re: master 91e02dde5fe: New tests for nested archives (bug#70987)
Date: Mon, 27 May 2024 19:45:58 +0200	[thread overview]
Message-ID: <87msobrvvt.fsf@gmx.de> (raw)
In-Reply-To: <8634qc9x8v.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 20 May 2024 21:03:28 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

Hi,

>> From: Juri Linkov <juri@linkov.net>
>> Cc: Eli Zaretskii <eliz@gnu.org>,  emacs-devel@gnu.org
>> Date: Mon, 20 May 2024 20:00:55 +0300
>> 
>> >> It should succeed now that I installed the fix for bug#70987.
>> >
>> > Yep.
>> 
>> This is called Test-Driven Development ;-)
>
> Indeed.  TDD, here we come!

In order to keep the ball rolling: while tar-mode-tests succeed in my
local environment, they fail on emba:

<https://emba.gnu.org/emacs/emacs/-/jobs/85996#L904>

--8<---------------cut here---------------start------------->8---
uncompressing tg.tar.gz...
uncompressing tg.tar.gz...done
Parsing tar file... 
Parsing tar file...done
uncompressing gVv6Udu.gz...
uncompressing gVv6Udu.gz...done
   passed  1/3  tar-mode-test-tar-extract-gz (0.093691 sec)
uncompressing tzg.tar.gz...
uncompressing tzg.tar.gz...done
Parsing tar file... 
Parsing tar file...done
Parsing archive file...
Parsing archive file...done.
Searching for program: No such file or directory, unzip
Test tar-mode-test-tar-extract-zip-and-gz backtrace:
  signal(ert-test-failed (((should (equal (char-after) 10052)) :form (
  ert-fail(((should (equal (char-after) 10052)) :form (equal 103 10052
  (if (unwind-protect (setq value-22 (apply fn-20 args-21)) (setq form
  (let (form-description-24) (if (unwind-protect (setq value-22 (apply
  (let ((value-22 'ert-form-evaluation-aborted-23)) (let (form-descrip
  (let* ((fn-20 #'equal) (args-21 (condition-case err (list (char-afte
  (save-current-buffer (set-buffer (setq zip-buffer (tar-extract))) (s
  (save-current-buffer (set-buffer (setq tar-buffer (find-file-noselec
  (unwind-protect (save-current-buffer (set-buffer (setq tar-buffer (f
  (let* ((tar-file (expand-file-name "tzg.tar.gz" tar-mode-tests-data-
  #f(lambda () [t] (let* ((fn-15 #'executable-find) (args-16 (conditio
  #f(compiled-function () #<bytecode -0x1810b1c9d596429f>)()
  handler-bind-1(#f(compiled-function () #<bytecode -0x1810b1c9d596429
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name tar-mode-test-tar-extract-zip-and-gz 
  ert-run-or-rerun-test(#s(ert--stats :selector (not (or ... ... ...))
  ert-run-tests((not (or (tag :expensive-test) (tag :unstable) (tag :n
  ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable) (
  ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
  eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) (
  command-line-1(("-L" ":." "-l" "ert" "--eval" "(setq treesit-extra-l
  command-line()
  normal-top-level()
Test tar-mode-test-tar-extract-zip-and-gz condition:
    (ert-test-failed
     ((should (equal (char-after) 10052)) :form (equal 103 10052) :value
      nil :explanation
      (different-atoms (103 "#x67" "?g") (10052 "#x2744" "?❄"))))
   FAILED  2/3  tar-mode-test-tar-extract-zip-and-gz (0.049103 sec) at lisp/tar-mode-tests.el:49
   passed  3/3  tar-mode-test-tar-grind-file-mode (0.000273 sec)
Ran 3 tests, 2 results as expected, 1 unexpected (2024-05-27 09:08:03+0000, 0.358310 sec)
1 unexpected results:
   FAILED  tar-mode-test-tar-extract-zip-and-gz  ((should (equal (char-after) 10052)) :form (equal 103 10052) :value nil :explanation (different-atoms (103 "#x67" "?g") (10052 "#x2744" "?❄")))
--8<---------------cut here---------------end--------------->8---

Perhaps it needs a test whether executable unzip does exist?

Best regards, Michael.



  parent reply	other threads:[~2024-05-27 17:45 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <171618627762.8573.3679457028884512823@vcs2.savannah.gnu.org>
     [not found] ` <20240520062438.19910C35337@vcs2.savannah.gnu.org>
2024-05-20 11:45   ` master 91e02dde5fe: New tests for nested archives (bug#70987) Michael Albinus
2024-05-20 12:33     ` Eli Zaretskii
2024-05-20 13:47       ` Michael Albinus
2024-05-20 17:00         ` Juri Linkov
2024-05-20 18:03           ` Eli Zaretskii
2024-05-24 11:53             ` Benjamin Riefenstahl
2024-05-27 17:45             ` Michael Albinus [this message]
2024-05-27 17:58               ` Juri Linkov
2024-05-28  7:11                 ` Michael Albinus
2024-05-28  7:27                   ` Michael Albinus
2024-05-28 11:13                     ` Eli Zaretskii
2024-05-28 11:12                   ` Eli Zaretskii
2024-05-28 11:24                     ` Michael Albinus
2024-05-27 18:08               ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87msobrvvt.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=juri@linkov.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.