[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/cpio-mode 5a87960 47/61: Version 0.10
From: |
Stefan Monnier |
Subject: |
[elpa] externals/cpio-mode 5a87960 47/61: Version 0.10 |
Date: |
Fri, 11 Jan 2019 15:25:33 -0500 (EST) |
branch: externals/cpio-mode
commit 5a87960bdf8122d9a6fb959ca4c91c288c3ec08b
Author: dlewan <address@hidden>
Commit: GitHub <address@hidden>
Version 0.10
Now finds the right major mode for entries.
You can now edit and save entries.
New commands:
+ cpio-entry-contents-revert-buffer (no key mapping)
+ cpio-dired-do-touch ("T")
---
Makefile.in | 4 +-
NEWS | 14 +-
README | 24 +-
cab-test.el | 16 +-
configure.ac | 4 +-
cpio-affiliated-buffers.el | 65 +-
cpio-bin.el | 25 +-
cpio-crc.el | 55 +-
cpio-dired-crc-test.el | 8456 +++++++++++++++++++++++-----------------
cpio-dired-odc-test.el | 5367 ++++++++++++++++----------
cpio-dired-test.el | 8992 +++++++++++++++++++++++++------------------
cpio-dired.el | 364 +-
cpio-entry-contents-mode.el | 81 +-
cpio-generic.el | 539 ++-
cpio-modes-test.el | 5 +-
cpio-modes.el | 5 +-
cpio-newc.el | 27 +-
cpio-odc.el | 22 +-
cpio.el | 367 +-
test-generic.el | 654 ++++
20 files changed, 15570 insertions(+), 9516 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index 6bd5f4f..3acf823 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,5 +1,5 @@
# -*- mode: makefile; coding: utf-8 -*-
-# $Id: Makefile.in,v 1.6 2018/06/09 16:14:35 doug Exp $
+# $Id: Makefile.in,v 1.7 2018/11/19 21:25:37 doug Exp $
#
# Copyright © 2013, 2014, 2015, 2016, 2017, 2018
@@ -229,7 +229,7 @@ configure-default: configure
#
clean:
- -rm -f *~
+ -rm -f *~ ${ELC_FILES}
distclean: check_gnu clean
if [ -e ${distdir} ] ; then rm -rf ${distdir} ; fi
diff --git a/NEWS b/NEWS
index 68e494d..86456d4 100644
--- a/NEWS
+++ b/NEWS
@@ -1,12 +1,22 @@
# -*- outline -*-
-# $Id: NEWS,v 1.10 2018/06/16 18:03:21 doug Exp $
+# $Id: NEWS,v 1.12 2018/11/19 21:25:37 doug Exp $
+
+* Version 0.10
+** Finds an appropriate major mode for an entry's contents.
+ It does this with (set-auto-mode).
+ So only entries for which (set-auto-mode) finds a mode get
+ a non-trivial mode.
+** New dired-like commands:
+ + cpio-entry-contents-revert-buffer (no key mapping)
+ + cpio-dired-do-touch ("T")
+** You can now edit and save an entry's contents.
* Version 0.09
** There's now a find-file-hook
and documentation on how to use/invoke cpio-mode.
** Changing owner or group no longer removes marks
on the entries on which the change is being performed.
-** cpio-affiliated-buffers.el has had somae fixes.
+** cpio-affiliated-buffers.el has had some fixes.
There were lots of issues around the kill-buffer-hook.
It seems correct now.
(Of course, bug reports are welcome.)
diff --git a/README b/README
index b85833c..c0291ca 100644
--- a/README
+++ b/README
@@ -1,5 +1,5 @@
# -*- mode: org; encoding: utf-8 -*-
-# $Id: README,v 1.7 2018/06/16 02:08:25 doug Exp $
+# $Id: README,v 1.8 2018/11/19 21:25:37 doug Exp $
* Intent
@@ -125,23 +125,27 @@ cpio-mode includes a few ERT tests.
All the testing is sunny day day testing.
Rarely are any error conditions tested.
-cpio-generic-tests.el provides basic testing of some of the funciton
-implemented in cpio-generic.el.
+For any testing to succeed set your umask to 022,
+otherwise all of the data in the tests are incorrect.
-cpio-modes-test.el provides basic testing of some of the function
-implemented in cpio-modes.el.
+- cpio-generic-tests.el provides basic testing of some of the funciton
+ implemented in cpio-generic.el.
-cab-test.el provides basic testing of cpio-affiliated-buffers.el.
-(Yes, cpio-affiliated-buffers.el still has bugs.)
+- cpio-modes-test.el provides basic testing of some of the function
+ implemented in cpio-modes.el.
-cpio-newc-test.el provides basic testing of some of the function
-implemented in cpio-newc.el.
+- cab-test.el provides basic testing of cpio-affiliated-buffers.el.
+ (Yes, cpio-affiliated-buffers.el still has bugs.)
+
+- cpio-newc-test.el provides basic testing of some of the function
+ implemented in cpio-newc.el.
The following files contain tests that exercise cpio function
through the dired-style interface.
- * cpio-dired-test.el -- tests of the newc format.
+ * cpio-dired-bin-test.el
* cpio-dired-crc-test.el
* cpio-dired-odc-test.el
+ * cpio-dired-test.el -- tests of the newc format.
The general form of a check is the following:
1. Do something.
diff --git a/cab-test.el b/cab-test.el
index e25f0be..6f46aa6 100644
--- a/cab-test.el
+++ b/cab-test.el
@@ -1,6 +1,6 @@
;; -*- coding: utf-8 -*-
;;; cab-text.el --- brief description
-; $Id: cab-test.el,v 1.5 2018/06/16 18:01:35 doug Exp $
+; $Id: cab-test.el,v 1.6 2018/06/26 15:57:50 doug Exp $
;; COPYRIGHT
@@ -35,11 +35,21 @@
;;
;; Dependencies
;;
-(require 'ert)
-(load (concat default-directory "cpio-affiliated-buffers.el"))
+(eval-when-compile
+ (require 'ert))
+(eval-when-compile
+ (if (file-exists-p (concat default-directory "cpio-affiliated-buffers.elc"))
+ (load (concat default-directory "cpio-affiliated-buffers.elc"))
+ (load (concat default-directory "cpio-affiliated-buffers.el"))))
(local-set-key "\M-\C-i" 'insert-debugger)
(local-set-key "\M-\C-u" 'update-debuggers)
+
+;;;;;;;;;;;;;;;;
+;; Make the byte compiler happy.
+(defvar *cab-parent)
+(defvar *cab-subordinates*)
+
;;
;; Vars
diff --git a/configure.ac b/configure.ac
index 5803857..dc13a45 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-dnl $Id: configure.ac,v 1.8 2018/06/16 04:21:49 doug Exp $
+dnl $Id: configure.ac,v 1.9 2018/11/19 21:25:38 doug Exp $
#
# Copyright © 2015, 2017, 2018 Douglas Lewan, address@hidden
@@ -20,7 +20,7 @@ dnl $Id: configure.ac,v 1.8 2018/06/16 04:21:49 doug Exp $
#
dnl Autoconf requirements
-AC_INIT(cpio-mode, 0.09, address@hidden)
+AC_INIT(cpio-mode, 0.10, address@hidden)
AC_PREFIX_DEFAULT(${HOME}/local)
dnl information on the package
dnl checks for programs
diff --git a/cpio-affiliated-buffers.el b/cpio-affiliated-buffers.el
index 07ef601..540f795 100644
--- a/cpio-affiliated-buffers.el
+++ b/cpio-affiliated-buffers.el
@@ -1,6 +1,6 @@
;; -*- coding: utf-8 -*-
;;; cpio-affiliated-buffers.el --- Establish and manage buffers affiliated
with each other.
-; $Id: cpio-affiliated-buffers.el,v 1.6 2018/06/16 14:50:07 doug Exp $
+; $Id: cpio-affiliated-buffers.el,v 1.8 2018/11/19 21:25:38 doug Exp $
;; COPYRIGHT
@@ -90,6 +90,7 @@
(b1 (find-file-noselect "b1")))
(cab-register b1 b0)
(cab-register b0 b1)))
+
(defun cab-setup-parenthood-check-1 ()
"Set up a large situation where the parenthood check should error out."
(let* ((b0 (find-file-noselect "bb0"))
@@ -110,6 +111,58 @@
(list b1 b2 b3 b4 b5 b6 b7 b8 b9))
(cab-register b0 b9)))
+
+;; HEREHERE Remove the following test code before publishing cpio-mode.
+(defvar *cab-info-buffer* (get-buffer-create "*cab info*")
+ "A buffer for holding information about affiliated buffers.")
+
+(defun cab-test-kill-buffer-hook ()
+ "Hook to run when killing a buffer.
+The intent is to glean information about any buffers
+that cpio-mode might be using
+that are affiliated with each other."
+ (let ((fname "cab-test-kill-buffer-hook")
+ (buf (current-buffer)))
+ ;; (error "%s() is not yet implemented" fname)
+ (with-current-buffer *cab-info-buffer*
+ (goto-char (point-max))
+ (insert (format "Killing buffer [[%s]].
+ It has parent [[%s]].
+ It has subordinates [[%s]].
+"
+ (buffer-name buf)
+ (if *cab-parent*
+ (buffer-name *cab-parent*)
+ "nil")
+ (with-current-buffer buf
+ *cab-subordinates*))))))
+
+(add-hook 'kill-buffer-hook 'cab-test-kill-buffer-hook)
+
+(defun cab-test-register-buffer-hook ( buffer parent )
+ "Record some information about the registration of a BUFFER
+as an affiliated buffer.
+It's not strictly a hook, but it pairs with the above kill-buffer-hook."
+ (let ((fname "cab-test-register-buffer-hook")
+ )
+ ;; (error "%s() is not yet implemented" fname)
+ (with-current-buffer *cab-info-buffer*
+ (goto-char (point-max))
+ (insert (format "Registering [[%s]] with [[%s]] as its parent.\n"
+ (buffer-name buffer) (buffer-name parent)))
+ (insert (format " [[%s]] currently has the following subordinates.\n"
+ (buffer-name parent)))
+ (mapc (lambda (b)
+ (insert (format " [[%s]]\n" (buffer-name b))))
+ (with-current-buffer parent
+ *cab-subordinates*)))
+ ))
+
+(defcustom cab-clear-cab-info-buffer nil
+ "Clear the Affiliated Info Buffer if set."
+ :type 'boolean
+ :group 'cab)
+
;;
;; Generic functions
@@ -121,7 +174,8 @@
;;
;; Dependencies
;;
-(require 'cl)
+(eval-when-compile
+ (require 'cl))
;;
@@ -158,7 +212,7 @@ Return NIL if buffer is already affiliated to another
parent."
((with-current-buffer buffer *cab-parent*)
nil)
(t
- (unless (cab-registered-p buffer parent)
+ (unless (cab-registered-p buffer parent) ;HEREHERE This looks
redundant.
(with-current-buffer parent
(push buffer *cab-subordinates*)
(make-local-variable 'kill-buffer-hook)
@@ -179,7 +233,10 @@ Return NIL if buffer is already affiliated to another
parent."
;; (with-current-buffer "cpio.el" kill-buffer-hook)
(local-set-key "\C-x\C-k" 'cab-deregister))
- (t t))))))))
+ (t t))))
+ ;; HEREHERE Remove this hook before publishing cpio-mode.
+ (cab-test-register-buffer-hook buffer parent)
+ ))))
(defun cab-detect-parenthood-cycle (buffer parent)
"Return non-NIL if affiliating BUFFER with PARENT would create a parenthood
cycle."
diff --git a/cpio-bin.el b/cpio-bin.el
index 362151a..7fa96a6 100644
--- a/cpio-bin.el
+++ b/cpio-bin.el
@@ -1,6 +1,6 @@
;; -*- coding: utf-8 -*-
;;; cpio-bin.el --- handle bin cpio entry header formats
-; $Id: cpio-bin.el,v 1.8 2018/06/17 07:34:11 doug Exp $
+; $Id: cpio-bin.el,v 1.10 2018/06/26 15:57:50 doug Exp $
;; COPYRIGHT
;;
@@ -36,7 +36,8 @@
;;
;; Dependencies
;;
-(require 'bindat)
+(eval-when-compile
+ (require 'bindat))
;;;;;;;;;;;;;;;;
;; Things to make the byte compiler happy.
@@ -506,14 +507,13 @@ once the TRAILER is written and padded."
(base-len (length base-trailer))
(len))
;; ...and insert the new trailer...
- (setq buffer-read-only nil)
- (insert base-trailer)
- (goto-char (point-max))
- ;; ...with padding.
- (setq len (cg-round-up (1- (point)) *cpio-bin-blocksize*))
- (setq len (1+ (- len (point))))
- (insert (make-string len ?\0))
- (setq buffer-read-only t)))
+ (with-writable-buffer
+ (insert base-trailer)
+ (goto-char (point-max))
+ ;; ...with padding.
+ (setq len (cg-round-up (1- (point)) *cpio-bin-blocksize*))
+ (setq len (1+ (- len (point))))
+ (insert (make-string len ?\0)))))
(defun cpio-bin-delete-trailer ()
"Delete the trailer in the current cpio bin archive."
@@ -532,9 +532,8 @@ once the TRAILER is written and padded."
(skip-chars-forward "\0")))
*cpio-catalog*)
;; Next, delete what's left...
- (setq buffer-read-only nil)
- (delete-region (point) (point-max))
- (setq buffer-read-only t)))
+ (with-writable-buffer
+ (delete-region (point) (point-max)))))
(defun cpio-bin-make-chcksum-for-file (filename)
"Return the checksum for FILENAME."
diff --git a/cpio-crc.el b/cpio-crc.el
index eb4bfde..719ff81 100644
--- a/cpio-crc.el
+++ b/cpio-crc.el
@@ -1,6 +1,6 @@
;; -*- coding: utf-8 -*-
;;; cpio-crc.el --- handle crc cpio entry header formats
-; $Id: cpio-crc.el,v 1.10 2018/06/17 07:34:11 doug Exp $
+; $Id: cpio-crc.el,v 1.12 2018/06/26 15:57:50 doug Exp $
;; COPYRIGHT
;;
@@ -36,25 +36,43 @@
;;
;; Dependencies
;;
-(condition-case err
- (require 'cpio-generic)
+(eval-when-compile
+ (condition-case err
+ (require 'cpio-generic)
(error
- (if (file-exists-p (concat default-directory "cpio-newc.elc"))
- (load (concat default-directory "cpio-newc.elc"))
- (load (concat default-directory "cpio-newc.el")))))
-(condition-case err
- (require 'cpio-newc)
+ (if (file-exists-p (concat default-directory "cpio-generic.elc"))
+ (load (concat default-directory "cpio-generic.elc"))
+ (load (concat default-directory "cpio-generic.el")))))
+ (condition-case err
+ (require 'cpio-newc)
(error
(if (file-exists-p (concat default-directory "cpio-newc.elc"))
(load (concat default-directory "cpio-newc.elc"))
- (load (concat default-directory "cpio-newc.el")))))
+ (load (concat default-directory "cpio-newc.el"))))))
;;;;;;;;;;;;;;;;
;; Things to make the byte compiler happy.
-(declare-function cpio-entry-name "cpio.el" (attrs))
-(declare-function cpio-entry-exists-p "cpio.el" (entry-name))
+(declare-function cg-pad-right "cpio-generic.el")
+(declare-function cg-round-up "cpio-generic.el")
(declare-function cpio-contents "cpio.el" (entry-name &optional
archive-buffer))
+(declare-function cpio-entry-exists-p "cpio.el" (entry-name))
+(declare-function cpio-entry-name "cpio.el" (attrs))
(declare-function cpio-entry-size "cpio.el" (attrs))
+(declare-function cpio-newc-parse-chksum "cpio-newc.el")
+(declare-function cpio-newc-parse-dev-maj "cpio-newc.el")
+(declare-function cpio-newc-parse-dev-min "cpio-newc.el")
+(declare-function cpio-newc-parse-filesize "cpio-newc.el")
+(declare-function cpio-newc-parse-gid "cpio-newc.el")
+(declare-function cpio-newc-parse-ino "cpio-newc.el")
+(declare-function cpio-newc-parse-mode "cpio-newc.el")
+(declare-function cpio-newc-parse-mtime "cpio-newc.el")
+(declare-function cpio-newc-parse-name "cpio-newc.el")
+(declare-function cpio-newc-parse-namesize "cpio-newc.el")
+(declare-function cpio-newc-parse-nlink "cpio-newc.el")
+(declare-function cpio-newc-parse-rdev-maj "cpio-newc.el")
+(declare-function cpio-newc-parse-rdev-min "cpio-newc.el")
+(declare-function cpio-newc-parse-uid "cpio-newc.el")
+(declare-function cpio-special-file "cpio-modes.el")
(declare-function cpio-validate-catalog-entry "cpio.el" (catalog-entry))
;; EO things for the byte compiler.
;;;;;;;;;;;;;;;;
@@ -412,14 +430,13 @@ CAVEAT: This respects neither narrowing nor the point."
(base-len (length base-trailer))
(len))
;; ...and insert the new trailer...
- (setq buffer-read-only nil)
- (insert base-trailer)
- (goto-char (point-max))
- ;; ...with padding.
- (setq len (cg-round-up (1- (point)) *cpio-crc-blocksize*))
- (setq len (1+ (- len (point))))
- (insert (make-string len ?\0))
- (setq buffer-read-only t)))
+ (with-writable-buffer
+ (insert base-trailer)
+ (goto-char (point-max))
+ ;; ...with padding.
+ (setq len (cg-round-up (1- (point)) *cpio-crc-blocksize*))
+ (setq len (1+ (- len (point))))
+ (insert (make-string len ?\0)))))
(defalias 'cpio-crc-delete-trailer 'cpio-newc-delete-trailer)
diff --git a/cpio-dired-crc-test.el b/cpio-dired-crc-test.el
index 5f54ad6..86815b2 100644
--- a/cpio-dired-crc-test.el
+++ b/cpio-dired-crc-test.el
@@ -1,6 +1,6 @@
;; -*- coding: utf-8 -*-
;;; cpio-dired-crc-test.el --- brief description
-; $Id: cpio-dired-crc-test.el,v 1.9 2018/06/17 07:34:11 doug Exp $
+; $Id: cpio-dired-crc-test.el,v 1.10 2018/11/19 21:25:38 doug Exp $
;; COPYRIGHT
@@ -35,7 +35,12 @@
;;
;; Dependencies
;;
-(load (concat default-directory "cpio.el"))
+(load (concat default-directory "test-generic.el"))
+
+(eval-when-compile
+ (if (file-exists-p (concat default-directory "cpio.elc"))
+ (load (concat default-directory "cpio.elc")))
+ (load (concat default-directory "cpio.el")))
;;;;;;;;;;;;;;;;
;; Things to make the byte compiler happy.
@@ -169,6 +174,10 @@
"A large archive used for testing.")
(setq *cdmt-crc-large-archive* "test_data/alphabet/alphabet.crc.cpio")
+(setq *cdmt-small-archive* *cdmt-crc-small-archive*)
+(setq *cdmt-large-archive* *cdmt-crc-large-archive*)
+(setq *cdmt-archive-format* "crc")
+
(defvar *cdmt-crc-untouched-small-archive* "070702 (( magic ))
DEADBEEF (( ino ))
000081A4 (( mode ))
@@ -879,188 +888,188 @@ TRAILER!!! (( filename ))
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
")
-(defvar *cdmt-crc-untouched-catalog "((\"a\" .
+(defvar *cdmt-crc-untouched-catalog "((¨a¨ .
\\s-+[[235538648 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+4 253 0 0 0 2 127 \"a\"]
-\\s-+#<marker at 1 in alphabet_small.crc.cpio> #<marker at 113 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"aa\" .
+\\s-+4 253 0 0 0 2 127 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small.crc.cpio> #<marker at 113 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨aa¨ .
\\s-+[[235538674 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+5 253 0 0 0 3 224 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small.crc.cpio> #<marker at 233 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" .
+\\s-+5 253 0 0 0 3 224 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small.crc.cpio> #<marker at 233 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨aaa¨ .
\\s-+[[235538688 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+6 253 0 0 0 4 321 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small.crc.cpio> #<marker at 357 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" .
+\\s-+6 253 0 0 0 4 321 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small.crc.cpio> #<marker at 357 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaa¨ .
\\s-+[[235538691 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+7 253 0 0 0 5 418 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small.crc.cpio> #<marker at 481 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" .
+\\s-+7 253 0 0 0 5 418 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small.crc.cpio> #<marker at 481 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa¨ .
\\s-+[[235538692 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+8 253 0 0 0 6 515 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small.crc.cpio> #<marker at 605 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa.d\" .
+\\s-+8 253 0 0 0 6 515 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small.crc.cpio> #<marker at 605 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa.d¨ .
\\s-+[[235538695 16877 1000 1000 2
\\s-+(23268 65535)
-\\s-+0 253 0 0 0 8 0 \"aaaaa.d\"]
-\\s-+#<marker at 613 in alphabet_small.crc.cpio> #<marker at 733 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"b\" .
+\\s-+0 253 0 0 0 8 0 ¨aaaaa.d¨«
+\\s-+#<marker at 613 in alphabet_small.crc.cpio> #<marker at 733 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨b¨ .
\\s-+[[235538693 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+4 253 0 0 0 2 128 \"b\"]
-\\s-+#<marker at 733 in alphabet_small.crc.cpio> #<marker at 845 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"bb\" .
+\\s-+4 253 0 0 0 2 128 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small.crc.cpio> #<marker at 845 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨bb¨ .
\\s-+[[235538694 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+5 253 0 0 0 3 226 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small.crc.cpio> #<marker at 965 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" .
+\\s-+5 253 0 0 0 3 226 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small.crc.cpio> #<marker at 965 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨bbb¨ .
\\s-+[[235538696 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+6 253 0 0 0 4 324 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small.crc.cpio> #<marker at 1089 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" .
+\\s-+6 253 0 0 0 4 324 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small.crc.cpio> #<marker at 1089 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbb¨ .
\\s-+[[235538697 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+7 253 0 0 0 5 422 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small.crc.cpio> #<marker at 1213 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" .
+\\s-+7 253 0 0 0 5 422 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small.crc.cpio> #<marker at 1213 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb¨ .
\\s-+[[235538698 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+8 253 0 0 0 6 520 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small.crc.cpio> #<marker at 1337 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb.d\" .
+\\s-+8 253 0 0 0 6 520 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small.crc.cpio> #<marker at 1337 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb.d¨ .
\\s-+[[235538701 16877 1000 1000 2
\\s-+(23268 65535)
-\\s-+0 253 0 0 0 8 0 \"bbbbb.d\"]
-\\s-+#<marker at 1345 in alphabet_small.crc.cpio> #<marker at 1465 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"c\" .
+\\s-+0 253 0 0 0 8 0 ¨bbbbb.d¨«
+\\s-+#<marker at 1345 in alphabet_small.crc.cpio> #<marker at 1465 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨c¨ .
\\s-+[[235538699 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+4 253 0 0 0 2 129 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small.crc.cpio> #<marker at 1577 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"cc\" .
+\\s-+4 253 0 0 0 2 129 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small.crc.cpio> #<marker at 1577 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨cc¨ .
\\s-+[[235538700 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+5 253 0 0 0 3 228 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small.crc.cpio> #<marker at 1697 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" .
+\\s-+5 253 0 0 0 3 228 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small.crc.cpio> #<marker at 1697 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨ccc¨ .
\\s-+[[235538702 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+6 253 0 0 0 4 327 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small.crc.cpio> #<marker at 1821 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" .
+\\s-+6 253 0 0 0 4 327 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small.crc.cpio> #<marker at 1821 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨cccc¨ .
\\s-+[[235538703 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+7 253 0 0 0 5 426 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small.crc.cpio> #<marker at 1945 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" .
+\\s-+7 253 0 0 0 5 426 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small.crc.cpio> #<marker at 1945 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc¨ .
\\s-+[[235538704 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+8 253 0 0 0 6 525 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small.crc.cpio> #<marker at 2069 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"ccccc.d\" .
+\\s-+8 253 0 0 0 6 525 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small.crc.cpio> #<marker at 2069 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc.d¨ .
\\s-+[[235538707 16877 1000 1000 2
\\s-+(23268 65535)
-\\s-+0 253 0 0 0 8 0 \"ccccc.d\"]
-\\s-+#<marker at 2077 in alphabet_small.crc.cpio> #<marker at 2197 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified]))
+\\s-+0 253 0 0 0 8 0 ¨ccccc.d¨«
+\\s-+#<marker at 2077 in alphabet_small.crc.cpio> #<marker at 2197 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«))
"
"An string representing an untouched catalog.")
-(setq *cdmt-crc-untouched-catalog "((\"a\" .
+(setq *cdmt-crc-untouched-catalog "((¨a¨ .
\\s-+[[235538648 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+4 253 0 0 0 2 127 \"a\"]
-\\s-+#<marker at 1 in alphabet_small.crc.cpio> #<marker at 113 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"aa\" .
+\\s-+4 253 0 0 0 2 127 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small.crc.cpio> #<marker at 113 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨aa¨ .
\\s-+[[235538674 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+5 253 0 0 0 3 224 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small.crc.cpio> #<marker at 233 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" .
+\\s-+5 253 0 0 0 3 224 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small.crc.cpio> #<marker at 233 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨aaa¨ .
\\s-+[[235538688 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+6 253 0 0 0 4 321 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small.crc.cpio> #<marker at 357 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" .
+\\s-+6 253 0 0 0 4 321 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small.crc.cpio> #<marker at 357 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaa¨ .
\\s-+[[235538691 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+7 253 0 0 0 5 418 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small.crc.cpio> #<marker at 481 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" .
+\\s-+7 253 0 0 0 5 418 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small.crc.cpio> #<marker at 481 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa¨ .
\\s-+[[235538692 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+8 253 0 0 0 6 515 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small.crc.cpio> #<marker at 605 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa.d\" .
+\\s-+8 253 0 0 0 6 515 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small.crc.cpio> #<marker at 605 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa.d¨ .
\\s-+[[235538695 16877 1000 1000 2
\\s-+(23268 65535)
-\\s-+0 253 0 0 0 8 0 \"aaaaa.d\"]
-\\s-+#<marker at 613 in alphabet_small.crc.cpio> #<marker at 733 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"b\" .
+\\s-+0 253 0 0 0 8 0 ¨aaaaa.d¨«
+\\s-+#<marker at 613 in alphabet_small.crc.cpio> #<marker at 733 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨b¨ .
\\s-+[[235538693 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+4 253 0 0 0 2 128 \"b\"]
-\\s-+#<marker at 733 in alphabet_small.crc.cpio> #<marker at 845 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"bb\" .
+\\s-+4 253 0 0 0 2 128 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small.crc.cpio> #<marker at 845 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨bb¨ .
\\s-+[[235538694 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+5 253 0 0 0 3 226 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small.crc.cpio> #<marker at 965 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" .
+\\s-+5 253 0 0 0 3 226 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small.crc.cpio> #<marker at 965 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨bbb¨ .
\\s-+[[235538696 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+6 253 0 0 0 4 324 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small.crc.cpio> #<marker at 1089 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" .
+\\s-+6 253 0 0 0 4 324 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small.crc.cpio> #<marker at 1089 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbb¨ .
\\s-+[[235538697 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+7 253 0 0 0 5 422 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small.crc.cpio> #<marker at 1213 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" .
+\\s-+7 253 0 0 0 5 422 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small.crc.cpio> #<marker at 1213 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb¨ .
\\s-+[[235538698 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+8 253 0 0 0 6 520 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small.crc.cpio> #<marker at 1337 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb.d\" .
+\\s-+8 253 0 0 0 6 520 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small.crc.cpio> #<marker at 1337 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb.d¨ .
\\s-+[[235538701 16877 1000 1000 2
\\s-+(23268 65535)
-\\s-+0 253 0 0 0 8 0 \"bbbbb.d\"]
-\\s-+#<marker at 1345 in alphabet_small.crc.cpio> #<marker at 1465 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"c\" .
+\\s-+0 253 0 0 0 8 0 ¨bbbbb.d¨«
+\\s-+#<marker at 1345 in alphabet_small.crc.cpio> #<marker at 1465 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨c¨ .
\\s-+[[235538699 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+4 253 0 0 0 2 129 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small.crc.cpio> #<marker at 1577 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"cc\" .
+\\s-+4 253 0 0 0 2 129 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small.crc.cpio> #<marker at 1577 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨cc¨ .
\\s-+[[235538700 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+5 253 0 0 0 3 228 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small.crc.cpio> #<marker at 1697 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" .
+\\s-+5 253 0 0 0 3 228 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small.crc.cpio> #<marker at 1697 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨ccc¨ .
\\s-+[[235538702 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+6 253 0 0 0 4 327 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small.crc.cpio> #<marker at 1821 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" .
+\\s-+6 253 0 0 0 4 327 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small.crc.cpio> #<marker at 1821 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨cccc¨ .
\\s-+[[235538703 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+7 253 0 0 0 5 426 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small.crc.cpio> #<marker at 1945 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" .
+\\s-+7 253 0 0 0 5 426 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small.crc.cpio> #<marker at 1945 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc¨ .
\\s-+[[235538704 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+8 253 0 0 0 6 525 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small.crc.cpio> #<marker at 2069 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified])
- (\"ccccc.d\" .
+\\s-+8 253 0 0 0 6 525 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small.crc.cpio> #<marker at 2069 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc.d¨ .
\\s-+[[235538707 16877 1000 1000 2
\\s-+(23268 65535)
-\\s-+0 253 0 0 0 8 0 \"ccccc.d\"]
-\\s-+#<marker at 2077 in alphabet_small.crc.cpio> #<marker at 2197 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified]))
+\\s-+0 253 0 0 0 8 0 ¨ccccc.d¨«
+\\s-+#<marker at 2077 in alphabet_small.crc.cpio> #<marker at 2197 in
alphabet_small.crc.cpio> cpio-mode-entry-unmodified«))
")
(defvar *cdmt-crc-untouched-large-archive-buffer* "070702 (( magic ))
@@ -6712,7 +6721,6 @@ TRAILER!!! (( filename ))
.+
")
-
;;
;; Library
@@ -6720,41 +6728,6 @@ TRAILER!!! (( filename ))
(shell-command "cd test_data/alphabet ; make crc" nil nil)
-(defun cdmt-crc-reset (&optional make large)
- "Reset the current cpio-dired environment.
-If MAKE is non-nil, then run 'make crc' as part of the reset."
- (let ((fname "cdmt-crc-reset")
- (archive-name)
- (archive-names (list *cdmt-crc-small-archive*
- *cdmt-crc-large-archive*)))
- (cd run-dir)
- (mapc (lambda (an)
- (setq cpio-archive-buffer (find-file-noselect an nil nil))
- (if (and (file-exists-p an)
- (buffer-live-p (get-buffer cpio-archive-buffer)))
- (with-current-buffer cpio-archive-buffer
- (revert-buffer nil 'noconfirm))
- (condition-case v
- (kill-buffer cpio-dired-buffer)
- (error (message "%s(): no dired buffer to kill." fname)))))
- archive-names)
-
- (cd run-dir)
-
- (if make
- (shell-command "cd test_data/alphabet ; make crc" nil nil))
-
- (setq archive-name (if large
- *cdmt-crc-large-archive*
- *cdmt-crc-small-archive*))
-
- (delete-other-windows)
- (with-current-buffer (setq cpio-archive-buffer (find-file-noselect
archive-name nil nil))
- (if (string-match "/test_data/.+/test_data/" (buffer-file-name))
- (error "Bogus archive!"))
- (cpio-mode))
- (setq cpio-dired-buffer (switch-to-buffer (cpio-dired-buffer-name
archive-name)))))
-
(defun cdmt-crc-filter-archive-contents (archive-contents)
"Make the given ARCHIVE-CONTENTS fully printable and readable."
(let ((fname "cdmt-crc-filter-archive-contents")
@@ -6763,7 +6736,7 @@ If MAKE is non-nil, then run 'make crc' as part of the
reset."
(mapc (lambda (cm)
(let ((from (car cm))
(to (cdr cm)))
- (setq archive-contents (cdmt-crc-global-sub from to
archive-contents))))
+ (setq archive-contents (cdmt-global-sub from to
archive-contents))))
char-map)
archive-contents))
@@ -6797,375 +6770,6 @@ then the entry names will be incorrect."
(substring archive-contents (match-end
0)))))
(concat archive-contents "\n")))
-(defun cdmt-crc-global-sub (from-str to-str string)
- "Globally substitute TO-STR for FROM-STR in STRING and return the new string.
-In principal, FROM-STR can be a regular expression."
- (let ((fname "cdmt-crc-global-sub"))
- (while (string-match from-str string)
- (setq string (replace-match to-str nil t string 0)))
- string))
-
-;;
-;; Commands
-;;
-
-;;
-;; The contents of these tests were generated
-;; from the dired-mode-map definition
-;; (where commands are tagged as done).
-;; A few keyboard macros modified those results.
-;; The following commands were used to create the skeletons below
-
-(defun cdmt-crc-unfinished-command ()
- "Create a stub test for the next unfinished command."
- (interactive)
- (let ((fname "cdmt-crc-unfinished-command")
- (test-declaration-string "cdmt-crc-")
- (defined-command-regexp ".+) ;✓$")
- (command-name)
- (where))
- (cond ((catch 'found-it
- (while (search-forward test-declaration-string (point-max) t)
- (setq where (match-end 0))
- (unless (looking-at-p defined-command-regexp)
- (setq command-name (buffer-substring-no-properties where (1-
(line-end-position))))
- (throw 'found-it t)))
- nil)
- (goto-char (1- (line-end-position)))
- (delete-char 1)
- (insert " ()\n")
- (insert (format " \"Test %s.\n" command-name))
- (insert (format "%s is not yet implemented -- expect an error.\"\n"
command-name))
- (insert (format " (should-error (%s)\n" command-name))
- (insert " :type 'error))\n")
- t)
- (t nil))))
-
-(defun cdmt-crc-all-unfinished-commands ()
- "Write stub tests for all unfinished commands following point."
- (interactive)
- (let ((fname "cdmt-crc-all-unfinished-commands"))
- (while (cdmt-crc-unfinished-command))))
-
-(defun cdmt-crc-finished-command ()
- "Write a stub test for a finished command."
- (interactive)
- (let ((fname "cdmt-crc-finished-command")
- (finished-command-regexp ") ;✓$")
- (command-name)
- (where)
- )
- (cond ((re-search-forward finished-command-regexp (point-max) t)
- (beginning-of-line)
- (re-search-forward "cdmt-crc-" (line-end-position))
- (setq where (match-end 0))
- (end-of-line)
- (backward-char 4)
- (setq command-name (buffer-substring-no-properties where (point)))
-
- (insert " (")
- (end-of-line)
- (insert "\n")
- (insert (format " \"Test the function M-x cpio-%s.\"\n"
command-name))
- (insert " (shell-command \"cd test_data/alphabet ; make
crc\" nil nil)\n")
- (insert (format " (let ((test-name \"cdmt-crc-%s\")\n"
command-name))
- (insert " (cpio-archive-buffer)\n")
- (insert " (cpio-archive-buffer-contents)\n")
- (insert " (cpio-dired-buffer)\n")
- (insert " (cpio-dired-buffer-contents)\n")
- (insert " )\n")
- (insert " (cdmt-crc-reset)\n")
- (insert "\n")
- (insert (format " (%s)\n" command-name))
- (insert "PREPARATION\n")
- (insert "\n")
- (insert " (setq cpio-archive-buffer-contents\n")
- (insert " (cdmt-crc-filter-archive-contents\n")
- (insert " (with-current-buffer
cpio-archive-buffer\n")
- (insert " (buffer-substring-no-properties
(point-min) (point-max))))\n")
- (insert " (should (string-match \"\"
cpio-archive-buffer-contents))\n")
- (insert " (setq cpio-dired-buffer-contents\n")
- (insert " (with-current-buffer cpio-dired-buffer\n")
- (insert " (buffer-substring-no-properties
(point-min) (point-max))))\n")
- (insert " (should (string-equal
cpio-dired-buffer-contents \"\"))\n")
- (insert "\n")
- (insert " (kill-buffer cpio-dired-buffer) ; This should
kill the archive buffer too.\n")
- (insert " ))\n")
- t)
- (t nil))))
-
-(defun cdmt-crc-all-finished-commands ()
- "Build stub tests for all the finished commands."
- (interactive)
- (let ((fname "cdmt-crc-all-finished-commands"))
- (while (cdmt-crc-finished-command))))
-
-(defun cdmt-crc-ediff-results ()
- "Compare the results of a (string-match) on the current line in a buffer of
ERT results.
-The results are always presented as (string-match EXPECTED-RE ACTUAL) on that
line."
- (interactive)
- (let ((fname "cdmt-crc-ediff-results")
- (expected)
- (actual)
- (start))
- (beginning-of-line)
- (re-search-forward "string-\\(match\\|equal\\) " (line-end-position))
-
- (setq start (1+ (point)))
- (forward-sexp)
- (setq expected (buffer-substring-no-properties start (1- (point))))
-
- (forward-char 1)
-
- (setq start (1+ (point)))
- (forward-sexp)
- (setq actual (buffer-substring-no-properties start (1- (point))))
-
- (with-current-buffer (get-buffer-create "expected")
- (erase-buffer)
- (insert expected)
- (goto-char (point-min))
- (while (search-forward "\\n" (point-max) t)
- (replace-match "\n\n"))
- (goto-char (point-min)))
-
- (with-current-buffer (get-buffer-create "actual")
- (erase-buffer)
- (insert actual)
- (goto-char (point-min))
- (while (search-forward "\\n" (point-max) t)
- (replace-match "\n\n"))
- (goto-char (point-min)))
-
- ;; (pop-to-buffer "expected")
- ;; (switch-to-buffer "actual")
-
- (ediff-buffers "actual" "expected")))
-
-
-(defun cdmt-crc-do-cpio-id (where archive)
- "Run cpio(1) on the given ARCHIVE and report the results.
-WHERE Should be a line number."
- (let* ((fname "cdmt-crc-do-cpio-id")
- (buf-name "*cpio output*")
- (buf (get-buffer buf-name))
- (make-directory "qwerqwer"))
- (if (file-exists-p "qwerqwer")
- (should (and (format "remove didn't work (line %d)" where)
- (call-process "rm" nil nil nil "-rf" "qwerqwer"))))
- (make-directory "qwerqwer")
- (should (and (format "cd didn't work (line %d)" where)
- (cd "qwerqwer")))
- (if (buffer-live-p buf)
- (with-current-buffer buf-name (erase-buffer)))
- (should (and (format "cpio on saved archive failed (line %d)." where)
- (= 0 (call-process "cpio" (concat "../" archive) buf nil
"-id"))))
- (should (and "Checking cpio output."
- (with-current-buffer buf-name
- (string-match "[[:digit:]]+ blocks\n"
(buffer-substring-no-properties (point-min) (point-max))))))
- (kill-buffer buf)
- (cd "..")))
-
-(defun cdmt-crc-sweep ()
- "Sweep the cpio-dired-test.el buffer and make changes
-to help make tests pass correctly."
- (interactive)
- (let ((fname "cdmt-crc-sweep"))
- (cdmt-crc-sweep-ids)
- (cdmt-crc-sweep-times)))
-
-(defun cdmt-crc-sweep-ids ()
- "Replace UIDs and GIDs = [[:digit:]]+ by a better RE."
- (let ((fname "cdmt-crc-sweep-ids"))
- (save-excursion
- (save-restriction
- (goto-char (point-min))
- (while (re-search-forward "\\s-+\\(1000\\)\\s-" (point-max) t)
- (replace-match "[[:digit:]]+" 'fixed-case 'literal nil 1))))))
-
-(defun cdmt-crc-sweep-times ()
- "Replace times (date-times) with a better RE."
- (let ((fname "cdmt-crc-sweep-times"))
- (save-excursion
- (save-restriction
- (goto-char (point-min))
- (while (re-search-forward
"\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\}" (point-max) t)
- (replace-match
"\\\\\\\\(?:a\\\\\\\\(?:pr\\\\\\\\|ug\\\\\\\\)\\\\\\\\|dec\\\\\\\\|feb\\\\\\\\|j\\\\\\\\(?:an\\\\\\\\|u[ln]\\\\\\\\)\\\\\\\\|ma[ry]\\\\\\\\|nov\\\\\\\\|oct\\\\\\\\|sep\\\\\\\\)
[[:digit:]]\\\\\\\\{2\\\\\\\\}
[[:digit:]]\\\\\\\\{2\\\\\\\\}:[[:digit:]]\\\\\\\\{2\\\\\\\\}" nil nil nil
0))))))
-
-;; This keyboard macro proved useful in working on chmod.
-;; Here's the setup:
-;; ┌──────────┬───────────┐
-;; │ Filtered │ dired │
-;; │ archive │ style │
-;; │ buffer. │ buffer │
-;; │ point at ├───────────┤
-;; │ point-min│ *scratch* │
-;; │ │ │
-;; └──────────┴───────────┘
-;; FYI cm- = chmod macro
-(defvar cm-archive-window)
-(defvar cm-dired-window)
-(defvar scratch-window)
-(defun cm-setup ()
- "Prepare the window setup for (cm)."
- (interactive)
- (let ((fname "cm-setup"))
- (delete-other-windows)
- (switch-to-buffer "actual")
- (setq cm-archive-window (selected-window))
- (split-window-right)
- (other-window 1)
- (switch-to-buffer "CPIO archive: alphabet_small.crc.cpio")
- (cpio-dired-move-to-first-entry)
- (setq cm-dired-window (selected-window))
- (split-window)
- (other-window 1)
- (switch-to-buffer "*scratch*")
- (setq scratch-window (selected-window))
- (other-window 1)
- (goto-char (point-min))))
-(defun cm ()
- "Run a verification of the next mode in the archive."
- (interactive)
- (let ((fname "cm")
- (mode-hex-string)
- (entry-name))
- (search-forward "magic")
- (recenter-top-bottom 0)
- (search-forward "mode")
- (setq mode-hex-string (buffer-substring-no-properties
- (line-beginning-position)
- (+ 8 (line-beginning-position))))
- (search-forward "filename")
- (beginning-of-line)
- (looking-at "[[:graph:]]+")
- (setq entry-name (match-string-no-properties 0))
- (other-window 2)
- (insert (format "%s:\t%06o\n" entry-name (string-to-number mode-hex-string
16)))
- (other-window 2)
- (dired-next-line 1)
- (other-window 2)))
-
-(defun cdmt-crc-sweep-catalog ()
- "Clean up a copy of the cpio catalog,
-as presented in an 'actual' buffer (see `cdmt-crc-ediff-results')
-for use in a string-match-p."
- ;; If this were written in good LISP,
- ;; then it would be a (mapcar)
- ;; over a list of (cons RE replacement)
- ;; with a (replace-match).
- ;; However, I think the comments are helpful.
- (interactive)
- (let ((fname "cdmt-crc-sweep-catalog"))
- ;; Opening [.
- (goto-char (point-min))
- (while (re-search-forward "\\[" (point-max) t)
- (replace-match "\\\\["))
- ;; Closing ].
- (goto-char (point-min))
- (while (search-forward "]" (point-max) t)
- (replace-match "\\\\]"))
- ;; '.'
- (goto-char (point-min))
- (while (search-forward "." (point-max) t)
- (replace-match "\\\\."))
- ;; ino
- (goto-char (point-min))
- (while (re-search-forward "\\\\[\\\\[[[:digit:]]+" (point-max) t)
- (replace-match "\\\\[\\\\[[[:digit:]]+"))
- ;; UID/GID
- (goto-char (point-min))
- (while (re-search-forward "\\<1000\\>" (point-max) t)
- (replace-match "[[:digit:]]+"))
- ;; mtime
- (goto-char (point-min))
- (while (re-search-forward "([[:digit:]]+ [[:digit:]]+)" (point-max) t)
- (replace-match "([[:digit:]]+ [[:digit:]]+)"))
- ;; devs
- (goto-char (point-min))
- (while (re-search-forward "\\(\\s-[[:digit:]]+\\) [[:digit:]]+
[[:digit:]]+ [[:digit:]]+ [[:digit:]]+" (point-max) t)
- (replace-match "\\1 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+
[[:digit:]]+"))
- ;; Double new lines.
- (goto-char (point-min))
- (while (search-forward "\n\n" (point-max) t)
- (replace-match "\n"))
- ;; Finally, make the result a string.
- (goto-char (point-min))
- (insert "\"")
- (goto-char (point-max))
- (insert "\"")
- ;; Grab the whole buffer.
- (copy-region-as-kill (point-min) (point-max))))
-
-(defun cdmt-crc-test-save (&optional large)
- "A generic test to run at the end of every test
-to check that the saved archive seems sane."
- (cd run-dir)
- (let* ((fname "cdmt-crc-test-save")
- (alphabet-dir (concat default-directory "test_data/alphabet"))
- (test-buffer-dir (concat alphabet-dir "/asdfasdf"))
- (test-buffer)
- (directory default-directory)
- (dired-buffer (current-buffer))
- (archive (if large "../alphabet.crc.cpio"
- "../alphabet_small.crc.cpio")))
- (unless (eq major-mode 'cpio-dired-mode)
- (error "%s(): You're not in a cpio-dired buffer." fname))
-
- (if (file-exists-p test-buffer-dir)
- (call-process "rm" nil nil nil "-rf" test-buffer-dir))
- (if (file-exists-p test-buffer-dir)
- (error "%s(): Removing %s failed." fname test-buffer-dir))
- (with-current-buffer cpio-archive-buffer
- (cpio-dired-save-archive))
- (make-directory test-buffer-dir 'parents)
-
- (cd test-buffer-dir)
- (with-current-buffer (find-file-noselect test-buffer-dir)
- (call-process "cpio" archive nil nil "-id")
- (mapc (lambda (en)
- ;; No, this isn't bullet proof or even correct.
- ;; It's just a sanity check; it's certainly not complete.
- (should (file-exists-p (car en))))
- (with-current-buffer cpio-archive-buffer
- (cpio-catalog))))
- (cd directory)))
-
-(defun cdmt-crc-chksum-sweep ()
- "Fix the newc checksums (all 0) as crc checksums."
- (interactive)
- (let ((fname "cdmt-crc-chksum-sweep")
- (chksum-alist (list
- (cons "a" 127)
- (cons "aa" 224)
- (cons "aaa" 321)
- (cons "aaaa" 418)
- (cons "aaaaa" 515)
- (cons "aaaaa.d" 0)
-
- (cons "b" 128)
- (cons "bb" 226)
- (cons "bbb" 324)
- (cons "bbbb" 422)
- (cons "bbbbb" 520)
- (cons "bbbbb.d" 0)
-
- (cons "c" 129)
- (cons "cc" 228)
- (cons "ccc" 327)
- (cons "cccc" 426)
- (cons "ccccc" 525)
- (cons "ccccc.d" 0))))
- (mapc (lambda (info)
- (let ((name (car info))
- (chksum (cdr info)))
- ;; (goto-char (point-min))
- ;; (while (re-search-forward (format " \\(nil\\) ..%s..]" name)
(point-max) t)
- ;; (replace-match (number-to-string chksum) nil nil nil 1))
- (goto-char (point-min))
- (while (re-search-forward (format " \\(nil\\)
..newDirectory/%s..]" name) (point-max) t)
- (replace-match (number-to-string chksum) nil nil nil 1))))
- chksum-alist)))
;;
;; Tests
@@ -7185,14 +6789,14 @@ to check that the saved archive seems sane."
(cpio-archive-buffer-contents)
(cpio-dired-buffer)
(cpio-dired-buffer-contents))
- (cdmt-crc-reset 'make)
+ (cdmt-reset 'make)
(cpio-dired-kill)
- (should (and "Dired style buffer should not be live."
- (not (buffer-live-p cpio-dired-buffer))))
- (should (and "Archive buffer should not be live."
- (not (buffer-live-p cpio-archive-buffer))))))
+ (should (progn (message "%s(): Dired style buffer should not be live."
test-name)
+ (not (buffer-live-p cpio-dired-buffer))))
+ (should (progn (message "%s(): Archive buffer should not be live."
test-name)
+ (not (buffer-live-p cpio-archive-buffer))))))
(ert-deftest cdmt-crc-cpio-dired-do-isearch ()
"Test cpio-dired-do-isearch.
@@ -7204,43 +6808,1836 @@ cpio-dired-do-isearch is not yet implemented --
expect an error."
"Test cpio-dired-do-isearch-regexp.
cpio-dired-do-isearch-regexp is not yet implemented -- expect an error."
(should-error (cpio-dired-do-isearch-regexp)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-isearch-entry-names ()
"Test cpio-dired-isearch-entry-names.
cpio-dired-isearch-entry-names is not yet implemented -- expect an error."
(should-error (cpio-dired-isearch-entry-names)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-isearch-entry-names-regexp ()
"Test cpio-dired-isearch-entry-names-regexp.
cpio-dired-isearch-entry-names-regexp is not yet implemented -- expect an
error."
(should-error (cpio-dired-isearch-entry-names-regexp)
- :type 'error))
+ :type 'error))
+;;;;;;;; This gets an end-of-buffer error under ERT.
+;;;;;;;; (ert-deftest cdmt-crc-cpio-dired-save-archive-0 () ;✓
+;;;;;;;; "Test the function of M-x cpio-dired-save-archive."
+;;;;;;;; (let ((test-name "cdmt-crc-cpio-dired-save-archive")
+;;;;;;;; (cpio-archive-buffer)
+;;;;;;;; (cpio-archive-buffer-contents-before)
+;;;;;;;; (cpio-archive-buffer-contents)
+;;;;;;;; (cpio-dired-buffer)
+;;;;;;;; (cpio-dired-buffer-contents-before)
+;;;;;;;; (cpio-dired-buffer-contents)
+;;;;;;;; )
+;;;;;;;; (cdmt-reset 'make)
+
+;;;;;;;; (progn (goto-char (point-min))
+;;;;;;;; (re-search-forward " aa$" (point-max))
+;;;;;;;; (cpio-dired-do-delete 1)
+;;;;;;;; (setq cpio-archive-buffer-contents-before
+;;;;;;;; (cdmt-crc-filter-archive-contents (with-current-buffer
cpio-archive-buffer
+;;;;;;;;
(buffer-substring-no-properties (point-min) (point-max)))))
+;;;;;;;; (setq cpio-dired-buffer-contents-before (with-current-buffer
cpio-dired-buffer
+;;;;;;;;
(buffer-substring-no-properties (point-min) (point-max)))))
+
+;;;;;;;; (should (and "Archive buffer should be modified."
+;;;;;;;; (buffer-modified-p cpio-archive-buffer)))
+;;;;;;;; (should (and "Archive buffer should be missing exactly the entry
for aa."
+;;;;;;;; (string-equal "070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000002 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; a (( filename ))
+
+;;;;;;;; a
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000004 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaa (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; aaa
+
+;;;;;;;; \\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000005 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaaa (( filename ))
+;;;;;;;; \\0
+;;;;;;;; aaaa
+
+;;;;;;;; \\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaaaa (( filename ))
+
+;;;;;;;; aaaaa
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaaaa.d (( filename ))
+;;;;;;;; \\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000002 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; b (( filename ))
+
+;;;;;;;; b
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000005 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000003 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bb (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; bb
+
+;;;;;;;; \\0\\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000004 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbb (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; bbb
+
+;;;;;;;; \\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000005 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbbb (( filename ))
+;;;;;;;; \\0
+;;;;;;;; bbbb
+
+;;;;;;;; \\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbbbb (( filename ))
+
+;;;;;;;; bbbbb
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbbbb.d (( filename ))
+;;;;;;;; \\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000002 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; c (( filename ))
+
+;;;;;;;; c
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000005 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000003 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; cc (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; cc
+
+;;;;;;;; \\0\\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000004 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; ccc (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; ccc
+
+;;;;;;;; \\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000005 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; cccc (( filename ))
+;;;;;;;; \\0
+;;;;;;;; cccc
+
+;;;;;;;; \\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; ccccc (( filename ))
+
+;;;;;;;; ccccc
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; ccccc.d (( filename ))
+;;;;;;;; \\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 00000000 (( mode ))
+;;;;;;;; 00000000 (( uid ))
+;;;;;;;; 00000000 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 0000000B (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; TRAILER!!! (( filename ))
+;;;;;;;;
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
+;;;;;;;; (should (and "Checking dired-style buffer before saving."
+;;;;;;;; (string-match "CPIO archive: alphabet_small.crc.cpio:
+
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaa
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaa
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} b
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} c
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
+;;;;;;;; " cpio-dired-buffer-contents-before)))
+
+;;;;;;;; (progn (cpio-dired-save-archive)
+;;;;;;;; (setq cpio-archive-buffer-contents
+;;;;;;;; (cdmt-crc-filter-archive-contents
+;;;;;;;; (with-current-buffer cpio-archive-buffer
+;;;;;;;; (buffer-substring-no-properties (point-min)
(point-max)))))
+;;;;;;;; (setq cpio-dired-buffer-contents
+;;;;;;;; (with-current-buffer cpio-dired-buffer
+;;;;;;;; (buffer-substring-no-properties (point-min)
(point-max)))))
+
+;;;;;;;; ;; (cdmt-crc-do-cpio-id (count-lines (point-min)(point))
(file-name-nondirectory *cdmt-crc-small-archive*))
+
+;;;;;;;; (should (and "Archive buffer should no longer be modified."
+;;;;;;;; (not (buffer-modified-p cpio-archive-buffer))))
+;;;;;;;; (should (and "Checking the archive buffer after saving."
+;;;;;;;; (string-equal "070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000002 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; a (( filename ))
+
+;;;;;;;; a
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000004 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaa (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; aaa
+
+;;;;;;;; \\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000005 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaaa (( filename ))
+;;;;;;;; \\0
+;;;;;;;; aaaa
+
+;;;;;;;; \\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaaaa (( filename ))
+
+;;;;;;;; aaaaa
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaaaa.d (( filename ))
+;;;;;;;; \\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000002 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; b (( filename ))
+
+;;;;;;;; b
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000005 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000003 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bb (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; bb
+
+;;;;;;;; \\0\\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000004 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbb (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; bbb
+
+;;;;;;;; \\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000005 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbbb (( filename ))
+;;;;;;;; \\0
+;;;;;;;; bbbb
+
+;;;;;;;; \\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbbbb (( filename ))
+
+;;;;;;;; bbbbb
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbbbb.d (( filename ))
+;;;;;;;; \\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000002 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; c (( filename ))
+
+;;;;;;;; c
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000005 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000003 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; cc (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; cc
+
+;;;;;;;; \\0\\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000004 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; ccc (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; ccc
+
+;;;;;;;; \\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000005 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; cccc (( filename ))
+;;;;;;;; \\0
+;;;;;;;; cccc
+
+;;;;;;;; \\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; ccccc (( filename ))
+
+;;;;;;;; ccccc
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; ccccc.d (( filename ))
+;;;;;;;; \\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 00000000 (( mode ))
+;;;;;;;; 00000000 (( uid ))
+;;;;;;;; 00000000 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 0000000B (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; TRAILER!!! (( filename ))
+;;;;;;;;
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
+
+;;;;;;;; (should (and "Checking the dired-style buffer after saving."
+;;;;;;;; (string-match "CPIO archive: alphabet_small.crc.cpio:
+
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaa
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaa
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} b
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} c
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
+;;;;;;;; " cpio-dired-buffer-contents)))
+
+;;;;;;;; ;; The archive strings should be identical up to the TRAILER!!!
padding.
+;;;;;;;; ;; NO! Padding after any added, deleted or changed entry will
also change.
+;;;;;;;; ;; (string-match "TRAILER!!!" cpio-archive-buffer-contents-before)
+;;;;;;;; ;; (setq cpio-archive-buffer-contents-before (substring
cpio-archive-buffer-contents-before 0 (match-end 0)))
+;;;;;;;; ;; (string-match "TRAILER!!!" cpio-archive-buffer-contents)
+;;;;;;;; ;; (setq cpio-archive-buffer-contents (substring
cpio-archive-buffer-contents 0 (match-end 0)))
+;;;;;;;; ;; (should (string-equal cpio-archive-buffer-contents-before
cpio-archive-buffer-contents))
+
+;;;;;;;; (should (and "The dired style buffer should not have changed."
+;;;;;;;; (string-equal cpio-dired-buffer-contents-before
cpio-dired-buffer-contents)))
+
+;;;;;;;; (cdmt-reset)
+
+;;;;;;;; (progn (goto-char (point-min))
+;;;;;;;; (re-search-forward " aaaa$" (point-max))
+;;;;;;;; (setq unread-command-events (listify-key-sequence "dddd\n"))
+;;;;;;;; (cpio-dired-do-rename 1)
+;;;;;;;; (cpio-dired-save-archive)
+;;;;;;;; (setq cpio-archive-buffer-contents
+;;;;;;;; (cdmt-crc-filter-archive-contents
+;;;;;;;; (with-current-buffer cpio-archive-buffer
+;;;;;;;; (buffer-substring-no-properties (point-min)
(point-max)))))
+;;;;;;;; (setq cpio-dired-buffer-contents
+;;;;;;;; (with-current-buffer cpio-dired-buffer
+;;;;;;;; (buffer-substring-no-properties (point-min)
(point-max)))))
+
+;;;;;;;; ;; (cdmt-crc-do-cpio-id (count-lines (point-min) (point-max))
(file-name-nondirectory *cdmt-crc-small-archive*))
+
+;;;;;;;; (should (and "Expecting the standard archive with aaaa moved to
ddddd."
+;;;;;;;; (string-equal "070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000002 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; a (( filename ))
+
+;;;;;;;; a
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000004 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaa (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; aaa
+
+;;;;;;;; \\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaaaa (( filename ))
+
+;;;;;;;; aaaaa
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaaaa.d (( filename ))
+;;;;;;;; \\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000002 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; b (( filename ))
+
+;;;;;;;; b
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000005 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000003 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bb (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; bb
+
+;;;;;;;; \\0\\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000004 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbb (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; bbb
+
+;;;;;;;; \\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000005 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbbb (( filename ))
+;;;;;;;; \\0
+;;;;;;;; bbbb
+
+;;;;;;;; \\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbbbb (( filename ))
+
+;;;;;;;; bbbbb
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbbbb.d (( filename ))
+;;;;;;;; \\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000002 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; c (( filename ))
+
+;;;;;;;; c
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000005 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+
+;;;;;;;; 00000003 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; cc (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; cc
+
+;;;;;;;; \\0\\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000004 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; ccc (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; ccc
+
+;;;;;;;; \\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000005 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; cccc (( filename ))
+;;;;;;;; \\0
+;;;;;;;; cccc
+
+;;;;;;;; \\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; ccccc (( filename ))
+
+;;;;;;;; ccccc
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; ccccc.d (( filename ))
+;;;;;;;; \\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000005 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; dddd (( filename ))
+;;;;;;;; \\0
+;;;;;;;; aaaa
+
+;;;;;;;; \\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 00000000 (( mode ))
+;;;;;;;; 00000000 (( uid ))
+;;;;;;;; 00000000 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 0000000B (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; TRAILER!!! (( filename ))
+;;;;;;;;
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
+
+;;;;;;;; (should (and "Expecting a dired style buffer without aaaa."
+;;;;;;;; (string-match "CPIO archive: alphabet_small.crc.cpio:
+
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaa
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} b
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} c
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} dddd
+;;;;;;;; " cpio-dired-buffer-contents)))
+
+;;;;;;;; (cdmt-reset)
+
+;;;;;;;; (progn (goto-char (point-min))
+;;;;;;;; (re-search-forward " b$" (point-max))
+;;;;;;;; (cpio-dired-mark 4)
+;;;;;;;; (setq unread-command-events (listify-key-sequence "d\n"))
+;;;;;;;; (cpio-dired-do-rename 1)
+;;;;;;;; (cpio-dired-save-archive)
+;;;;;;;; (setq cpio-archive-buffer-contents
+;;;;;;;; (cdmt-crc-filter-archive-contents
+;;;;;;;; (with-current-buffer cpio-archive-buffer
+;;;;;;;; (buffer-substring-no-properties (point-min)
(point-max)))))
+;;;;;;;; (setq cpio-dired-buffer-contents
+;;;;;;;; (with-current-buffer cpio-dired-buffer
+;;;;;;;; (buffer-substring-no-properties (point-min)
(point-max)))))
+
+;;;;;;;; ;; (cdmt-crc-do-cpio-id (count-lines (point-min) (point-max))
(file-name-nondirectory *cdmt-crc-small-archive*))
+
+;;;;;;;; (should (and "Expecting a small archive with d/b, d/bb, d/bbb,
d/bbbb."
+;;;;;;;; (string-equal "070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000002 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; a (( filename ))
+
+;;;;;;;; a
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000004 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaa (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; aaa
+
+;;;;;;;; \\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaaaa (( filename ))
+
+;;;;;;;; aaaaa
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaaaa.d (( filename ))
+;;;;;;;; \\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbbbb (( filename ))
+
+;;;;;;;; bbbbb
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbbbb.d (( filename ))
+;;;;;;;; \\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000002 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; c (( filename ))
+
+;;;;;;;; c
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000005 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000003 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; cc (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; cc
+
+;;;;;;;; \\0\\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000004 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; ccc (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; ccc
+
+;;;;;;;; \\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000005 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; cccc (( filename ))
+;;;;;;;; \\0
+;;;;;;;; cccc
+
+;;;;;;;; \\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; ccccc (( filename ))
+
+;;;;;;;; ccccc
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; ccccc.d (( filename ))
+;;;;;;;; \\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000005 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; dddd (( filename ))
+;;;;;;;; \\0
+;;;;;;;; aaaa
+
+;;;;;;;; \\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000007 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; d/bbbb (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; bbbb
+
+;;;;;;;; \\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; d/bbb (( filename ))
+
+;;;;;;;; bbb
+
+;;;;;;;; \\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000005 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000005 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; d/bb (( filename ))
+;;;;;;;; \\0
+;;;;;;;; bb
+
+;;;;;;;; \\0\\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000004 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; d/b (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; b
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 00000000 (( mode ))
+;;;;;;;; 00000000 (( uid ))
+;;;;;;;; 00000000 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 0000000B (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; TRAILER!!! (( filename ))
+;;;;;;;;
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
+
+;;;;;;;; ;; (cdmt-crc-do-cpio-id (count-lines (point-min) (point-max))
(file-name-nondirectory *cdmt-crc-small-archive*))
+
+;;;;;;;; (should (and "Looking for a small dired-style buffer with d/b,
d/bb, d/bbb, d/bbbb"
+;;;;;;;; (string-match "CPIO archive: alphabet_small.crc.cpio:
+
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaa
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} c
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} dddd
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} d/bbbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} d/bbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} d/bb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} d/b
+;;;;;;;; " cpio-dired-buffer-contents)))
+
+;;;;;;;; (cdmt-reset)
+
+;;;;;;;; (progn (cpio-dired-mark-entries-regexp "\\`...\\'")
+;;;;;;;; (setq unread-command-events (listify-key-sequence
"newDirectory\n"))
+;;;;;;;; ;; HEREHERE This rename does something wrong.
+;;;;;;;; (cpio-dired-do-rename 1)
+;;;;;;;; (cpio-dired-save-archive)
+;;;;;;;; (setq cpio-archive-buffer-contents
+;;;;;;;; (cdmt-crc-filter-archive-contents
+;;;;;;;; (with-current-buffer cpio-archive-buffer
+;;;;;;;; (buffer-substring-no-properties (point-min)
(point-max)))))
+;;;;;;;; (setq cpio-dired-buffer-contents
+;;;;;;;; (with-current-buffer cpio-dired-buffer
+;;;;;;;; (buffer-substring-no-properties (point-min)
(point-max)))))
+
+;;;;;;;; ;; (cdmt-crc-do-cpio-id (count-lines (point-min) (point-max))
(file-name-nondirectory *cdmt-crc-small-archive*))
+
+;;;;;;;; (should (string-equal "070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000002 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; a (( filename ))
+
+;;;;;;;; a
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaaaa (( filename ))
+
+;;;;;;;; aaaaa
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaaaa.d (( filename ))
+;;;;;;;; \\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbbbb (( filename ))
+
+;;;;;;;; bbbbb
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbbbb.d (( filename ))
+;;;;;;;; \\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000002 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; c (( filename ))
+
+;;;;;;;; c
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000005 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000003 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; cc (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; cc
+
+;;;;;;;; \\0\\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000005 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; cccc (( filename ))
+;;;;;;;; \\0
+;;;;;;;; cccc
+
+;;;;;;;; \\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; ccccc (( filename ))
+
+;;;;;;;; ccccc
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; ccccc.d (( filename ))
+;;;;;;;; \\0\\0070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000005 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; dddd (( filename ))
+;;;;;;;; \\0
+;;;;;;;; aaaa
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000012 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; newDirectory/bbbb (( filename ))
+
+;;;;;;;; bbbb
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000011 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; newDirectory/bbb (( filename ))
+;;;;;;;; \\0
+;;;;;;;; bbb
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000005 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000010 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; newDirectory/bb (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; bb
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 0000000F (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; newDirectory/b (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; b
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000011 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; newDirectory/ccc (( filename ))
+;;;;;;;; \\0
+;;;;;;;; ccc
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000011 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; newDirectory/aaa (( filename ))
+;;;;;;;; \\0
+;;;;;;;; aaa
+
+;;;;;;;; 070702 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 00000000 (( mode ))
+;;;;;;;; 00000000 (( uid ))
+;;;;;;;; 00000000 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 0000000B (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; TRAILER!!! (( filename ))
+;;;;;;;;
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
+
+;;;;;;;; (should (= 0 1))
+
+;;;;;;;; ;; (cdmt-crc-do-cpio-id (count-lines (point-min) (point-max))
(file-name-nondirectory *cdmt-crc-small-archive*))
+
+;;;;;;;; (should (string-match "CPIO archive: alphabet_small.crc.cpio:
+
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} c
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} dddd
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory/bbbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory/bbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory/bb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory/b
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory/ccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory/aaa
+;;;;;;;; " cpio-dired-buffer-contents))
+
+;;;;;;;; (should (= 0 1))
+
+;;;;;;;; ;; (cdmt-crc-do-cpio-id (count-lines (point-min) (point-max))
(file-name-nondirectory *cdmt-crc-small-archive*))
+
+;;;;;;;; ))
(ert-deftest cdmt-crc-cpio-dired-add-entry ()
"Test cpio-dired-add-entry.
cpio-dired-add-entry is not yet implemented -- expect an error."
(should-error (cpio-dired-add-entry)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-change-marks ()
"Test cpio-dired-change-marks.
cpio-dired-change-marks is not yet implemented -- expect an error."
(should-error (cpio-dired-change-marks)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-clean-directory ()
"Test cpio-dired-clean-directory.
cpio-dired-clean-directory is not yet implemented -- expect an error."
(should-error (cpio-dired-clean-directory)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-copy-entry-name-as-kill ()
(should-error (cpio-dired-copy-entry-name-as-kill 1)
:type 'error))
-
+
(ert-deftest NOT-YET-cdmt-crc-cpio-dired-copy-entry-name-as-kill ()
"Test cpio-dired-copy-entry-name-as-kill.
cpio-dired-copy-entry-name-as-kill is not yet implemented -- expect an error."
@@ -7258,19 +8655,19 @@ cpio-dired-copy-entry-name-as-kill is not yet
implemented -- expect an error."
(kill-ring-before)
(entry-names)
(interprogram-paste-function nil))
- (cdmt-crc-reset 'make)
-
+ (cdmt-reset 'make)
+
(progn (setq current-kill-before (current-kill 0 'do-not-move))
(cpio-dired-next-line 2)
(push (cpio-dired-get-entry-name) entry-names)
(cpio-dired-copy-entry-name-as-kill 1))
-
+
(while entry-names
(should (string-equal (current-kill 0) (pop entry-names)))
(current-kill 1))
;; Use (equal) here because the kill ring could have been empty.
(should (equal (current-kill 0) current-kill-before))
-
+
(progn (cpio-dired-next-line 2)
(cpio-dired-copy-entry-name-as-kill 4)
(save-excursion
@@ -7290,7 +8687,7 @@ cpio-dired-copy-entry-name-as-kill is not yet implemented
-- expect an error."
"Test cpio-dired-diff) ;.
cpio-dired-diff) ; is not yet implemented -- expect an error."
(should-error (cpio-dired-diff) ;)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-display-entry () ;✓
"Test the function of M-x cpio-dired-display-entry."
@@ -7306,11 +8703,11 @@ cpio-dired-diff) ; is not yet implemented -- expect an
error."
(cpio-catalog-contents-after)
(cpio-contents-window)
(entry-name))
- (cdmt-crc-reset 'make)
+ (cdmt-reset 'make)
(set-buffer (setq cpio-dired-buffer (get-buffer (cpio-dired-buffer-name
*cdmt-crc-small-archive*))))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(setq entry-name "aaa")
(goto-char (point-min))
(cpio-dired-goto-entry entry-name)
@@ -7331,32 +8728,32 @@ cpio-dired-diff) ; is not yet implemented -- expect an
error."
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp
(cpio-catalog))))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog))))
(with-current-buffer cpio-dired-buffer
;;(should (and "Viewing an entry should not change the archive buffer."
- (should (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents))
- (should (and "Viewing an entry should not change the dired-style buffer."
- (string-match *cdmt-crc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "The contents buffer should not be null."
- (not (null cpio-contents-buffer))))
- (should (and "The contents buffer should be live."
- (buffer-live-p cpio-contents-buffer)))
- (should (and "Check the entry's contents buffer."
- (string-equal cpio-contents-buffer-string "\naaa\n\n")))
- (should (and "The entry's contents' window should be live."
- (window-live-p cpio-contents-window)))
- (should (and "Expecting no change to the catalog."
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after))))
-
- (cdmt-crc-reset)
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (should (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents))
+ (should (progn (message "%s(): Viewing an entry should not change the
dired-style buffer." test-name)
+ (string-match *cdmt-crc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "%s(): The contents buffer should not be null."
test-name)
+ (not (null cpio-contents-buffer))))
+ (should (progn (message "%s(): The contents buffer should be live."
test-name)
+ (buffer-live-p cpio-contents-buffer)))
+ (should (progn (message "%s(): Check the entry's contents buffer."
test-name)
+ (string-equal cpio-contents-buffer-string "\naaa\n\n")))
+ (should (progn (message "%s(): The entry's contents' window should be
live." test-name)
+ (window-live-p cpio-contents-window)))
+ (should (progn (message "%s(): Expecting no change to the catalog."
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after))))
+
+ (cdmt-reset)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(setq entry-name "ccc")
(goto-char (point-min))
(re-search-forward " ccc$" (point-max))
(cpio-dired-display-entry)
-
+
(with-current-buffer cpio-dired-buffer
(setq cpio-contents-buffer (get-buffer (cpio-contents-buffer-name
entry-name)))
(setq cpio-contents-buffer-string (with-current-buffer
cpio-contents-buffer
@@ -7370,25 +8767,25 @@ cpio-dired-diff) ; is not yet implemented -- expect an
error."
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp
(cpio-catalog))))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog))))
(with-current-buffer cpio-dired-buffer
- (should (and "Checking the archive buffer."
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Checking the dired-style buffer."
- (string-match *cdmt-crc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "%s(): Checking the archive buffer." test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Checking the dired-style buffer."
test-name)
+ (string-match *cdmt-crc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
(should (not (null cpio-contents-buffer)))
(should (buffer-live-p cpio-contents-buffer))
(should (string-equal cpio-contents-buffer-string "\nccc\n\n"))
(should (window-live-p cpio-contents-window))
- (should (and "Expecting no change to the catalog."
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after))))))
+ (should (progn (message "%s(): Expecting no change to the catalog."
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after))))))
(ert-deftest cdmt-crc-cpio-dired-do-async-shell-command ()
"Test cpio-dired-do-async-shell-command) ;.
cpio-dired-do-async-shell-command) ; is not yet implemented -- expect an
error."
(should-error (cpio-dired-do-async-shell-command)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-do-chgrp () ;✓
"Test the function of M-x cpio-dired-do-chgrp."
@@ -7399,9 +8796,9 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-crc-reset 'make)
+ (cdmt-reset 'make)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-move-to-first-entry)
(setq unread-command-events (listify-key-sequence "9999\n"))
(cpio-dired-do-chgrp 1)
@@ -7412,11 +8809,11 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "Expecting an unchanged archive. (8814)"
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting 'a' to have group 9999."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+ (should (progn (message "%s(): Expecting an unchanged archive. (8814)"
test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting 'a' to have group 9999."
test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 [[:digit:]]+ 9999 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -7437,102 +8834,103 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting entry »a« to have group 9999 in the catalog."
- (string-match "((\"a\" \.
- \[\[[[:digit:]]+ 33188 [[:digit:]]+ 9999 1
- ([[:digit:]]+ [[:digit:]]+)
- 4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 \"a\"]
- #<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\]))
+
+ (should (progn (message "%s(): Expecting entry »a« to have group 9999 in
the catalog." test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ 9999 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (cdmt-crc-reset)
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (cdmt-reset)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(setq unread-command-events (listify-key-sequence "8888\n"))
(cpio-dired-do-chgrp 4)
(setq cpio-archive-buffer-contents
@@ -7542,12 +8940,12 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "The archive buffer doesn't change until saving."
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting the first 4 entries to have group 8888."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): The archive buffer doesn't change until
saving." test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting the first 4 entries to have group
8888." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 [[:digit:]]+ 8888 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ 8888 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -7568,102 +8966,103 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting the first four catalog entries to have group 8888."
- (string-match"((\"a\" \.
- \[\[[[:digit:]]+ 33188 [[:digit:]]+ 8888 1
- ([[:digit:]]+ [[:digit:]]+)
- 4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 \"a\"]
- #<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ 8888 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ 8888 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ 8888 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"ccccc\.d\" \.
- \[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
- ([[:digit:]]+ [[:digit:]]+)
- 0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0
\"ccccc\.d\"]
- #<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\]))
+
+ (should (progn (message "%s(): Expecting the first four catalog entries to
have group 8888." test-name)
+ (string-match"((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ 8888 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ 8888 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ 8888 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ 8888 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (cdmt-crc-reset)
+ (cdmt-reset)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark-entries-regexp "\\`...\\'")
(setq unread-command-events (listify-key-sequence "7777\n"))
(cpio-dired-do-chgrp 1)
@@ -7674,12 +9073,12 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "The archive is not changed until saved. (8894)"
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting \`...\' to have group 7777."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): The archive is not changed until saved.
(8894)" test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting \`...\' to have group 7777."
test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -7700,100 +9099,101 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting \`...\' to have group 7777."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ 7777 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ 7777 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ 7777 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\]))
+
+ (should (progn (message "%s(): Expecting \`...\' to have group 7777."
test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ 7777 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ 7777 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ 7777 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
-
- (cdmt-crc-test-save)))
+
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-crc-cpio-dired-do-chmod ()
"Test cpio-dired-do-chmod."
@@ -7804,10 +9204,10 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
-
- (cdmt-crc-reset 'make)
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+
+ (cdmt-reset 'make)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(setq unread-command-events (listify-key-sequence "0755\n"))
(cpio-dired-do-chmod 1)
(setq cpio-archive-buffer-contents
@@ -7817,10 +9217,10 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting the first entry to have mode -rwxr-xr-x."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "%s(): Expecting the first entry to have mode
-rwxr-xr-x." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rwxr-xr-x 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -7841,8 +9241,8 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting a mode of 0755 on the first entry."
- (string-equal "070702 (( magic ))
+ (should (progn (message "%s(): Expecting a mode of 0755 on the first
entry." test-name)
+ (string-equal "070702 (( magic ))
DEADBEEF (( ino ))
000081A4 (( mode ))
000003E8 (( uid ))
@@ -8174,100 +9574,101 @@ DEADBEEF (( rdev min ))
TRAILER!!! (( filename ))
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
" cpio-archive-buffer-contents)))
- (should (and "Expecting a mode of 0755 (33261) on the first entry."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33261 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\]))
+
+ (should (progn (message "%s(): Expecting a mode of 0755 (33261) on the
first entry." test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33261 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-next-line 2)
(setq unread-command-events (listify-key-sequence "0600\n"))
(cpio-dired-do-chmod 4)
@@ -8278,11 +9679,11 @@ TRAILER!!! (( filename ))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting aaa, aaaa, aaaaa to have mode -rw------."
- "Expecting aaaaa.d to have mode dr--------."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Expecting aaa, aaaa, aaaaa to have mode
-rw------." test-name)
+ (message "%s(): Expecting aaaaa.d to have mode dr--------."
test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rwxr-xr-x 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -8304,105 +9705,104 @@ TRAILER!!! (( filename ))
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged archive buffer."
- "The archive is not modified until saving."
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting aaa, aaaa, aaaaa to have mode 0100600 (33152)."
- "Expecting aaaaa.d to have mode 040600 (16768)."
-
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33261 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33152 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33152 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33152 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16768 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\]))
+ (should (progn (message "%s(): Expecting an unchanged archive buffer."
test-name)
+ (message "%s(): The archive is not modified until saving."
test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting aaa, aaaa, aaaaa to have mode
0100600 (33152)." test-name)
+ (message "%s(): Expecting aaaaa.d to have mode 040600
(16768)." test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33261 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33152 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33152 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33152 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16768 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark-entries-regexp "\\`...\\'")
(setq unread-command-events (listify-key-sequence "0660\n"))
(cpio-dired-do-chmod)
@@ -8413,10 +9813,10 @@ TRAILER!!! (( filename ))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting ... to have mode -rw-rw----."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Expecting ... to have mode -rw-rw----."
test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rwxr-xr-x 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -8438,103 +9838,103 @@ TRAILER!!! (( filename ))
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an untouched archive."
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
-
- (should (and "Expecting ... to have mode 0100660 (33200)."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33261 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33200 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33152 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33152 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16768 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33200 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33200 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\]))
+ (should (progn (message "%s(): Expecting an untouched archive." test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+
+ (should (progn (message "%s(): Expecting ... to have mode 0100660
(33200)." test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33261 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33200 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33152 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33152 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16768 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33200 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33200 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-save-archive)
(setq cpio-archive-buffer-contents
(cdmt-crc-filter-archive-contents
@@ -8543,13 +9943,14 @@ TRAILER!!! (( filename ))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "Expecting all the above mode changes in the archive buffer."
- "• a has mode 0100755 (000081ED)."
- "• aaa, aaaa, aaaaa have mode 0100600 (00008180)."
- "• aaaaa.d has mode 040600 (00004180)."
- "• ... have mode 0660 (000081B0 for files or 000041B0 for
directories)."
- (string-equal "070702 (( magic ))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "%s(): Expecting all the above mode changes in the
archive buffer." test-name)
+ (message "%s(): • a has mode 0100755 (000081ED)." test-name)
+ (message "%s(): • aaa, aaaa, aaaaa have mode 0100600
(00008180)." test-name)
+ (message "%s(): • aaaaa.d has mode 040600 (00004180)."
test-name)
+ (message "%s(): • ... have mode 0660 (000081B0 for files or
000041B0 for directories)." test-name)
+ (string-equal "070702 (( magic ))
DEADBEEF (( ino ))
000081ED (( mode ))
000003E8 (( uid ))
@@ -8881,11 +10282,11 @@ DEADBEEF (( rdev min ))
TRAILER!!! (( filename ))
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
" cpio-archive-buffer-contents)))
- (should (and "Expecting all the above mode changes in the dired buffer."
- "• a has mode -rwxr-xr-x"
- "• aaa, aaaa, aaaaa, aaaaa.d have mode -rw-r--r--"
- "• ... have mode -rw-rw----"
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Expecting all the above mode changes in the
dired buffer." test-name)
+ (message "%s(): • a has mode -rwxr-xr-x" test-name)
+ (message "%s(): • aaa, aaaa, aaaaa, aaaaa.d have mode
-rw-r--r--" test-name)
+ (message "%s(): • ... have mode -rw-rw----" test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rwxr-xr-x 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -8906,105 +10307,106 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting all the above mode changes in the catalog."
- "• a has mode 33261."
- "• aaa, aaaa, aaaaa have mode 33152."
- "• aaaaa.d has mode 16768."
- "• ... have mode 33200 for files."
- " 16816 for directories."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33261 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33200 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 \"aaa\"]
-\\s-+#<marker at 238 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33152 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 \"aaaa\"]
-\\s-+#<marker at 363 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33152 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 \"aaaaa\"]
-\\s-+#<marker at 488 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16768 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 \"b\"]
-\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33200 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 \"bbb\"]
-\\s-+#<marker at 970 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 \"bbbb\"]
-\\s-+#<marker at 1095 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 \"bbbbb\"]
-\\s-+#<marker at 1220 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 \"c\"]
-\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33200 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 \"ccc\"]
-\\s-+#<marker at 1702 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 \"cccc\"]
-\\s-+#<marker at 1827 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 \"ccccc\"]
-\\s-+#<marker at 1952 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\]))
+
+ (should (progn (message "%s(): Expecting all the above mode changes in the
catalog." test-name)
+ (message "%s(): • a has mode 33261." test-name)
+ (message "%s(): • aaa, aaaa, aaaaa have mode 33152."
test-name)
+ (message "%s(): • aaaaa.d has mode 16768." test-name)
+ (message "%s(): • ... have mode 33200 for files." test-name)
+ (message "%s(): 16816 for directories."
test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33261 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33200 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 ¨aaa¨«
+\\s-+#<marker at 238 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33152 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 ¨aaaa¨«
+\\s-+#<marker at 363 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33152 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 ¨aaaaa¨«
+\\s-+#<marker at 488 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16768 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 ¨b¨«
+\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33200 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 ¨bbb¨«
+\\s-+#<marker at 970 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 ¨bbbb¨«
+\\s-+#<marker at 1095 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 ¨bbbbb¨«
+\\s-+#<marker at 1220 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 ¨c¨«
+\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33200 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 ¨ccc¨«
+\\s-+#<marker at 1702 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 ¨cccc¨«
+\\s-+#<marker at 1827 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 ¨ccccc¨«
+\\s-+#<marker at 1952 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (cdmt-crc-test-save)))
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-crc-cpio-dired-do-chown () ;✓
"Test the function of M-x cpio-do-chown."
@@ -9015,10 +10417,10 @@ TRAILER!!! (( filename ))
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
-
- (cdmt-crc-reset 'make)
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+
+ (cdmt-reset 'make)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(setq unread-command-events (listify-key-sequence "9999\n"))
(cpio-dired-do-chown 1)
(setq cpio-archive-buffer-contents
@@ -9028,13 +10430,13 @@ TRAILER!!! (( filename ))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "The archive buffer is not modified until saved. (10741)"
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting a cpio-dired buffer with the owner of 'a' being
9999."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): The archive buffer is not modified until
saved. (10741)" test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+
+ (should (progn (message "%s(): Expecting a cpio-dired buffer with the
owner of 'a' being 9999." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 9999 [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -9055,102 +10457,102 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "The owner of 'a' should be 9999."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 9999 [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\]))
+ (should (progn (message "%s(): The owner of 'a' should be 9999." test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 9999 [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (cdmt-crc-reset)
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (cdmt-reset)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(dired-next-line 2)
(setq unread-command-events (listify-key-sequence "8888\n"))
(cpio-dired-do-chown 4)
@@ -9161,13 +10563,13 @@ TRAILER!!! (( filename ))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "The archive buffer is not modified until saved. (11111)"
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): The archive buffer is not modified until
saved. (11111)" test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting 4 entries with owner 8888."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Expecting 4 entries with owner 8888."
test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -9188,102 +10590,102 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting 4 catalog entries with owner 8888."
- (string-match "((\"a\" \.
- \[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
- ([[:digit:]]+ [[:digit:]]+)
- 4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 \"a\"]
- #<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 8888 [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 8888 [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 8888 [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 8888 [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
- \[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
- ([[:digit:]]+ [[:digit:]]+)
- 0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0
\"ccccc\.d\"]
- #<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\]))
+ (should (progn (message "%s(): Expecting 4 catalog entries with owner
8888." test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 8888 [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 8888 [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 8888 [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 8888 [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (cdmt-crc-reset)
+ (cdmt-reset)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark-entries-regexp "\\`...\\'")
(setq unread-command-events (listify-key-sequence "7777\n"))
(cpio-dired-do-chown 1)
@@ -9294,12 +10696,12 @@ TRAILER!!! (( filename ))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "The archive buffer is not modified until saved. (10818)"
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
-
- (should (and "Expecting \`...\' to be owned by 7777."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+ (should (progn (message "%s(): The archive buffer is not modified until
saved. (10818)" test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+
+ (should (progn (message "%s(): Expecting \`...\' to be owned by 7777."
test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -9320,100 +10722,101 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting ... to be owned by 7777."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 7777 [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 7777 [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 7777 [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\]))
+
+ (should (progn (message "%s(): Expecting ... to be owned by 7777."
test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 7777 [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 7777 [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 7777 [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
-
- (cdmt-crc-test-save)))
+
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-crc-cpio-dired-do-chown-1 ()
"Test the change-owner-user function of M-x cpio-dired-do-chown."
@@ -9424,9 +10827,9 @@ TRAILER!!! (( filename ))
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-crc-reset 'make)
+ (cdmt-reset 'make)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(setq unread-command-events (listify-key-sequence "9999:1111\n"))
(cpio-dired-do-chown 1)
(setq cpio-archive-buffer-contents
@@ -9436,13 +10839,13 @@ TRAILER!!! (( filename ))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expect an untouched archive. (17974)"
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expect an untouched archive. (17974)"
test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting entry 'a' to have owner 9999 and group 1111."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Expecting entry 'a' to have owner 9999 and
group 1111." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 9999 1111 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -9463,102 +10866,102 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting entry 'a' to have owner 9999 and group 1111."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 9999 1111 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\]))
+ (should (progn (message "%s(): Expecting entry 'a' to have owner 9999 and
group 1111." test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 9999 1111 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (cdmt-crc-reset)
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (cdmt-reset)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(dired-next-line 2)
(setq unread-command-events (listify-key-sequence "8888:2222\n"))
(cpio-dired-do-chown 4)
@@ -9569,12 +10972,12 @@ TRAILER!!! (( filename ))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting an untouched archive. (9918)"
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting 4 entries with owner 8888 and group 2222."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Expecting an untouched archive. (9918)"
test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting 4 entries with owner 8888 and
group 2222." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -9595,102 +10998,103 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting 4 entries with owner 8888 and group 2222."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 8888 2222 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 8888 2222 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 8888 2222 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 8888 2222 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\]))
+
+ (should (progn (message "%s(): Expecting 4 entries with owner 8888 and
group 2222." test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 8888 2222 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 8888 2222 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 8888 2222 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 8888 2222 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (cdmt-crc-reset)
+ (cdmt-reset)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark-entries-regexp "\\`...\\'")
(setq unread-command-events (listify-key-sequence "7777:3333\n"))
(cpio-dired-do-chown 1)
@@ -9701,12 +11105,12 @@ TRAILER!!! (( filename ))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting an untouched archive. (9958)"
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting \`...\' to have owner 7777 and group 3333."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Expecting an untouched archive. (9958)"
test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting \`...\' to have owner 7777 and
group 3333." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -9727,106 +11131,107 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting ... to have owner 7777 and group 3333."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 7777 3333 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 7777 3333 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 7777 3333 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\]))
+
+ (should (progn (message "%s(): Expecting ... to have owner 7777 and group
3333." test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 7777 3333 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 7777 3333 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 7777 3333 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (cdmt-crc-test-save)))
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-crc-cpio-dired-do-compress ()
"Test cpio-dired-do-compress.
cpio-dired-do-compress is not yet implemented -- expect an error."
(should-error (cpio-dired-do-compress)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-do-copy-0 () ;✓
"Test the function of M-x cpio-do-copy."
@@ -9838,9 +11243,9 @@ cpio-dired-do-compress is not yet implemented -- expect
an error."
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-crc-reset 'make)
+ (cdmt-reset 'make)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(setq unread-command-events (listify-key-sequence "d\n"))
(cpio-dired-do-copy 1)
(setq cpio-archive-buffer-contents
@@ -9850,9 +11255,10 @@ cpio-dired-do-compress is not yet implemented -- expect
an error."
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "Checking that entry »a« has been copied to »d«."
- (string-equal "070702 (( magic ))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "%s(): Checking that entry »a« has been copied to
»d«." test-name)
+ (string-equal "070702 (( magic ))
DEADBEEF (( ino ))
000081A4 (( mode ))
000003E8 (( uid ))
@@ -10187,8 +11593,8 @@ a
" cpio-archive-buffer-contents)))
- (should (and "Checking that there is an entry »d« in the dired style
buffer."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Checking that there is an entry »d« in the
dired style buffer." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -10210,105 +11616,106 @@ a
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} d
" cpio-dired-buffer-contents)))
- (should (and "Expecting to see an entry »d«."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"d\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 \"d\"]
-\\s-+#<marker at 2197 in alphabet_small\.crc\.cpio> #<marker at 2309 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\]))
+
+ (should (progn (message "%s(): Expecting to see an entry »d«." test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨d¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 ¨d¨«
+\\s-+#<marker at 2197 in alphabet_small\.crc\.cpio> #<marker at 2309 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (cdmt-crc-test-save)))
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-crc-cpio-dired-do-copy-1 () ;✓
"Test the function of M-x cpio-do-copy."
@@ -10321,9 +11728,9 @@ C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-crc-reset 'make)
+ (cdmt-reset 'make)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(dired-next-line 2)
(setq unread-command-events (listify-key-sequence "newDirectory\n"))
(cpio-dired-do-copy 4)
@@ -10334,7 +11741,7 @@ C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
;; HEREHERE I think that this expected value is incorrect.
;; It implies an archive with two entries
@@ -10343,11 +11750,14 @@ C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
;; However, cpio(1GNU) seems to cope with it.
;; Note the use of the term character position, since cpio counts
characters
;; starting at 0, while emacs starts counting (point) at 1.
- (should (and "Checking for »aaa«, »aaaa«, »aaaaa«, »aaaaa« copied to
newDirectory in the archive."
- (string-equal "uNlIkElY" cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Checking for »aaa«, »aaaa«, »aaaaa«,
»aaaaa« copied to newDirectory in the archive." test-name)
+ (message "%s():12168: [[%s]]." test-name "uNlIkElY")
+ (message "%s():12169: [[%s]]." test-name
cpio-archive-buffer-contents)
- (should (and "Checking for the presence of »newDirectory/aaa«,
»newDirectory/aaaa«, »newDirectory/aaaaa«, »newDirectory/aaaaa«."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (string-equal "uNlIkElY" cpio-archive-buffer-contents)))
+
+ (should (progn (message "%s(): Checking for the presence of
»newDirectory/aaa«, »newDirectory/aaaa«, »newDirectory/aaaaa«,
»newDirectory/aaaaa«." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -10372,9 +11782,9 @@ C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory/aaaa
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory/aaa
" cpio-dired-buffer-contents)))
- (should (string-match "uNlIkElY" cpio-catalog-contents-after))
+ (should (string-match " uNlIkElY" cpio-catalog-contents-after))
- (cdmt-crc-test-save)))
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-crc-cpio-dired-do-copy-2 () ;✓
"Test the function of M-x cpio-do-copy."
@@ -10386,7 +11796,7 @@ C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-crc-reset 'make)
+ (cdmt-reset 'make)
(progn (cpio-dired-mark-entries-regexp "\\`...\\'")
(setq unread-command-events (listify-key-sequence
"newDirectory-1\n"))
@@ -10398,10 +11808,10 @@ C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting an archive with each 3 letter entry copied to
newDirectory-1."
- (string-equal "070702 (( magic ))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "%s(): Expecting an archive with each 3 letter
entry copied to newDirectory-1." test-name)
+ (string-equal "070702 (( magic ))
DEADBEEF (( ino ))
000081A4 (( mode ))
000003E8 (( uid ))
@@ -10772,8 +12182,8 @@ aaa
\\0\\0
" cpio-archive-buffer-contents)))
- (should (and "Expecint a cpio-dired buffer with ... under newDirectory-1."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Expecting a cpio-dired buffer with ...
under newDirectory-1." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -10797,115 +12207,116 @@ C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+
6 \\(?:a\\(?:pr\\|ug\\)\\|de
C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory-1/bbb
C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory-1/aaa
" cpio-dired-buffer-contents)))
- (should (and "Expecting to see ... entries in newDirectory-1."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-1/ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 327
\"newDirectory-1/ccc\"]
-\\s-+#<marker at 2197 in alphabet_small\.crc\.cpio> #<marker at 2329 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-1/bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 324
\"newDirectory-1/bbb\"]
-\\s-+#<marker at 2337 in alphabet_small\.crc\.cpio> #<marker at 2469 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-1/aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 321
\"newDirectory-1/aaa\"]
-\\s-+#<marker at 2477 in alphabet_small\.crc\.cpio> #<marker at 2609 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\]))
+
+ (should (progn (message "%s(): Expecting to see ... entries in
newDirectory-1." test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨newDirectory-1/ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 327
¨newDirectory-1/ccc¨«
+\\s-+#<marker at 2197 in alphabet_small\.crc\.cpio> #<marker at 2329 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨newDirectory-1/bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 324
¨newDirectory-1/bbb¨«
+\\s-+#<marker at 2337 in alphabet_small\.crc\.cpio> #<marker at 2469 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨newDirectory-1/aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 321
¨newDirectory-1/aaa¨«
+\\s-+#<marker at 2477 in alphabet_small\.crc\.cpio> #<marker at 2609 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (cdmt-crc-test-save)))
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-crc-cpio-dired-do-copy-3 () ;✓
"Test the function of M-x cpio-do-copy."
@@ -10917,9 +12328,9 @@ C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|de
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-crc-reset 'make)
+ (cdmt-reset 'make)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark-entries-regexp "...")
(setq unread-command-events (listify-key-sequence
"newDirectory-3\n"))
(cpio-dired-do-copy 1)
@@ -10930,12 +12341,12 @@ C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|de
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
;; HEREHERE Once again, I think this archive has some incorrect
;; entry padding.
- (should (and "Expecting an archive with each entry named with at least 3
letters copied to newDirectory-3."
- (string-equal "070702 (( magic ))
+ (should (progn (message "%s(): Expecting an archive with each entry named
with at least 3 letters copied to newDirectory-3." test-name)
+ (string-equal "070702 (( magic ))
DEADBEEF (( ino ))
000081A4 (( mode ))
000003E8 (( uid ))
@@ -11459,9 +12870,9 @@ aaa
\\0\\0
" cpio-archive-buffer-contents)))
-
- (should (and "Expecting all entries named with at least 3 letters to have
copies in newDirectory-3."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+
+ (should (progn (message "%s(): Expecting all entries named with at least 3
letters to have copies in newDirectory-3." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -11494,166 +12905,166 @@ C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+
8 \\(?:a\\(?:pr\\|ug\\)\\|de
C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory-3/aaaa
C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory-3/aaa
" cpio-dired-buffer-contents)))
- (should (and "Expecting all entries named with at least 3 letters to have
copies in newDirectory-3."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-3/ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 23 0
\"newDirectory-3/ccccc\.d\"]
-\\s-+#<marker at 2197 in alphabet_small\.crc\.cpio> #<marker at 2333 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-3/ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 21 525
\"newDirectory-3/ccccc\"]
-\\s-+#<marker at 2333 in alphabet_small\.crc\.cpio> #<marker at 2465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-3/cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 20 426
\"newDirectory-3/cccc\"]
-\\s-+#<marker at 2473 in alphabet_small\.crc\.cpio> #<marker at 2605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-3/ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 327
\"newDirectory-3/ccc\"]
-\\s-+#<marker at 2613 in alphabet_small\.crc\.cpio> #<marker at 2745 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-3/bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 23 0
\"newDirectory-3/bbbbb\.d\"]
-\\s-+#<marker at 2753 in alphabet_small\.crc\.cpio> #<marker at 2889 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-3/bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 21 520
\"newDirectory-3/bbbbb\"]
-\\s-+#<marker at 2889 in alphabet_small\.crc\.cpio> #<marker at 3021 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-3/bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 20 422
\"newDirectory-3/bbbb\"]
-\\s-+#<marker at 3029 in alphabet_small\.crc\.cpio> #<marker at 3161 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-3/bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 324
\"newDirectory-3/bbb\"]
-\\s-+#<marker at 3169 in alphabet_small\.crc\.cpio> #<marker at 3301 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-3/aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 23 0
\"newDirectory-3/aaaaa\.d\"]
-\\s-+#<marker at 3309 in alphabet_small\.crc\.cpio> #<marker at 3445 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-3/aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 21 515
\"newDirectory-3/aaaaa\"]
-\\s-+#<marker at 3445 in alphabet_small\.crc\.cpio> #<marker at 3577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-3/aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 20 418
\"newDirectory-3/aaaa\"]
-\\s-+#<marker at 3585 in alphabet_small\.crc\.cpio> #<marker at 3717 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-3/aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 321
\"newDirectory-3/aaa\"]
-\\s-+#<marker at 3725 in alphabet_small\.crc\.cpio> #<marker at 3857 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\]))
+ (should (progn (message "%s(): Expecting all entries named with at least 3
letters to have copies in newDirectory-3." test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨newDirectory-3/ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 23 0
¨newDirectory-3/ccccc\.d¨«
+\\s-+#<marker at 2197 in alphabet_small\.crc\.cpio> #<marker at 2333 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨newDirectory-3/ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 21 525
¨newDirectory-3/ccccc¨«
+\\s-+#<marker at 2333 in alphabet_small\.crc\.cpio> #<marker at 2465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨newDirectory-3/cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 20 426
¨newDirectory-3/cccc¨«
+\\s-+#<marker at 2473 in alphabet_small\.crc\.cpio> #<marker at 2605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨newDirectory-3/ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 327
¨newDirectory-3/ccc¨«
+\\s-+#<marker at 2613 in alphabet_small\.crc\.cpio> #<marker at 2745 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨newDirectory-3/bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 23 0
¨newDirectory-3/bbbbb\.d¨«
+\\s-+#<marker at 2753 in alphabet_small\.crc\.cpio> #<marker at 2889 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨newDirectory-3/bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 21 520
¨newDirectory-3/bbbbb¨«
+\\s-+#<marker at 2889 in alphabet_small\.crc\.cpio> #<marker at 3021 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨newDirectory-3/bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 20 422
¨newDirectory-3/bbbb¨«
+\\s-+#<marker at 3029 in alphabet_small\.crc\.cpio> #<marker at 3161 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨newDirectory-3/bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 324
¨newDirectory-3/bbb¨«
+\\s-+#<marker at 3169 in alphabet_small\.crc\.cpio> #<marker at 3301 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨newDirectory-3/aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 23 0
¨newDirectory-3/aaaaa\.d¨«
+\\s-+#<marker at 3309 in alphabet_small\.crc\.cpio> #<marker at 3445 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨newDirectory-3/aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 21 515
¨newDirectory-3/aaaaa¨«
+\\s-+#<marker at 3445 in alphabet_small\.crc\.cpio> #<marker at 3577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨newDirectory-3/aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 20 418
¨newDirectory-3/aaaa¨«
+\\s-+#<marker at 3585 in alphabet_small\.crc\.cpio> #<marker at 3717 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨newDirectory-3/aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 321
¨newDirectory-3/aaa¨«
+\\s-+#<marker at 3725 in alphabet_small\.crc\.cpio> #<marker at 3857 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (cdmt-crc-test-save)))
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-crc-cpio-dired-do-copy-regexp ()
"Test cpio-dired-do-copy-regexp.
cpio-dired-do-copy-regexp is not yet implemented -- expect an error."
(should-error (cpio-dired-do-copy-regexp)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-do-delete () ;✓
"Test the function of M-x cpio-dired-do-delete."
@@ -11664,9 +13075,9 @@ cpio-dired-do-copy-regexp is not yet implemented --
expect an error."
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-crc-reset 'make)
+ (cdmt-reset 'make)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-do-delete 1)
(setq cpio-archive-buffer-contents
(cdmt-crc-filter-archive-contents
@@ -11675,10 +13086,10 @@ cpio-dired-do-copy-regexp is not yet implemented --
expect an error."
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting entry »a« to be deleted."
- (string-equal "070702 (( magic ))
+ (should (progn (message "%s(): Expecting entry »a« to be deleted."
test-name)
+ (string-equal "070702 (( magic ))
DEADBEEF (( ino ))
000081A4 (( mode ))
000003E8 (( uid ))
@@ -11992,8 +13403,8 @@ DEADBEEF (( rdev min ))
TRAILER!!! (( filename ))
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
" cpio-archive-buffer-contents)))
- (should (and "Expecting entry »a« to be deleted."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Expecting entry »a« to be deleted."
test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaa
@@ -12013,95 +13424,95 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting a catalog with entry »a« deleted."
- (string-match "((\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 \"aa\"]
-\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 117 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 \"aaa\"]
-\\s-+#<marker at 125 in alphabet_small\.crc\.cpio> #<marker at 241 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 \"aaaa\"]
-\\s-+#<marker at 249 in alphabet_small\.crc\.cpio> #<marker at 365 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 \"aaaaa\"]
-\\s-+#<marker at 373 in alphabet_small\.crc\.cpio> #<marker at 489 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 497 in alphabet_small\.crc\.cpio> #<marker at 617 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 \"b\"]
-\\s-+#<marker at 617 in alphabet_small\.crc\.cpio> #<marker at 729 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 \"bb\"]
-\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 849 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 \"bbb\"]
-\\s-+#<marker at 857 in alphabet_small\.crc\.cpio> #<marker at 973 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 \"bbbb\"]
-\\s-+#<marker at 981 in alphabet_small\.crc\.cpio> #<marker at 1097 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 \"bbbbb\"]
-\\s-+#<marker at 1105 in alphabet_small\.crc\.cpio> #<marker at 1221 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1229 in alphabet_small\.crc\.cpio> #<marker at 1349 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 \"c\"]
-\\s-+#<marker at 1349 in alphabet_small\.crc\.cpio> #<marker at 1461 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 \"cc\"]
-\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1581 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 \"ccc\"]
-\\s-+#<marker at 1589 in alphabet_small\.crc\.cpio> #<marker at 1705 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 \"cccc\"]
-\\s-+#<marker at 1713 in alphabet_small\.crc\.cpio> #<marker at 1829 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 \"ccccc\"]
-\\s-+#<marker at 1837 in alphabet_small\.crc\.cpio> #<marker at 1953 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 1961 in alphabet_small\.crc\.cpio> #<marker at 2081 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\]))
+ (should (progn (message "%s(): Expecting a catalog with entry »a«
deleted." test-name)
+ (string-match "((¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 ¨aa¨«
+\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 117 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 ¨aaa¨«
+\\s-+#<marker at 125 in alphabet_small\.crc\.cpio> #<marker at 241 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 ¨aaaa¨«
+\\s-+#<marker at 249 in alphabet_small\.crc\.cpio> #<marker at 365 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 ¨aaaaa¨«
+\\s-+#<marker at 373 in alphabet_small\.crc\.cpio> #<marker at 489 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 497 in alphabet_small\.crc\.cpio> #<marker at 617 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 ¨b¨«
+\\s-+#<marker at 617 in alphabet_small\.crc\.cpio> #<marker at 729 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 ¨bb¨«
+\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 849 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 ¨bbb¨«
+\\s-+#<marker at 857 in alphabet_small\.crc\.cpio> #<marker at 973 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 ¨bbbb¨«
+\\s-+#<marker at 981 in alphabet_small\.crc\.cpio> #<marker at 1097 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 ¨bbbbb¨«
+\\s-+#<marker at 1105 in alphabet_small\.crc\.cpio> #<marker at 1221 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1229 in alphabet_small\.crc\.cpio> #<marker at 1349 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 ¨c¨«
+\\s-+#<marker at 1349 in alphabet_small\.crc\.cpio> #<marker at 1461 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 ¨cc¨«
+\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1581 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 ¨ccc¨«
+\\s-+#<marker at 1589 in alphabet_small\.crc\.cpio> #<marker at 1705 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 ¨cccc¨«
+\\s-+#<marker at 1713 in alphabet_small\.crc\.cpio> #<marker at 1829 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 ¨ccccc¨«
+\\s-+#<marker at 1837 in alphabet_small\.crc\.cpio> #<marker at 1953 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 1961 in alphabet_small\.crc\.cpio> #<marker at 2081 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(dired-next-line 2)
(cpio-dired-do-delete 4)
(setq cpio-archive-buffer-contents
@@ -12111,10 +13522,10 @@ TRAILER!!! (( filename ))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting sn archive with 4 entries deleted."
- (string-equal "070702 (( magic ))
+ (should (progn (message "%s(): Expecting sn archive with 4 entries
deleted." test-name)
+ (string-equal "070702 (( magic ))
DEADBEEF (( ino ))
000081A4 (( mode ))
000003E8 (( uid ))
@@ -12359,8 +13770,8 @@ DEADBEEF (( rdev min ))
TRAILER!!! (( filename ))
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
" cpio-archive-buffer-contents)))
- (should (and "Expecting a cpio-dired buffer with 4 entries deleted."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Expecting a cpio-dired buffer with 4
entries deleted." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaa
@@ -12376,76 +13787,76 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting a catalog with entries"
- " »aaaa«, »aaaaa«, »aaaaa.d« and »b« deleted."
- (string-match "((\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 \"aa\"]
-\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 117 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 \"aaa\"]
-\\s-+#<marker at 125 in alphabet_small\.crc\.cpio> #<marker at 241 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 \"bb\"]
-\\s-+#<marker at 249 in alphabet_small\.crc\.cpio> #<marker at 365 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 \"bbb\"]
-\\s-+#<marker at 373 in alphabet_small\.crc\.cpio> #<marker at 489 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 \"bbbb\"]
-\\s-+#<marker at 497 in alphabet_small\.crc\.cpio> #<marker at 613 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 \"bbbbb\"]
-\\s-+#<marker at 621 in alphabet_small\.crc\.cpio> #<marker at 737 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 745 in alphabet_small\.crc\.cpio> #<marker at 865 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 \"c\"]
-\\s-+#<marker at 865 in alphabet_small\.crc\.cpio> #<marker at 977 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 \"cc\"]
-\\s-+#<marker at 981 in alphabet_small\.crc\.cpio> #<marker at 1097 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 \"ccc\"]
-\\s-+#<marker at 1105 in alphabet_small\.crc\.cpio> #<marker at 1221 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 \"cccc\"]
-\\s-+#<marker at 1229 in alphabet_small\.crc\.cpio> #<marker at 1345 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 \"ccccc\"]
-\\s-+#<marker at 1353 in alphabet_small\.crc\.cpio> #<marker at 1469 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 1477 in alphabet_small\.crc\.cpio> #<marker at 1597 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\]))
+ (should (progn (message "%s(): Expecting a catalog with entries" test-name)
+ (message "%s(): »aaaa«, »aaaaa«, »aaaaa.d« and »b«
deleted." test-name)
+ (string-match "((¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 ¨aa¨«
+\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 117 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 ¨aaa¨«
+\\s-+#<marker at 125 in alphabet_small\.crc\.cpio> #<marker at 241 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 ¨bb¨«
+\\s-+#<marker at 249 in alphabet_small\.crc\.cpio> #<marker at 365 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 ¨bbb¨«
+\\s-+#<marker at 373 in alphabet_small\.crc\.cpio> #<marker at 489 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 ¨bbbb¨«
+\\s-+#<marker at 497 in alphabet_small\.crc\.cpio> #<marker at 613 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 ¨bbbbb¨«
+\\s-+#<marker at 621 in alphabet_small\.crc\.cpio> #<marker at 737 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 745 in alphabet_small\.crc\.cpio> #<marker at 865 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 ¨c¨«
+\\s-+#<marker at 865 in alphabet_small\.crc\.cpio> #<marker at 977 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 ¨cc¨«
+\\s-+#<marker at 981 in alphabet_small\.crc\.cpio> #<marker at 1097 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 ¨ccc¨«
+\\s-+#<marker at 1105 in alphabet_small\.crc\.cpio> #<marker at 1221 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 ¨cccc¨«
+\\s-+#<marker at 1229 in alphabet_small\.crc\.cpio> #<marker at 1345 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 ¨ccccc¨«
+\\s-+#<marker at 1353 in alphabet_small\.crc\.cpio> #<marker at 1469 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 1477 in alphabet_small\.crc\.cpio> #<marker at 1597 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark-entries-regexp "\\`...\\'")
(setq unread-command-events (listify-key-sequence "\n"))
(cpio-dired-do-delete 1)
@@ -12456,10 +13867,10 @@ TRAILER!!! (( filename ))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting an archive with ... deleted."
- (string-equal "070702 (( magic ))
+ (should (progn (message "%s(): Expecting an archive with ... deleted."
test-name)
+ (string-equal "070702 (( magic ))
DEADBEEF (( ino ))
000081A4 (( mode ))
000003E8 (( uid ))
@@ -12650,9 +14061,9 @@ DEADBEEF (( rdev min ))
TRAILER!!! (( filename ))
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
" cpio-archive-buffer-contents)))
-
- (should (and "Expecting a cpio-dired buffer with ... deleted."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+
+ (should (progn (message "%s(): Expecting a cpio-dired buffer with ...
deleted." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bb
@@ -12665,102 +14076,103 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting a catalog with further entries \`...\' deleted."
- (string-match "((\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 \"aa\"]
-\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 117 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 \"bb\"]
-\\s-+#<marker at 125 in alphabet_small\.crc\.cpio> #<marker at 241 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 \"bbbb\"]
-\\s-+#<marker at 249 in alphabet_small\.crc\.cpio> #<marker at 365 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 \"bbbbb\"]
-\\s-+#<marker at 373 in alphabet_small\.crc\.cpio> #<marker at 489 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 497 in alphabet_small\.crc\.cpio> #<marker at 617 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 \"c\"]
-\\s-+#<marker at 617 in alphabet_small\.crc\.cpio> #<marker at 729 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 \"cc\"]
-\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 849 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 \"cccc\"]
-\\s-+#<marker at 857 in alphabet_small\.crc\.cpio> #<marker at 973 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 \"ccccc\"]
-\\s-+#<marker at 981 in alphabet_small\.crc\.cpio> #<marker at 1097 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 1105 in alphabet_small\.crc\.cpio> #<marker at 1225 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\]))
+
+ (should (progn (message "%s(): Expecting a catalog with further entries
\`...\' deleted." test-name)
+ (string-match "((¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 ¨aa¨«
+\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 117 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 ¨bb¨«
+\\s-+#<marker at 125 in alphabet_small\.crc\.cpio> #<marker at 241 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 ¨bbbb¨«
+\\s-+#<marker at 249 in alphabet_small\.crc\.cpio> #<marker at 365 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 ¨bbbbb¨«
+\\s-+#<marker at 373 in alphabet_small\.crc\.cpio> #<marker at 489 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 497 in alphabet_small\.crc\.cpio> #<marker at 617 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 ¨c¨«
+\\s-+#<marker at 617 in alphabet_small\.crc\.cpio> #<marker at 729 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 ¨cc¨«
+\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 849 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 ¨cccc¨«
+\\s-+#<marker at 857 in alphabet_small\.crc\.cpio> #<marker at 973 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 ¨ccccc¨«
+\\s-+#<marker at 981 in alphabet_small\.crc\.cpio> #<marker at 1097 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 1105 in alphabet_small\.crc\.cpio> #<marker at 1225 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (cdmt-crc-test-save)))
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-crc-cpio-dired-do-flagged-delete ()
"Test cpio-dired-do-flagged-delete.
cpio-dired-do-flagged-delete is not yet implemented -- expect an error."
(should-error (cpio-dired-do-flagged-delete)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-do-hardlink ()
"Test cpio-dired-do-hardlink.
cpio-dired-do-hardlink is not yet implemented -- expect an error."
(should-error (cpio-dired-do-hardlink)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-do-hardlink-regexp ()
"Test cpio-dired-do-hardlink-regexp.
cpio-dired-do-hardlink-regexp is not yet implemented -- expect an error."
(should-error (cpio-dired-do-hardlink-regexp)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-do-kill-lines ()
"Test cpio-dired-do-kill-lines.
cpio-dired-do-kill-lines is not yet implemented -- expect an error."
(should-error (cpio-dired-do-kill-lines)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-do-print ()
"Test cpio-dired-do-print.
cpio-dired-do-print is not yet implemented -- expect an error."
(should-error (cpio-dired-do-print)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-do-query-replace-regexp ()
"Test cpio-dired-do-query-replace-regexp.
cpio-dired-do-query-replace-regexp is not yet implemented -- expect an error."
(should-error (cpio-dired-do-query-replace-regexp)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-do-redisplay ()
"Test cpio-dired-do-redisplay.
cpio-dired-do-redisplay is not yet implemented -- expect an error."
(should-error (cpio-dired-do-redisplay)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-do-rename () ;✓
(let ((test-name "cdmt-crc-cpio-dired-do-rename")
@@ -12771,9 +14183,9 @@ cpio-dired-do-redisplay is not yet implemented --
expect an error."
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-crc-reset 'make)
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (cdmt-reset 'make)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(setq unread-command-events (listify-key-sequence "d\n"))
(cpio-dired-do-rename 1)
(setq cpio-archive-buffer-contents
@@ -12783,14 +14195,14 @@ cpio-dired-do-redisplay is not yet implemented --
expect an error."
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting an untouched archive."
- "The archive gets updated on save."
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting an untouched archive." test-name)
+ (message "%s(): The archive gets updated on save." test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a dired buffer with no entry »a«, but an entry
»d«."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Expecting a dired buffer with no entry »a«,
but an entry »d«." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} d
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -12811,101 +14223,101 @@ cpio-dired-do-redisplay is not yet implemented --
expect an error."
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
-
- (should (and "Expecting catalog with first entry »d«."
- (string-match "((\"d\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 \"d\"]
-\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\]))
+
+ (should (progn (message "%s(): Expecting catalog with first entry »d«."
test-name)
+ (string-match "((¨d¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 ¨d¨«
+\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-next-line 2)
(setq unread-command-events (listify-key-sequence "newDirectory\n"))
(cpio-dired-do-rename 4)
@@ -12916,13 +14328,13 @@ cpio-dired-do-redisplay is not yet implemented --
expect an error."
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting an as yet unchanged archive."
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
-
- (should (and "Expecting a dired style buffer with entries »aaaa«, »aaaaa«,
»aaaaa.d« and »b« moved to »newDirectory«."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Expecting an as yet unchanged archive."
test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+
+ (should (progn (message "%s(): Expecting a dired style buffer with entries
»aaaa«, »aaaaa«, »aaaaa.d« and »b« moved to »newDirectory«." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} d
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -12943,101 +14355,101 @@ cpio-dired-do-redisplay is not yet implemented --
expect an error."
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
-
- (should (and "Expecting a catalog with the above changes."
- (string-match "((\"d\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 \"d\"]
-\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory/aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 17 321
\"newDirectory/aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory/aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 18 418
\"newDirectory/aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory/aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 515
\"newDirectory/aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory/aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 21 0
\"newDirectory/aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\]))
+
+ (should (progn (message "%s(): Expecting a catalog with the above
changes." test-name)
+ (string-match "((¨d¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 ¨d¨«
+\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨newDirectory/aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 17 321
¨newDirectory/aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨newDirectory/aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 18 418
¨newDirectory/aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨newDirectory/aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 515
¨newDirectory/aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨newDirectory/aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 21 0
¨newDirectory/aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark-entries-regexp "\\`...\\'")
(setq unread-command-events (listify-key-sequence
"newDirectory-1\n"))
(cpio-dired-do-rename 1)
@@ -13048,13 +14460,13 @@ cpio-dired-do-redisplay is not yet implemented --
expect an error."
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting an as yet unchanged archive."
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting an as yet unchanged archive."
test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a dired buffer with \`...\' all under
newDirectory-1."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Expecting a dired buffer with \`...\' all
under newDirectory-1." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} d
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -13075,154 +14487,154 @@ cpio-dired-do-redisplay is not yet implemented --
expect an error."
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting a catalog with \`...\' entries in newDirectory-1."
- (string-match "((\"d\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 \"d\"]
-\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory/aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 17 321
\"newDirectory/aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory/aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 18 418
\"newDirectory/aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory/aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 515
\"newDirectory/aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory/aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 21 0
\"newDirectory/aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-1/bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 324
\"newDirectory-1/bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-1/ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 327
\"newDirectory-1/ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\]))
+ (should (progn (message "%s(): Expecting a catalog with \`...\' entries in
newDirectory-1." test-name)
+ (string-match "((¨d¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 ¨d¨«
+\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨newDirectory/aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 17 321
¨newDirectory/aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨newDirectory/aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 18 418
¨newDirectory/aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨newDirectory/aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 515
¨newDirectory/aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨newDirectory/aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 21 0
¨newDirectory/aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨newDirectory-1/bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 324
¨newDirectory-1/bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨newDirectory-1/ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 327
¨newDirectory-1/ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (cdmt-crc-test-save)))
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-crc-cpio-dired-do-rename-regexp ()
"Test cpio-dired-do-rename-regexp.
cpio-dired-do-rename-regexp is not yet implemented -- expect an error."
(should-error (cpio-dired-do-rename-regexp)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-do-search () ;HEREHERE ()
"Test cpio-dired-do-search) ;HEREHERE.
cpio-dired-do-search) ;HEREHERE is not yet implemented -- expect an error."
(should-error (cpio-dired-do-search)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-do-symlink ()
"Test cpio-dired-do-symlink.
cpio-dired-do-symlink is not yet implemented -- expect an error."
(should-error (cpio-dired-do-symlink)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-do-symlink-regexp ()
"Test cpio-dired-do-symlink-regexp.
cpio-dired-do-symlink-regexp is not yet implemented -- expect an error."
(should-error (cpio-dired-do-symlink-regexp)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-do-touch ()
"Test cpio-dired-do-touch.
cpio-dired-do-touch is not yet implemented -- expect an error."
(should-error (cpio-dired-do-touch)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-downcase ()
"Test cpio-dired-downcase.
cpio-dired-downcase is not yet implemented -- expect an error."
(should-error (cpio-dired-downcase)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-extract-all ()
"Test cpio-dired-extract-all.
cpio-dired-extract-all is not yet implemented -- expect an error."
(should-error (cpio-dired-extract-all)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-extract-entries ()
"Test cpio-dired-extract-entries.
cpio-dired-extract-entries is not yet implemented -- expect an error."
(should-error (cpio-dired-extract-entries)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-find-alternate-entry ()
"Test cpio-dired-find-alternate-entry.
cpio-dired-find-alternate-entry is not yet implemented -- expect an error."
(should-error (cpio-dired-find-alternate-entry)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-find-entry () ;✓
"Test the function of M-x cpio-find-entry.
@@ -13241,9 +14653,9 @@ They reflect an outstanding bug in cpio-affiliated
buffers."
(cpio-catalog-contents-after)
(entry-name)
(past-entries ()))
- (cdmt-crc-reset 'make)
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (cdmt-reset 'make)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(setq entry-name "aaa")
(cpio-dired-goto-entry entry-name)
(cpio-dired-display-entry)
@@ -13260,22 +14672,22 @@ They reflect an outstanding bug in cpio-affiliated
buffers."
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp
(cpio-catalog))))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog))))
(with-current-buffer cpio-dired-buffer
- (should (and "Expect an untouched archive. (17975)"
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expect an untouched archive. (17975)"
test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
(should (string-match *cdmt-crc-untouched-small-dired-buffer*
cpio-dired-buffer-contents))
(should (not (null cpio-contents-buffer)))
(should (buffer-live-p cpio-contents-buffer))
(should (string-equal cpio-contents-buffer-string (concat "\n"
entry-name "\n\n")))
(should (window-live-p cpio-contents-window))
- (should (and "Expecting an unchanged catalog. (17949)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after))))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (17949)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after))))
(push entry-name past-entries)
-
+
(switch-to-buffer cpio-dired-buffer)
(progn (setq entry-name "ccc")
@@ -13297,26 +14709,26 @@ They reflect an outstanding bug in cpio-affiliated
buffers."
(buffer-substring-no-properties (point-min)
(point-max))))))
(with-current-buffer cpio-dired-buffer
- (should (and "Expect an untouched archive. (17976)"
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expect an untouched archive. (17976)"
test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
(should (string-match *cdmt-crc-untouched-small-dired-buffer*
cpio-dired-buffer-contents))
(should (not (null cpio-contents-buffer)))
(should (buffer-live-p cpio-contents-buffer))
(should (string-equal cpio-contents-buffer-string "\nccc\n\n"))
(should (window-live-p cpio-contents-window))
- (should (and "Expecting an unchanged catalog. (17950)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after))))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (17950)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after))))
;; Now make sure that any past entries are still there.
(mapc (lambda (en)
- (setq cpio-contents-buffer (get-buffer (cpio-contents-buffer-name
entry-name)))
- (setq cpio-contents-buffer-string (with-current-buffer
cpio-contents-buffer
- (buffer-substring-no-properties
(point-min)
-
(point-max))))
- (should (not (null cpio-contents-buffer)))
- (should (buffer-live-p cpio-contents-buffer))
- (should (string-equal cpio-contents-buffer-string (concat "\n"
entry-name "\n\n")))
- (should (window-live-p cpio-contents-window)))
+ (setq cpio-contents-buffer (get-buffer (cpio-contents-buffer-name
entry-name)))
+ (setq cpio-contents-buffer-string (with-current-buffer
cpio-contents-buffer
+ (buffer-substring-no-properties
(point-min)
+
(point-max))))
+ (should (not (null cpio-contents-buffer)))
+ (should (buffer-live-p cpio-contents-buffer))
+ (should (string-equal cpio-contents-buffer-string (concat "\n"
entry-name "\n\n")))
+ (should (window-live-p cpio-contents-window)))
past-entries)
;; Affiliated buffers don't get killed when the parent does yet.
@@ -13331,7 +14743,7 @@ They reflect an outstanding bug in cpio-affiliated
buffers."
"Test cpio-dired-find-entry-other-window.
cpio-dired-find-entry-other-window is not yet implemented -- expect an error."
(should-error (cpio-dired-find-entry-other-window)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-flag-auto-save-entries () ;✓
"Test the function of M-x cpio-dired-flag-auto-save-entries."
@@ -13342,9 +14754,9 @@ cpio-dired-find-entry-other-window is not yet
implemented -- expect an error."
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-crc-reset 'make)
+ (cdmt-reset 'make)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(beginning-of-line)
(while (re-search-forward " \\(.\\)$" (point-max) t)
(setq unread-command-events (listify-key-sequence (concat "#"
(match-string-no-properties 1) "\n")))
@@ -13357,12 +14769,12 @@ cpio-dired-find-entry-other-window is not yet
implemented -- expect an error."
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting an archive with autosave entries"
- "for each single character entry."
- "(The copy used to create them must update the archive.)"
- (string-equal "070702 (( magic ))
+ (should (progn (message "%s(): Expecting an archive with autosave entries"
test-name)
+ (message "for each single character entry.")
+ (message "(The copy used to create them must update the
archive.)")
+ (string-equal "070702 (( magic ))
DEADBEEF (( ino ))
000081A4 (( mode ))
000003E8 (( uid ))
@@ -13733,8 +15145,8 @@ c
" cpio-archive-buffer-contents)))
- (should (and "Expecting a cpio-dired buffer with single character backup
files."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Expecting a cpio-dired buffer with single
character backup files." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -13758,125 +15170,126 @@ D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+
4 \\(?:a\\(?:pr\\|ug\\)\\|de
D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} #b
D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} #c
" cpio-dired-buffer-contents)))
- (should (and "Expecting a catalog with autosave entries for single
character names."
- (string-match "((\"a\" \.
- \[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
- ([[:digit:]]+ [[:digit:]]+)
- 4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 \"a\"]
- #<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"#a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 127 \"#a\"]
-\\s-+#<marker at 2197 in alphabet_small\.crc\.cpio> #<marker at 2313 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"#b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 128 \"#b\"]
-\\s-+#<marker at 2317 in alphabet_small\.crc\.cpio> #<marker at 2433 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"#c\" \.
- \[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
- ([[:digit:]]+ [[:digit:]]+)
- 4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 129
\"#c\"]
- #<marker at 2437 in alphabet_small\.crc\.cpio> #<marker at 2553 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\]))
+
+ (should (progn (message "%s(): Expecting a catalog with autosave entries
for single character names." test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨#a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 127 ¨#a¨«
+\\s-+#<marker at 2197 in alphabet_small\.crc\.cpio> #<marker at 2313 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨#b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 128 ¨#b¨«
+\\s-+#<marker at 2317 in alphabet_small\.crc\.cpio> #<marker at 2433 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨#c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 129 ¨#c¨«
+\\s-+#<marker at 2437 in alphabet_small\.crc\.cpio> #<marker at 2553 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))))
(ert-deftest cdmt-crc-cpio-dired-flag-backup-entries ()
"Test cpio-dired-flag-backup-entries.
cpio-dired-flag-backup-entries is not yet implemented -- expect an error."
(should-error (cpio-dired-flag-backup-entries)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-flag-entries-regexp ()
"Test cpio-dired-flag-entries-regexp.
cpio-dired-flag-entries-regexp is not yet implemented -- expect an error."
(should-error (cpio-dired-flag-entries-regexp)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-flag-entry-deletion () ;✓
"Test the function of M-x cpio-flag-entry-deletion."
@@ -13887,9 +15300,9 @@ cpio-dired-flag-entries-regexp is not yet implemented
-- expect an error."
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-crc-reset 'make)
+ (cdmt-reset 'make)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-flag-entry-deletion 1)
(setq cpio-archive-buffer-contents
(cdmt-crc-filter-archive-contents
@@ -13898,12 +15311,12 @@ cpio-dired-flag-entries-regexp is not yet implemented
-- expect an error."
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expect an untouched archive. (17977)"
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a cpio-dired buffer with one entry flagged for
deletion."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Expect an untouched archive. (17977)"
test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting a cpio-dired buffer with one
entry flagged for deletion." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -13924,10 +15337,10 @@ D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17951)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (17951)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(dired-next-line 2)
(cpio-dired-flag-entry-deletion 4)
(setq cpio-archive-buffer-contents
@@ -13937,12 +15350,12 @@ D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expect an untouched archive. (17978)"
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a cpio-dired buffer with 4 entries flagged for
deletion."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Expect an untouched archive. (17978)"
test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting a cpio-dired buffer with 4
entries flagged for deletion." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -13963,8 +15376,8 @@ D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17952)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (17952)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-crc-cpio-dired-flag-garbage-entries ()
"Test cpio-dired-flag-garbage-entries."
@@ -13977,8 +15390,8 @@ D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
(cpio-catalog-contents-after)
(entry-name "aa"))
- (cdmt-crc-reset 'make)
-
+ (cdmt-reset 'make)
+
(progn (setq cpio-catalog-contents-before (cpio-catalog))
(cpio-dired-goto-entry entry-name)
(mapc (lambda (s) ;suffix
@@ -13993,10 +15406,10 @@ D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "Expecting an archive with entries for suffixes"
- " aux bak dvi log orig reg toc."
- (string-equal "070702 (( magic ))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+ (should (progn (message "%s(): Expecting an archive with entries for
suffixes" test-name)
+ (message "%s(): aux bak dvi log orig reg toc." test-name)
+ (string-equal "070702 (( magic ))
DEADBEEF (( ino ))
000081A4 (( mode ))
000003E8 (( uid ))
@@ -14439,10 +15852,10 @@ aa
\\0\\0\\0
" cpio-archive-buffer-contents)))
- (should (and "Expecting a dired-style buffer with marked entries"
- " for the suffixes"
- " aux bak dvi log orig reg toc."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Expecting a dired-style buffer with marked
entries" test-name)
+ (message " for the suffixes")
+ (message " aux bak dvi log orig reg toc.")
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -14470,159 +15883,160 @@ D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+
5 \\(?:a\\(?:pr\\|ug\\)\\|de
D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa.rej
D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa.toc
" cpio-dired-buffer-contents)))
- (should (and "Expecting a catalog with entries with the suffixes"
- " aux bak dvi log orig reg toc."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\.aux\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 7 224 \"aa\.aux\"]
-\\s-+#<marker at 2197 in alphabet_small\.crc\.cpio> #<marker at 2317 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\.bak\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 7 224 \"aa\.bak\"]
-\\s-+#<marker at 2325 in alphabet_small\.crc\.cpio> #<marker at 2445 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\.dvi\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 7 224 \"aa\.dvi\"]
-\\s-+#<marker at 2453 in alphabet_small\.crc\.cpio> #<marker at 2573 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\.log\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 7 224 \"aa\.log\"]
-\\s-+#<marker at 2581 in alphabet_small\.crc\.cpio> #<marker at 2701 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\.orig\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 224 \"aa\.orig\"]
-\\s-+#<marker at 2709 in alphabet_small\.crc\.cpio> #<marker at 2829 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\.rej\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 7 224 \"aa\.rej\"]
-\\s-+#<marker at 2837 in alphabet_small\.crc\.cpio> #<marker at 2957 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\.toc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 7 224 \"aa\.toc\"]
-\\s-+#<marker at 2965 in alphabet_small\.crc\.cpio> #<marker at 3085 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified\]))
+ (should (progn (message "%s(): Expecting a catalog with entries with the
suffixes" test-name)
+ (message " aux bak dvi log orig reg toc.")
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.crc\.cpio> #<marker at 113 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.crc\.cpio> #<marker at 233 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.crc\.cpio> #<marker at 357 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.crc\.cpio> #<marker at 481 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.crc\.cpio> #<marker at 605 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.crc\.cpio> #<marker at 733 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.crc\.cpio> #<marker at 845 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.crc\.cpio> #<marker at 965 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.crc\.cpio> #<marker at 1089 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.crc\.cpio> #<marker at 1213 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.crc\.cpio> #<marker at 1337 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.crc\.cpio> #<marker at 1465 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.crc\.cpio> #<marker at 1577 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.crc\.cpio> #<marker at 1697 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.crc\.cpio> #<marker at 1821 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.crc\.cpio> #<marker at 1945 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.crc\.cpio> #<marker at 2069 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.crc\.cpio> #<marker at 2197 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa\.aux¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 7 224 ¨aa\.aux¨«
+\\s-+#<marker at 2197 in alphabet_small\.crc\.cpio> #<marker at 2317 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa\.bak¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 7 224 ¨aa\.bak¨«
+\\s-+#<marker at 2325 in alphabet_small\.crc\.cpio> #<marker at 2445 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa\.dvi¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 7 224 ¨aa\.dvi¨«
+\\s-+#<marker at 2453 in alphabet_small\.crc\.cpio> #<marker at 2573 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa\.log¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 7 224 ¨aa\.log¨«
+\\s-+#<marker at 2581 in alphabet_small\.crc\.cpio> #<marker at 2701 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa\.orig¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 224 ¨aa\.orig¨«
+\\s-+#<marker at 2709 in alphabet_small\.crc\.cpio> #<marker at 2829 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa\.rej¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 7 224 ¨aa\.rej¨«
+\\s-+#<marker at 2837 in alphabet_small\.crc\.cpio> #<marker at 2957 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa\.toc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 7 224 ¨aa\.toc¨«
+\\s-+#<marker at 2965 in alphabet_small\.crc\.cpio> #<marker at 3085 in
alphabet_small\.crc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (cdmt-crc-test-save)))
+
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-crc-cpio-dired-goto-entry ()
"Test cpio-dired-goto-entry.
cpio-dired-goto-entry is not yet implemented -- expect an error."
(should-error (cpio-dired-goto-entry)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-hide-all ()
"Test cpio-dired-hide-all.
cpio-dired-hide-all is not yet implemented -- expect an error."
(should-error (cpio-dired-hide-all)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-hide-details-mode ()
"Test cpio-dired-hide-details-mode) ;✓ Implemented by analogue to dired, but
does nothing.
cpio-dired-hide-details-mode) ;✓ Implemented by analogue to dired, but does
nothing is not yet implemented -- expect an error."
(should-error (cpio-dired-hide-details-mode) ;✓ Implemented by analogue to
dired, but does nothing)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-hide-subdir ()
"Test cpio-dired-hide-subdir) ;.
cpio-dired-hide-subdir) ; is not yet implemented -- expect an error."
(should-error (cpio-dired-hide-subdir)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-mark () ;✓
"Test the function of M-x cpio-dired-mark."
@@ -14633,9 +16047,9 @@ cpio-dired-hide-subdir) ; is not yet implemented --
expect an error."
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-crc-reset 'make)
+ (cdmt-reset 'make)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark 1)
(setq cpio-archive-buffer-contents
(cdmt-crc-filter-archive-contents
@@ -14644,12 +16058,12 @@ cpio-dired-hide-subdir) ; is not yet implemented --
expect an error."
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expect an untouched archive. (17979)"
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a cpio-dired buffer with one entry marked."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "%s(): Expect an untouched archive. (17979)"
test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting a cpio-dired buffer with one
entry marked." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -14670,10 +16084,10 @@ cpio-dired-hide-subdir) ; is not yet implemented --
expect an error."
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17953)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (17953)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(dired-next-line 2)
(cpio-dired-mark 4)
(setq cpio-archive-buffer-contents
@@ -14683,12 +16097,12 @@ cpio-dired-hide-subdir) ; is not yet implemented --
expect an error."
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting an unchanged archive. (17986)"
- (string-equal cpio-archive-buffer-contents
*cdmt-crc-untouched-small-archive*)))
- (should (and "Expecting 4 more marks in a cpio-dired buffer."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Expecting an unchanged archive. (17986)"
test-name)
+ (string-equal cpio-archive-buffer-contents
*cdmt-crc-untouched-small-archive*)))
+ (should (progn (message "%s(): Expecting 4 more marks in a cpio-dired
buffer." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -14709,20 +16123,20 @@ cpio-dired-hide-subdir) ; is not yet implemented --
expect an error."
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17954)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (17954)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-crc-cpio-dired-mark-directories ()
"Test cpio-dired-mark-directories.
cpio-dired-mark-directories is not yet implemented -- expect an error."
(should-error (cpio-dired-mark-directories)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-mark-entries-containing-regexp ()
"Test cpio-dired-mark-entries-containing-regexp.
cpio-dired-mark-entries-containing-regexp is not yet implemented -- expect an
error."
(should-error (cpio-dired-mark-entries-containing-regexp)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-mark-entries-regexp () ;✓
(let ((test-name "cdmt-crc-cpio-dired-mark-entries-regexp")
@@ -14732,9 +16146,9 @@ cpio-dired-mark-entries-containing-regexp is not yet
implemented -- expect an er
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-crc-reset)
+ (cdmt-reset)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark-entries-regexp "\\`...\\'")
(setq cpio-archive-buffer-contents
(cdmt-crc-filter-archive-contents
@@ -14743,12 +16157,12 @@ cpio-dired-mark-entries-containing-regexp is not yet
implemented -- expect an er
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expect an untouched archive. (17980)"
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a cpio-dired buffer with ... marked."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Expect an untouched archive. (17980)"
test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting a cpio-dired buffer with ...
marked." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -14769,32 +16183,33 @@ cpio-dired-mark-entries-containing-regexp is not yet
implemented -- expect an er
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17955)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+
+ (should (progn (message "%s(): Expecting an unchanged catalog. (17955)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-crc-cpio-dired-mark-executables ()
"Test cpio-dired-mark-executables.
cpio-dired-mark-executables is not yet implemented -- expect an error."
(should-error (cpio-dired-mark-executables)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-mark-subdir-entries ()
"Test cpio-dired-mark-subdir-entries.
cpio-dired-mark-subdir-entries is not yet implemented -- expect an error."
(should-error (cpio-dired-mark-subdir-entries)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-mark-symlinks ()
"Test cpio-dired-mark-symlinks.
cpio-dired-mark-symlinks is not yet implemented -- expect an error."
(should-error (cpio-dired-mark-symlinks)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-mouse-find-entry-other-window ()
"Test cpio-dired-mouse-find-entry-other-window.
cpio-dired-mouse-find-entry-other-window is not yet implemented -- expect an
error."
(should-error (cpio-dired-mouse-find-entry-other-window)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-next-dirline () ;✓
"Test the function of M-x cpio-dired-next-dirline."
@@ -14806,9 +16221,9 @@ cpio-dired-mouse-find-entry-other-window is not yet
implemented -- expect an err
(cpio-catalog-contents-before)
(cpio-catalog-contents-after)
(entry-name))
- (cdmt-crc-reset 'make 'large)
+ (cdmt-reset 'make 'large)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-next-dirline 1)
(setq entry-name (cpio-dired-get-entry-name))
(setq cpio-archive-buffer-contents
@@ -14818,18 +16233,18 @@ cpio-dired-mouse-find-entry-other-window is not yet
implemented -- expect an err
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "The current entry should be aaaaa.d"
- (string-equal "aaaaa.d" entry-name)))
- (should (and "Expecting an untouched large archive buffer."
- (string-equal *cdmt-crc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
- (should (and "The dired style buffer should be untouched."
- (string-match *cdmt-crc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog."
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "%s(): The current entry should be aaaaa.d"
test-name)
+ (string-equal "aaaaa.d" entry-name)))
+ (should (progn (message "%s(): Expecting an untouched large archive
buffer." test-name)
+ (string-equal *cdmt-crc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): The dired style buffer should be
untouched." test-name)
+ (string-match *cdmt-crc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "%s(): Expecting an unchanged catalog." test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-next-dirline 2)
(setq entry-name (cpio-dired-get-entry-name))
(setq cpio-archive-buffer-contents
@@ -14839,18 +16254,18 @@ cpio-dired-mouse-find-entry-other-window is not yet
implemented -- expect an err
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "The current entry should be ccccc.d"
- (string-equal "ccccc.d" entry-name)))
- (should (and "The archive buffer should be untouched. (1)"
- (string-equal *cdmt-crc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
- (should (and "The dired style buffer should be untouched. (1)"
- (string-match *cdmt-crc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog."
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "%s(): The current entry should be ccccc.d"
test-name)
+ (string-equal "ccccc.d" entry-name)))
+ (should (progn (message "%s(): The archive buffer should be untouched.
(1)" test-name)
+ (string-equal *cdmt-crc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): The dired style buffer should be untouched.
(1)" test-name)
+ (string-match *cdmt-crc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "%s(): Expecting an unchanged catalog." test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-next-dirline 4)
(setq entry-name (cpio-dired-get-entry-name))
(setq cpio-archive-buffer-contents
@@ -14860,18 +16275,18 @@ cpio-dired-mouse-find-entry-other-window is not yet
implemented -- expect an err
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "The current entry should be ggggg.d"
- (string-equal "ggggg.d" entry-name)))
- (should (and "The archive buffer should be untouched. (2)"
- (string-equal *cdmt-crc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
- (should (and "The dired style buffer shouold be untouched (2)"
- (string-match *cdmt-crc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog."
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "%s(): The current entry should be ggggg.d"
test-name)
+ (string-equal "ggggg.d" entry-name)))
+ (should (progn (message "%s(): The archive buffer should be untouched.
(2)" test-name)
+ (string-equal *cdmt-crc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): The dired style buffer shouold be untouched
(2)" test-name)
+ (string-match *cdmt-crc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "%s(): Expecting an unchanged catalog." test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-next-dirline 8)
(setq entry-name (cpio-dired-get-entry-name))
(setq cpio-archive-buffer-contents
@@ -14881,18 +16296,18 @@ cpio-dired-mouse-find-entry-other-window is not yet
implemented -- expect an err
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "The current entry should be ooooo.d."
- (string-equal "ooooo.d" entry-name)))
- (should (and "The archive buffer should be untouched. (3)"
- (string-equal *cdmt-crc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
- (should (and "The dired style buffer should be untouched. (3)"
- (string-match *cdmt-crc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog."
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "%s(): The current entry should be ooooo.d."
test-name)
+ (string-equal "ooooo.d" entry-name)))
+ (should (progn (message "%s(): The archive buffer should be untouched.
(3)" test-name)
+ (string-equal *cdmt-crc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): The dired style buffer should be untouched.
(3)" test-name)
+ (string-match *cdmt-crc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "%s(): Expecting an unchanged catalog." test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-next-dirline 16)
(setq entry-name (cpio-dired-get-entry-name))
(setq cpio-archive-buffer-contents
@@ -14902,18 +16317,18 @@ cpio-dired-mouse-find-entry-other-window is not yet
implemented -- expect an err
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "The current entry should be zzzzz.d."
- (string-equal "zzzzz.d" entry-name)))
- (should (and "The archive buffer should be untouched. (4)"
- (string-equal *cdmt-crc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
- (should (and "The dired style buffer should be untouched. (4)"
- (string-match *cdmt-crc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog."
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "%s(): The current entry should be zzzzz.d."
test-name)
+ (string-equal "zzzzz.d" entry-name)))
+ (should (progn (message "%s(): The archive buffer should be untouched.
(4)" test-name)
+ (string-equal *cdmt-crc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): The dired style buffer should be untouched.
(4)" test-name)
+ (string-match *cdmt-crc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "%s(): Expecting an unchanged catalog." test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-next-dirline 1)
(setq entry-name (cpio-dired-get-entry-name))
(setq cpio-archive-buffer-contents
@@ -14923,16 +16338,16 @@ cpio-dired-mouse-find-entry-other-window is not yet
implemented -- expect an err
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "The current entry should still be zzzzz.d."
- (string-equal "zzzzz.d" entry-name)))
- (should (and "The archive buffer should be untouched. (5)"
- (string-equal *cdmt-crc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
- (should (and "The dired style buffer should be untouched. (5)"
- (string-match *cdmt-crc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog."
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "%s(): The current entry should still be zzzzz.d."
test-name)
+ (string-equal "zzzzz.d" entry-name)))
+ (should (progn (message "%s(): The archive buffer should be untouched.
(5)" test-name)
+ (string-equal *cdmt-crc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): The dired style buffer should be untouched.
(5)" test-name)
+ (string-match *cdmt-crc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "%s(): Expecting an unchanged catalog." test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-crc-cpio-dired-next-line () ;✓
"Test the function of M-x cpio-dired-next-line."
@@ -14944,9 +16359,9 @@ cpio-dired-mouse-find-entry-other-window is not yet
implemented -- expect an err
(cpio-catalog-contents-before)
(cpio-catalog-contents-after)
(entry-name))
- (cdmt-crc-reset 'make)
+ (cdmt-reset 'make)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(setq entry-name (cpio-dired-get-entry-name))
(setq cpio-archive-buffer-contents
(cdmt-crc-filter-archive-contents
@@ -14955,17 +16370,17 @@ cpio-dired-mouse-find-entry-other-window is not yet
implemented -- expect an err
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
(should (string-equal "a" entry-name))
- (should (and "Expecting an untouched dired buffer. (17987)"
- (string-match *cdmt-crc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expect an untouched archive. (17981)"
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17956)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (should (progn (message "%s(): Expecting an untouched dired buffer.
(17987)" test-name)
+ (string-match *cdmt-crc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "%s(): Expect an untouched archive. (17981)"
test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (17956)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-next-line 2)
(setq entry-name (cpio-dired-get-entry-name))
(setq cpio-archive-buffer-contents
@@ -14975,15 +16390,15 @@ cpio-dired-mouse-find-entry-other-window is not yet
implemented -- expect an err
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
(should (string-equal "aaa" entry-name))
- (should (and "Expecting an untouched dired buffer. (17988)"
- (string-match *cdmt-crc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expect an untouched archive. (17982)"
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting an untouched dired buffer.
(17988)" test-name)
+ (string-match *cdmt-crc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "%s(): Expect an untouched archive. (17982)"
test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-next-line 4)
(setq entry-name (cpio-dired-get-entry-name))
(setq cpio-archive-buffer-contents
@@ -14993,17 +16408,17 @@ cpio-dired-mouse-find-entry-other-window is not yet
implemented -- expect an err
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
(should (string-equal "b" entry-name))
- (should (and "Expecting an untouched dired buffer. (17989)"
- (string-match *cdmt-crc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expect an untouched archive. (17983)"
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17957)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (should (progn (message "%s(): Expecting an untouched dired buffer.
(17989)" test-name)
+ (string-match *cdmt-crc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "%s(): Expect an untouched archive. (17983)"
test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (17957)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-next-line 100)
(setq entry-name (cpio-dired-get-entry-name))
(setq cpio-archive-buffer-contents
@@ -15013,49 +16428,49 @@ cpio-dired-mouse-find-entry-other-window is not yet
implemented -- expect an err
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
(should (equal nil entry-name))
- (should (and "Expecting an untouched dired buffer. (17990)"
- (string-match *cdmt-crc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expect an untouched archive. (17984)"
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17958)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+ (should (progn (message "%s(): Expecting an untouched dired buffer.
(17990)" test-name)
+ (string-match *cdmt-crc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "%s(): Expect an untouched archive. (17984)"
test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (17958)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-crc-cpio-dired-next-marked-entry ()
"Test cpio-dired-next-marked-entry.
cpio-dired-next-marked-entry is not yet implemented -- expect an error."
(should-error (cpio-dired-next-marked-entry)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-next-marked-entry ()
"Test cpio-dired-next-marked-entry.
cpio-dired-next-marked-entry is not yet implemented -- expect an error."
(should-error (cpio-dired-next-marked-entry)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-next-subdir ()
"Test the function of M-x cpio-next-subdir."
(should-error (cpio-dired-next-marked-entry)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-prev-marked-entry ()
"Test cpio-dired-prev-marked-entry.
cpio-dired-prev-marked-entry is not yet implemented -- expect an error."
(should-error (cpio-dired-prev-marked-entry)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-prev-marked-entry ()
"Test cpio-dired-prev-marked-entry.
cpio-dired-prev-marked-entry is not yet implemented -- expect an error."
(should-error (cpio-dired-prev-marked-entry)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-prev-subdir ()
"Test the function of M-x cpio-dired-prev-subdir."
(should-error (cpio-dired-previous-line)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-previous-line () ;✓
(let ((test-name "cdmt-crc-cpio-dired-previous-line")
@@ -15066,9 +16481,9 @@ cpio-dired-prev-marked-entry is not yet implemented --
expect an error."
(cpio-catalog-contents-before)
(cpio-catalog-contents-after)
(where))
- (cdmt-crc-reset)
+ (cdmt-reset)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(goto-char (point-max))
(cpio-dired-previous-line 1)
(setq where (point))
@@ -15079,16 +16494,16 @@ cpio-dired-prev-marked-entry is not yet implemented
-- expect an error."
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
(should (= where 1155))
(should (string-match *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents))
- (should (and "Expecting an untouched dired buffer. (17991)"
- (string-match *cdmt-crc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17959)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+ (should (progn (message "%s(): Expecting an untouched dired buffer.
(17991)" test-name)
+ (string-match *cdmt-crc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (17959)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-previous-line 2)
(setq where (point))
(setq cpio-archive-buffer-contents
@@ -15098,16 +16513,16 @@ cpio-dired-prev-marked-entry is not yet implemented
-- expect an error."
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
(should (= where 1019))
(should (string-match *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents))
- (should (and "Expecting an untouched dired buffer. (17992)"
- (string-match *cdmt-crc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17960)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+ (should (progn (message "%s(): Expecting an untouched dired buffer.
(17992)" test-name)
+ (string-match *cdmt-crc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (17960)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-previous-line 4)
(setq where (point))
(setq cpio-archive-buffer-contents
@@ -15117,38 +16532,38 @@ cpio-dired-prev-marked-entry is not yet implemented
-- expect an error."
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
(should (= where 774))
(should (string-match *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents))
- (should (and "Expecting an untouched dired buffer. (17993)"
- (string-match *cdmt-crc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17961)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+ (should (progn (message "%s(): Expecting an untouched dired buffer.
(17993)" test-name)
+ (string-match *cdmt-crc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (17961)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-crc-cpio-dired-previous-line ()
"Test cpio-dired-previous-line.
cpio-dired-previous-line is not yet implemented -- expect an error."
(should-error (cpio-dired-previous-line)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-previous-line ()
"Test cpio-dired-previous-line.
cpio-dired-previous-line is not yet implemented -- expect an error."
(should-error (cpio-dired-previous-line)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-show-entry-type ()
"Test cpio-dired-show-entry-type.
cpio-dired-show-entry-type is not yet implemented -- expect an error."
(should-error (cpio-dired-show-entry-type)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-sort-toggle-or-edit ()
"Test cpio-dired-sort-toggle-or-edit.
cpio-dired-sort-toggle-or-edit is not yet implemented -- expect an error."
(should-error (cpio-dired-sort-toggle-or-edit)
- :type 'error))
+ :type 'error))
;; I'm not sure how to test this.
;; (ert-deftest cdmt-crc-cpio-dired-summary () ;✓
@@ -15166,38 +16581,38 @@ cpio-dired-sort-toggle-or-edit is not yet implemented
-- expect an error."
;;
;; (should (string-equal (with-output-to-string
;; (cpio-dired-summary))
-
+
;; ))
(ert-deftest cdmt-crc-cpio-dired-toggle-marks ()
"Test cpio-dired-toggle-marks.
cpio-dired-toggle-marks is not yet implemented -- expect an error."
(should-error (cpio-dired-toggle-marks)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-toggle-marks ()
"Test cpio-dired-toggle-marks.
cpio-dired-toggle-marks is not yet implemented -- expect an error."
(should-error (cpio-dired-toggle-marks)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-toggle-read-only ()
"Test cpio-dired-toggle-read-only.
cpio-dired-toggle-read-only is not yet implemented -- expect an error."
(should-error (cpio-dired-toggle-read-only)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-toggle-read-only ()
"Test cpio-dired-toggle-read-only.
cpio-dired-toggle-read-only is not yet implemented -- expect an error."
(should-error (cpio-dired-toggle-read-only)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-undo ()
"Test cpio-dired-undo.
cpio-dired-undo is not yet implemented -- expect an error."
(should-error (cpio-dired-undo)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-unmark () ;✓
"Test the function of M-x cpio-dired-unmark."
@@ -15208,9 +16623,9 @@ cpio-dired-undo is not yet implemented -- expect an
error."
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-crc-reset 'make)
+ (cdmt-reset 'make)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark-entries-regexp ".")
(cpio-dired-unmark 1)
(setq cpio-archive-buffer-contents
@@ -15220,12 +16635,12 @@ cpio-dired-undo is not yet implemented -- expect an
error."
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting an untouched small archive."
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a dired-style buffer with every entry except the
first marked."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "%s(): Expecting an untouched small archive."
test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting a dired-style buffer with every
entry except the first marked." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15246,10 +16661,10 @@ cpio-dired-undo is not yet implemented -- expect an
error."
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
\\* drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17962)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (17962)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-next-line 2)
(cpio-dired-unmark 2)
(setq cpio-archive-buffer-contents
@@ -15259,12 +16674,12 @@ cpio-dired-undo is not yet implemented -- expect an
error."
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting an untouched small archive."
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecing a dired bugger with all but two entries marked."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "%s(): Expecting an untouched small archive."
test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecing a dired bugger with all but two
entries marked." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15285,10 +16700,10 @@ cpio-dired-undo is not yet implemented -- expect an
error."
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
\\* drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17963)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (17963)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(dired-next-line 4)
(cpio-dired-unmark 4)
(setq cpio-archive-buffer-contents
@@ -15298,12 +16713,12 @@ cpio-dired-undo is not yet implemented -- expect an
error."
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting an untouched small archive."
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a dired-style buffer with another 4 entries
unmarked."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Expecting an untouched small archive."
test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting a dired-style buffer with another
4 entries unmarked." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15324,10 +16739,11 @@ cpio-dired-undo is not yet implemented -- expect an
error."
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
\\* drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17964)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (17964)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(dired-next-line 4)
(cpio-dired-unmark 4)
(setq cpio-archive-buffer-contents
@@ -15337,12 +16753,12 @@ cpio-dired-undo is not yet implemented -- expect an
error."
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting an untouched archive."
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a dired-style buffer with yet the last entry
unmarked."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Expecting an untouched archive." test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting a dired-style buffer with yet the
last entry unmarked." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15363,8 +16779,9 @@ cpio-dired-undo is not yet implemented -- expect an
error."
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17965)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+
+ (should (progn (message "%s(): Expecting an unchanged catalog. (17965)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-crc-cpio-dired-unmark-all-entries ()
"Test cpio-dired-unmark-all-entries."
@@ -15375,9 +16792,9 @@ cpio-dired-undo is not yet implemented -- expect an
error."
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-crc-reset 'make)
+ (cdmt-reset 'make)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark-entries-regexp ".")
(cpio-dired-move-to-first-entry)
(cpio-dired-next-line 2)
@@ -15393,12 +16810,12 @@ cpio-dired-undo is not yet implemented -- expect an
error."
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting an unchanged archive buffer."
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a variety of marks in a dired-style buffer."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Expecting an unchanged archive buffer."
test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting a variety of marks in a
dired-style buffer." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15419,10 +16836,11 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
\\* drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17966)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (17966)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-unmark-all-entries "" nil)
(setq cpio-archive-buffer-contents
(cdmt-crc-filter-archive-contents
@@ -15431,12 +16849,12 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting an unchanged archive buffer."
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a dired-style buffer with no marks."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Expecting an unchanged archive buffer."
test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting a dired-style buffer with no
marks." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15457,10 +16875,11 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17967)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (17967)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark-entries-regexp ".")
(cpio-dired-move-to-first-entry)
(cpio-dired-next-line 2)
@@ -15476,12 +16895,12 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting an unchanged archive buffer."
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a variety of marks in a dired-style buffer."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Expecting an unchanged archive buffer."
test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting a variety of marks in a
dired-style buffer." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15502,11 +16921,11 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
\\* drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
-
- (should (and "Expecting an unchanged catalog. (17968)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (17968)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-unmark-all-entries "B" nil)
(setq cpio-archive-buffer-contents
(cdmt-crc-filter-archive-contents
@@ -15515,12 +16934,12 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting an unchanged archive buffer."
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a dired-style buffer with no B marks."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Expecting an unchanged archive buffer."
test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting a dired-style buffer with no B
marks." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15542,10 +16961,10 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
\\* drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17969)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (17969)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-unmark-all-entries "F" nil)
(setq cpio-archive-buffer-contents
(cdmt-crc-filter-archive-contents
@@ -15554,12 +16973,12 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting an unchanged archive buffer."
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a dired-style buffer with neither B nor F marks."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Expecting an unchanged archive buffer."
test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting a dired-style buffer with neither
B nor F marks." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15580,8 +16999,9 @@ E -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|de
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
\\* drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17970)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+
+ (should (progn (message "%s(): Expecting an unchanged catalog. (17970)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-crc-cpio-dired-unmark-all-marks ()
"Test cpio-dired-unmark-all-marks."
@@ -15592,9 +17012,9 @@ E -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|de
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-crc-reset 'make)
+ (cdmt-reset 'make)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark-entries-regexp ".")
(cpio-dired-move-to-first-entry)
(cpio-dired-next-line 2)
@@ -15610,12 +17030,12 @@ E -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|de
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting an unchanged archive buffer."
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a variety of marks in a dired-style buffer."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Expecting an unchanged archive buffer."
test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting a variety of marks in a
dired-style buffer." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15636,10 +17056,11 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
\\* drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17971)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+
+ (should (progn (message "%s(): Expecting an unchanged catalog. (17971)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-unmark-all-marks)
(setq cpio-archive-buffer-contents
(cdmt-crc-filter-archive-contents
@@ -15648,12 +17069,12 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting an unchanged archive buffer."
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a dired-style buffer with no marks."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+ (should (progn (message "%s(): Expecting an unchanged archive buffer."
test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting a dired-style buffer with no
marks." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15674,8 +17095,9 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17972)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+
+ (should (progn (message "%s(): Expecting an unchanged catalog. (17972)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-crc-cpio-dired-unmark-all-marks () ;✓
"Test the function of M-x cpio-unmark-all-marks."
@@ -15687,9 +17109,9 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-crc-reset 'make)
+ (cdmt-reset 'make)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark 2)
(cpio-dired-next-line 2)
(let ((cpio-dired-marker-char cpio-dired-del-marker))
@@ -15706,38 +17128,38 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expect an untouched archive. (17985)"
- (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting an untouched dired buffer. (17994)"
- (string-match *cdmt-crc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17973)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+ (should (progn (message "%s(): Expect an untouched archive. (17985)"
test-name)
+ (string-equal *cdmt-crc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting an untouched dired buffer.
(17994)" test-name)
+ (string-match *cdmt-crc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (17973)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-crc-cpio-dired-unmark-backward ()
"Test cpio-dired-unmark-backward.
cpio-dired-unmark-backward is not yet implemented -- expect an error."
(should-error (cpio-dired-unmark-backward)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-unmark-backward ()
"Test cpio-dired-unmark-backward.
cpio-dired-unmark-backward is not yet implemented -- expect an error."
(should-error (cpio-dired-unmark-backward)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-up-directory ()
"Test cpio-dired-up-directory.
cpio-dired-up-directory is not yet implemented -- expect an error."
(should-error (cpio-dired-up-directory)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-upcase ()
"Test cpio-dired-upcase.
cpio-dired-upcase is not yet implemented -- expect an error."
(should-error (cpio-dired-upcase)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-view-archive () ;✓
"Test the function of M-x cpio-view-archive."
@@ -15750,14 +17172,14 @@ cpio-dired-upcase is not yet implemented -- expect an
error."
(cpio-catalog-contents-after)
(cpio-archive-window)
(cpio-dired-window))
- (cdmt-crc-reset 'make)
+ (cdmt-reset 'make)
(setq cpio-dired-window (get-buffer-window (get-buffer cpio-dired-buffer)))
(should (window-live-p cpio-dired-window))
(setq cpio-archive-window (get-buffer-window (get-buffer
cpio-archive-buffer)))
;; (should (not (window-live-p cpio-dired-window)))
(should (eq nil cpio-archive-window))
-
+
(cpio-dired-view-archive)
(setq cpio-dired-window (get-buffer-window (get-buffer cpio-dired-buffer)))
@@ -15778,110 +17200,136 @@ cpio-dired-upcase is not yet implemented -- expect
an error."
"Test cpio-dired-view-entry.
cpio-dired-view-entry is not yet implemented -- expect an error."
(should-error (cpio-dired-view-entry)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-epa-dired-do-decrypt ()
"Test cpio-epa-dired-do-decrypt.
cpio-epa-dired-do-decrypt is not yet implemented -- expect an error."
(should-error (cpio-epa-dired-do-decrypt)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-epa-dired-do-encrypt ()
"Test cpio-epa-dired-do-encrypt.
cpio-epa-dired-do-encrypt is not yet implemented -- expect an error."
(should-error (cpio-epa-dired-do-encrypt)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-epa-dired-do-sign ()
"Test cpio-epa-dired-do-sign.
cpio-epa-dired-do-sign is not yet implemented -- expect an error."
(should-error (cpio-epa-dired-do-sign)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-epa-dired-do-verify ()
"Test cpio-epa-dired-do-verify.
cpio-epa-dired-do-verify is not yet implemented -- expect an error."
(should-error (cpio-epa-dired-do-verify)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-image-dired-delete-tag ()
"Test cpio-image-dired-delete-tag.
cpio-image-dired-delete-tag is not yet implemented -- expect an error."
(should-error (cpio-image-dired-delete-tag)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-image-dired-dired-comment-entries ()
"Test cpio-image-dired-dired-comment-entries.
cpio-image-dired-dired-comment-entries is not yet implemented -- expect an
error."
(should-error (cpio-image-dired-dired-comment-entries)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-image-dired-dired-display-external ()
"Test cpio-image-dired-dired-display-external.
cpio-image-dired-dired-display-external is not yet implemented -- expect an
error."
(should-error (cpio-image-dired-dired-display-external)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-image-dired-dired-display-image ()
"Test cpio-image-dired-dired-display-image.
cpio-image-dired-dired-display-image is not yet implemented -- expect an
error."
(should-error (cpio-image-dired-dired-display-image)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-image-dired-dired-edit-comment-and-tags ()
"Test cpio-image-dired-dired-edit-comment-and-tags.
cpio-image-dired-dired-edit-comment-and-tags is not yet implemented -- expect
an error."
(should-error (cpio-image-dired-dired-edit-comment-and-tags)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-image-dired-dired-toggle-marked-thumbs ()
"Test cpio-image-dired-dired-toggle-marked-thumbs.
cpio-image-dired-dired-toggle-marked-thumbs is not yet implemented -- expect
an error."
(should-error (cpio-image-dired-dired-toggle-marked-thumbs)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-image-dired-display-thumb ()
"Test cpio-image-dired-display-thumb.
cpio-image-dired-display-thumb is not yet implemented -- expect an error."
(should-error (cpio-image-dired-display-thumb)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-image-dired-display-thumbs ()
"Test cpio-image-dired-display-thumbs.
cpio-image-dired-display-thumbs is not yet implemented -- expect an error."
(should-error (cpio-image-dired-display-thumbs)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-image-dired-display-thumbs-append ()
"Test cpio-image-dired-display-thumbs-append.
cpio-image-dired-display-thumbs-append is not yet implemented -- expect an
error."
(should-error (cpio-image-dired-display-thumbs-append)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-image-dired-jump-thumbnail-buffer ()
"Test cpio-image-dired-jump-thumbnail-buffer.
cpio-image-dired-jump-thumbnail-buffer is not yet implemented -- expect an
error."
(should-error (cpio-image-dired-jump-thumbnail-buffer)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-image-dired-mark-tagged-entries ()
"Test cpio-image-dired-mark-tagged-entries.
cpio-image-dired-mark-tagged-entries is not yet implemented -- expect an
error."
(should-error (cpio-image-dired-mark-tagged-entries)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-image-dired-tag-entries ()
"Test cpio-image-dired-tag-entries.
cpio-image-dired-tag-entries is not yet implemented -- expect an error."
(should-error (cpio-image-dired-tag-entries)
- :type 'error))
+ :type 'error))
+;;;;;;;; (ert-deftest cdmt-crc-cpio-quit-window () ;✓
+;;;;;;;; "Test cpio-quit-window.
+;;;;;;;; cpio-quit-window is not yet implemented -- expect an error."
+;;;;;;;; (let ((test-name "cdmt-crc-cpio-dired-quit-window")
+;;;;;;;; (cpio-archive-buffer)
+;;;;;;;; (cpio-archive-buffer-contents)
+;;;;;;;; (cpio-dired-buffer)
+;;;;;;;; (cpio-dired-buffer-contents)
+;;;;;;;; (cpio-archive-window)
+;;;;;;;; (cpio-dired-window)
+;;;;;;;; )
+;;;;;;;; (cdmt-reset 'make)
+
+;;;;;;;; (setq cpio-dired-window (get-buffer-window (get-buffer
cpio-dired-buffer)))
+;;;;;;;; (should (window-live-p cpio-dired-window))
+;;;;;;;; (setq cpio-archive-window (get-buffer-window (get-buffer
cpio-archive-buffer)))
+;;;;;;;; ;; (should (not (window-live-p cpio-dired-window)))
+;;;;;;;; (should (eq nil cpio-archive-window))
+
+;;;;;;;; This causes an error under ERT.
+;;;;;;;; (cpio-quit-window)
+
+;;;;;;;; (setq cpio-dired-window (get-buffer-window (get-buffer
cpio-dired-buffer)))
+;;;;;;;; (should (eq nil cpio-dired-window))
+;;;;;;;; (setq cpio-archive-window (get-buffer-window (get-buffer
cpio-archive-buffer)))
+;;;;;;;; (should (eq nil cpio-archive-window))))
(ert-deftest cdmt-crc-revert-buffer ()
"Test revert-buffer.
revert-buffer is not yet implemented -- expect an error."
(should-error (revert-buffer)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-crc-cpio-dired-create-directory ()
"Test cpio-dired-create-directory."
@@ -15894,10 +17342,11 @@ revert-buffer is not yet implemented -- expect an
error."
(cpio-catalog-contents-after)
(cpio-archive-window)
(cpio-dired-window))
+ (message "%s(): starting." test-name)
- (cdmt-crc-reset 'make)
+ (cdmt-reset 'make)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-create-directory "newDirectory")
(setq cpio-archive-buffer-contents
(cdmt-crc-filter-archive-contents
@@ -15906,10 +17355,10 @@ revert-buffer is not yet implemented -- expect an
error."
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting a cpio archive with newDirectory, a new directory."
- (string-equal "070702 (( magic ))
+;; (should (progn (message "%s(): Expecting a cpio archive with
newDirectory, a new directory." test-name)
+ (should (string-equal "070702 (( magic ))
DEADBEEF (( ino ))
000081A4 (( mode ))
000003E8 (( uid ))
@@ -16240,9 +17689,10 @@ DEADBEEF (( rdev min ))
00000000 (( chksum ))
newDirectory (( filename ))
\\0
-" cpio-archive-buffer-contents)))
- (should (and "Expecting a cpio dired buffer with newDirectory, a new
directory."
- (string-match "CPIO archive: alphabet_small.crc.cpio:
+" cpio-archive-buffer-contents))
+
+ (should (progn (message "%s(): Expecting a cpio dired buffer with
newDirectory, a new directory." test-name)
+ (string-match "CPIO archive: alphabet_small.crc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -16264,105 +17714,106 @@ newDirectory (( filename ))
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
drwxr-xr-x 1 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory
" cpio-dired-buffer-contents)))
- (should (and "Expecting a catalog with a new directory called
»newDirectory«."
- (string-match "((\"newDirectory\" \\.
-\\s-+[[1 16877 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 13 0
\"newDirectory\"]
-\\s-+#<marker at 2197 in alphabet_small\\.crc\\.cpio> #<marker at 2321 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified])
- (\"a\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\\.crc\\.cpio> #<marker at 113 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\\.crc\\.cpio> #<marker at 233 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\\.crc\\.cpio> #<marker at 357 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\\.crc\\.cpio> #<marker at 481 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\\.crc\\.cpio> #<marker at 605 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\\.d\" \\.
-\\s-+[[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\\.d\"]
-\\s-+#<marker at 613 in alphabet_small\\.crc\\.cpio> #<marker at 733 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\\.crc\\.cpio> #<marker at 845 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\\.crc\\.cpio> #<marker at 965 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\\.crc\\.cpio> #<marker at 1089 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\\.crc\\.cpio> #<marker at 1213 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\\.crc\\.cpio> #<marker at 1337 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\\.d\" \\.
-\\s-+[[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\\.crc\\.cpio> #<marker at 1465 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\\.crc\\.cpio> #<marker at 1577 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\\.crc\\.cpio> #<marker at 1697 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\\.crc\\.cpio> #<marker at 1821 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\\.crc\\.cpio> #<marker at 1945 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\\.crc\\.cpio> #<marker at 2069 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\\.d\" \\.
-\\s-+[[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\\.crc\\.cpio> #<marker at 2197 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified]))
+
+ (should (progn (message "%s(): Expecting a catalog with a new directory
called »newDirectory«." test-name)
+ (string-match "((¨newDirectory¨ \\.
+\\s-+»»1 16877 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 13 0 ¨newDirectory¨«
+\\s-+#<marker at 2197 in alphabet_small\\.crc\\.cpio> #<marker at 2321 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨a¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 127 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\\.crc\\.cpio> #<marker at 113 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 224 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\\.crc\\.cpio> #<marker at 233 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 321 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\\.crc\\.cpio> #<marker at 357 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 418 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\\.crc\\.cpio> #<marker at 481 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 515 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\\.crc\\.cpio> #<marker at 605 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\\.d¨ \\.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\\.d¨«
+\\s-+#<marker at 613 in alphabet_small\\.crc\\.cpio> #<marker at 733 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 128 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\\.crc\\.cpio> #<marker at 845 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 226 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\\.crc\\.cpio> #<marker at 965 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 324 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\\.crc\\.cpio> #<marker at 1089 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 422 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\\.crc\\.cpio> #<marker at 1213 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 520 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\\.crc\\.cpio> #<marker at 1337 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\\.d¨ \\.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\\.crc\\.cpio> #<marker at 1465 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 129 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\\.crc\\.cpio> #<marker at 1577 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 228 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\\.crc\\.cpio> #<marker at 1697 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 327 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\\.crc\\.cpio> #<marker at 1821 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 426 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\\.crc\\.cpio> #<marker at 1945 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 525 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\\.crc\\.cpio> #<marker at 2069 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\\.d¨ \\.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\\.crc\\.cpio> #<marker at 2197 in
alphabet_small\\.crc\\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
-
- (cdmt-crc-test-save)))
+
+ (cdmt-test-save *cdmt-archive-format*)))
;;
@@ -16373,4 +17824,3 @@ newDirectory (( filename ))
;;; cpio-dired-crc-test.el ends here
-
diff --git a/cpio-dired-odc-test.el b/cpio-dired-odc-test.el
index 08b8c0c..8b8f66d 100644
--- a/cpio-dired-odc-test.el
+++ b/cpio-dired-odc-test.el
@@ -1,6 +1,6 @@
;; -*- coding: utf-8 -*-
;;; cpio-dired-test.el --- Tests of cpio-dired-mode.
-; $Id: cpio-dired-odc-test.el,v 1.7 2018/06/17 07:34:12 doug Exp $
+; $Id: cpio-dired-odc-test.el,v 1.8 2018/11/19 21:25:38 doug Exp $
;; COPYRIGHT
@@ -51,7 +51,12 @@
;;
;; Dependencies
;;
-(load (concat default-directory "cpio.el"))
+(load (concat default-directory "test-generic.el"))
+
+(eval-when-compile
+ (if (file-exists-p (concat default-directory "cpio.elc"))
+ (load (concat default-directory "cpio.elc")))
+ (load (concat default-directory "cpio.el")))
;;;;;;;;;;;;;;;;
;; Things to make the byte compiler happy.
@@ -189,6 +194,10 @@
"A large archive used for testing.")
(setq *cdmt-odc-large-archive* "test_data/alphabet/alphabet.odc.cpio")
+(setq *cdmt-small-archive* *cdmt-odc-small-archive*)
+(setq *cdmt-large-archive* *cdmt-odc-large-archive*)
+(setq *cdmt-archive-format* "odc")
+
(defvar *cdmt-odc-untouched-small-archive* "070707 (( magic ))
DEADBE (( ino ))
100644 (( mode ))
@@ -903,184 +912,184 @@ TRAILER!!! (( filename ))
\\s-+[[43252341448 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+4 253 0 0 0 2 0 \"a\"]
-\\s-+#<marker at 1 in alphabet_small.odc.cpio> #<marker at 113 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 1 in alphabet_small.odc.cpio> #<marker at 113 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"aa\" .
\\s-+[[43252341474 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+5 253 0 0 0 3 0 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small.odc.cpio> #<marker at 233 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 117 in alphabet_small.odc.cpio> #<marker at 233 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"aaa\" .
\\s-+[[43252341508 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+6 253 0 0 0 4 0 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small.odc.cpio> #<marker at 357 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 241 in alphabet_small.odc.cpio> #<marker at 357 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"aaaa\" .
\\s-+[[43252341511 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+7 253 0 0 0 5 0 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small.odc.cpio> #<marker at 481 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 365 in alphabet_small.odc.cpio> #<marker at 481 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"aaaaa\" .
\\s-+[[43252341512 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+8 253 0 0 0 6 0 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small.odc.cpio> #<marker at 605 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 489 in alphabet_small.odc.cpio> #<marker at 605 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"aaaaa.d\" .
\\s-+[[43252341515 16877 1000 1000 2
\\s-+(23268 65535)
\\s-+0 253 0 0 0 8 0 \"aaaaa.d\"]
-\\s-+#<marker at 613 in alphabet_small.odc.cpio> #<marker at 733 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 613 in alphabet_small.odc.cpio> #<marker at 733 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"b\" .
\\s-+[[43252341513 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+4 253 0 0 0 2 0 \"b\"]
-\\s-+#<marker at 733 in alphabet_small.odc.cpio> #<marker at 845 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 733 in alphabet_small.odc.cpio> #<marker at 845 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"bb\" .
\\s-+[[43252341514 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+5 253 0 0 0 3 0 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small.odc.cpio> #<marker at 965 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 849 in alphabet_small.odc.cpio> #<marker at 965 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"bbb\" .
\\s-+[[43252341516 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+6 253 0 0 0 4 0 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small.odc.cpio> #<marker at 1089 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 973 in alphabet_small.odc.cpio> #<marker at 1089 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"bbbb\" .
\\s-+[[43252341517 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+7 253 0 0 0 5 0 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small.odc.cpio> #<marker at 1213 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 1097 in alphabet_small.odc.cpio> #<marker at 1213 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"bbbbb\" .
\\s-+[[43252341518 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+8 253 0 0 0 6 0 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small.odc.cpio> #<marker at 1337 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 1221 in alphabet_small.odc.cpio> #<marker at 1337 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"bbbbb.d\" .
\\s-+[[43252341601 16877 1000 1000 2
\\s-+(23268 65535)
\\s-+0 253 0 0 0 8 0 \"bbbbb.d\"]
-\\s-+#<marker at 1345 in alphabet_small.odc.cpio> #<marker at 1465 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 1345 in alphabet_small.odc.cpio> #<marker at 1465 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"c\" .
\\s-+[[43252341519 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+4 253 0 0 0 2 0 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small.odc.cpio> #<marker at 1577 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 1465 in alphabet_small.odc.cpio> #<marker at 1577 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"cc\" .
\\s-+[[43252341600 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+5 253 0 0 0 3 0 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small.odc.cpio> #<marker at 1697 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 1581 in alphabet_small.odc.cpio> #<marker at 1697 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"ccc\" .
\\s-+[[43252341602 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+6 253 0 0 0 4 0 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small.odc.cpio> #<marker at 1821 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 1705 in alphabet_small.odc.cpio> #<marker at 1821 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"cccc\" .
\\s-+[[43252341603 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+7 253 0 0 0 5 0 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small.odc.cpio> #<marker at 1945 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 1829 in alphabet_small.odc.cpio> #<marker at 1945 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"ccccc\" .
\\s-+[[43252341604 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+8 253 0 0 0 6 0 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small.odc.cpio> #<marker at 2069 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 1953 in alphabet_small.odc.cpio> #<marker at 2069 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"ccccc.d\" .
\\s-+[[43252341607 16877 1000 1000 2
\\s-+(23268 65535)
\\s-+0 253 0 0 0 8 0 \"ccccc.d\"]
-\\s-+#<marker at 2077 in alphabet_small.odc.cpio> #<marker at 2197 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified]))
+\\s-+#<marker at 2077 in alphabet_small.odc.cpio> #<marker at 2197 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«))
"
"An string representing an untouched catalog.")
(setq *cdmt-odc-untouched-small-catalog* "((\"a\" .
\\s-+[[43252341448 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+4 253 0 0 0 2 0 \"a\"]
-\\s-+#<marker at 1 in alphabet_small.odc.cpio> #<marker at 113 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 1 in alphabet_small.odc.cpio> #<marker at 113 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"aa\" .
\\s-+[[43252341474 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+5 253 0 0 0 3 0 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small.odc.cpio> #<marker at 233 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 117 in alphabet_small.odc.cpio> #<marker at 233 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"aaa\" .
\\s-+[[43252341508 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+6 253 0 0 0 4 0 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small.odc.cpio> #<marker at 357 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 241 in alphabet_small.odc.cpio> #<marker at 357 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"aaaa\" .
\\s-+[[43252341511 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+7 253 0 0 0 5 0 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small.odc.cpio> #<marker at 481 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 365 in alphabet_small.odc.cpio> #<marker at 481 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"aaaaa\" .
\\s-+[[43252341512 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+8 253 0 0 0 6 0 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small.odc.cpio> #<marker at 605 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 489 in alphabet_small.odc.cpio> #<marker at 605 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"aaaaa.d\" .
\\s-+[[43252341515 16877 1000 1000 2
\\s-+(23268 65535)
\\s-+0 253 0 0 0 8 0 \"aaaaa.d\"]
-\\s-+#<marker at 613 in alphabet_small.odc.cpio> #<marker at 733 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 613 in alphabet_small.odc.cpio> #<marker at 733 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"b\" .
\\s-+[[43252341513 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+4 253 0 0 0 2 0 \"b\"]
-\\s-+#<marker at 733 in alphabet_small.odc.cpio> #<marker at 845 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 733 in alphabet_small.odc.cpio> #<marker at 845 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"bb\" .
\\s-+[[43252341514 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+5 253 0 0 0 3 0 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small.odc.cpio> #<marker at 965 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 849 in alphabet_small.odc.cpio> #<marker at 965 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"bbb\" .
\\s-+[[43252341516 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+6 253 0 0 0 4 0 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small.odc.cpio> #<marker at 1089 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 973 in alphabet_small.odc.cpio> #<marker at 1089 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"bbbb\" .
\\s-+[[43252341517 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+7 253 0 0 0 5 0 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small.odc.cpio> #<marker at 1213 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 1097 in alphabet_small.odc.cpio> #<marker at 1213 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"bbbbb\" .
\\s-+[[43252341518 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+8 253 0 0 0 6 0 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small.odc.cpio> #<marker at 1337 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 1221 in alphabet_small.odc.cpio> #<marker at 1337 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"bbbbb.d\" .
\\s-+[[43252341601 16877 1000 1000 2
\\s-+(23268 65535)
\\s-+0 253 0 0 0 8 0 \"bbbbb.d\"]
-\\s-+#<marker at 1345 in alphabet_small.odc.cpio> #<marker at 1465 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 1345 in alphabet_small.odc.cpio> #<marker at 1465 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"c\" .
\\s-+[[43252341519 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+4 253 0 0 0 2 0 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small.odc.cpio> #<marker at 1577 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 1465 in alphabet_small.odc.cpio> #<marker at 1577 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"cc\" .
\\s-+[[43252341600 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+5 253 0 0 0 3 0 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small.odc.cpio> #<marker at 1697 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 1581 in alphabet_small.odc.cpio> #<marker at 1697 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"ccc\" .
\\s-+[[43252341602 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+6 253 0 0 0 4 0 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small.odc.cpio> #<marker at 1821 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 1705 in alphabet_small.odc.cpio> #<marker at 1821 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"cccc\" .
\\s-+[[43252341603 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+7 253 0 0 0 5 0 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small.odc.cpio> #<marker at 1945 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 1829 in alphabet_small.odc.cpio> #<marker at 1945 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"ccccc\" .
\\s-+[[43252341604 33188 1000 1000 1
\\s-+(23281 65535)
\\s-+8 253 0 0 0 6 0 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small.odc.cpio> #<marker at 2069 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
+\\s-+#<marker at 1953 in alphabet_small.odc.cpio> #<marker at 2069 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
(\"ccccc.d\" .
\\s-+[[43252341607 16877 1000 1000 2
\\s-+(23268 65535)
\\s-+0 253 0 0 0 8 0 \"ccccc.d\"]
-\\s-+#<marker at 2077 in alphabet_small.odc.cpio> #<marker at 2197 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified]))
+\\s-+#<marker at 2077 in alphabet_small.odc.cpio> #<marker at 2197 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«))
")
(defvar *cdmt-odc-untouched-large-archive-buffer* "070707 (( magic ))
@@ -6735,47 +6744,9 @@ TRAILER!!! (( filename ))
-;;
+;;
;; Library
;;
-
-(shell-command "cd test_data/alphabet ; make odc" nil nil)
-
-(defun cdmt-odc-reset (&optional make large)
- "Reset the current cpio-dired environment.
-If MAKE is non-nil, then run 'make odc' as part of the reset."
- (let ((fname "cdmt-odc-reset")
- (archive-name)
- (archive-names (list *cdmt-odc-small-archive*
- *cdmt-odc-large-archive*)))
- (cd run-dir)
- (mapc (lambda (an)
- (setq cpio-archive-buffer (find-file-noselect an nil nil))
- (if (and (file-exists-p an)
- (buffer-live-p (get-buffer cpio-archive-buffer)))
- (with-current-buffer cpio-archive-buffer
- (revert-buffer nil 'noconfirm))
- (condition-case v
- (kill-buffer cpio-dired-buffer)
- (error (message "%s(): no dired buffer to kill." fname)))))
- archive-names)
-
- (cd run-dir)
-
- (if make
- (shell-command "cd test_data/alphabet ; make odc" nil nil))
-
- (setq archive-name (if large
- *cdmt-odc-large-archive*
- *cdmt-odc-small-archive*))
-
- (delete-other-windows)
- (with-current-buffer (setq cpio-archive-buffer (find-file-noselect
archive-name nil nil))
- (if (string-match "/test_data/.+/test_data/" (buffer-file-name))
- (error "Bogus archive!"))
- (cpio-mode))
- (setq cpio-dired-buffer (switch-to-buffer (cpio-dired-buffer-name
archive-name)))))
-
(defun cdmt-odc-filter-archive-contents (archive-contents)
"Make the given ARCHIVE-CONTENTS fully printable and readable."
(let ((fname "cdmt-odc-filter-archive-contents")
@@ -6784,7 +6755,7 @@ If MAKE is non-nil, then run 'make odc' as part of the
reset."
(mapc (lambda (cm)
(let ((from (car cm))
(to (cdr cm)))
- (setq archive-contents (cdmt-odc-global-sub from to
archive-contents))))
+ (setq archive-contents (cdmt-global-sub from to
archive-contents))))
char-map)
archive-contents))
@@ -6818,351 +6789,6 @@ then the entry names will be incorrect."
(substring archive-contents (match-end
0)))))
(concat archive-contents "\n")))
-(defun cdmt-odc-global-sub (from-str to-str string)
- "Globally substitute TO-STR for FROM-STR in STRING and return the new string.
-In principal, FROM-STR can be a regular expression."
- (let ((fname "cdmt-odc-global-sub"))
- (while (string-match from-str string)
- (setq string (replace-match to-str nil t string 0)))
- string))
-
-;;
-;; Commands
-;;
-
-;;
-;; The contents of these tests were generated
-;; from the dired-mode-map definition
-;; (where commands are tagged as done).
-;; A few keyboard macros modified those results.
-;; The following commands were used to create the skeletons below
-
-(defun cdmt-odc-unfinished-command ()
- "Create a stub test for the next unfinished command."
- (interactive)
- (let ((fname "cdmt-odc-unfinished-command")
- (test-declaration-string "cdmt-odc-")
- (defined-command-regexp ".+) ;✓$")
- (command-name)
- (where))
- (cond ((catch 'found-it
- (while (search-forward test-declaration-string (point-max) t)
- (setq where (match-end 0))
- (unless (looking-at-p defined-command-regexp)
- (setq command-name (buffer-substring-no-properties where (1-
(line-end-position))))
- (throw 'found-it t)))
- nil)
- (goto-char (1- (line-end-position)))
- (delete-char 1)
- (insert " ()\n")
- (insert (format " \"Test %s.\n" command-name))
- (insert (format "%s is not yet implemented -- expect an error.\"\n"
command-name))
- (insert (format " (should-error (%s)\n" command-name))
- (insert " :type 'error))\n")
- t)
- (t nil))))
-
-(defun cdmt-odc-all-unfinished-commands ()
- "Write stub tests for all unfinished commands following point."
- (interactive)
- (let ((fname "cdmt-odc-all-unfinished-commands"))
- (while (cdmt-odc-unfinished-command))))
-
-(defun cdmt-odc-finished-command ()
- "Write a stub test for a finished command."
- (interactive)
- (let ((fname "cdmt-odc-finished-command")
- (finished-command-regexp ") ;✓$")
- (command-name)
- (where))
- (cond ((re-search-forward finished-command-regexp (point-max) t)
- (beginning-of-line)
- (re-search-forward "cdmt-odc-" (line-end-position))
- (setq where (match-end 0))
- (end-of-line)
- (backward-char 4)
- (setq command-name (buffer-substring-no-properties where (point)))
-
- (insert " (")
- (end-of-line)
- (insert "\n")
- (insert (format " \"Test the function M-x cpio-%s.\"\n"
command-name))
- (insert " (shell-command \"cd test_data/alphabet ; make
odc\" nil nil)\n")
- (insert (format " (let ((test-name \"cdmt-odc-%s\")\n"
command-name))
- (insert " (cpio-archive-buffer)\n")
- (insert " (cpio-archive-buffer-contents)\n")
- (insert " (cpio-dired-buffer)\n")
- (insert " (cpio-dired-buffer-contents)\n")
- (insert " )\n")
- (insert " (cdmt-odc-reset)\n")
- (insert "\n")
- (insert (format " (%s)\n" command-name))
- (insert "PREPARATION\n")
- (insert "\n")
- (insert " (setq cpio-archive-buffer-contents\n")
- (insert " (cdmt-odc-filter-archive-contents\n")
- (insert " (with-current-buffer
cpio-archive-buffer\n")
- (insert " (buffer-substring-no-properties
(point-min) (point-max))))\n")
- (insert " (should (string-match \"\"
cpio-archive-buffer-contents))\n")
- (insert " (setq cpio-dired-buffer-contents\n")
- (insert " (with-current-buffer cpio-dired-buffer\n")
- (insert " (buffer-substring-no-properties
(point-min) (point-max))))\n")
- (insert " (should (string-equal
cpio-dired-buffer-contents \"\"))\n")
- (insert "\n")
- (insert " (kill-buffer cpio-dired-buffer) ; This should
kill the archive buffer too.\n")
- (insert " ))\n")
- t)
- (t nil))))
-
-(defun cdmt-odc-all-finished-commands ()
- "Build stub tests for all the finished commands."
- (interactive)
- (let ((fname "cdmt-odc-all-finished-commands"))
- (while (cdmt-odc-finished-command))))
-
-(defun cdmt-odc-ediff-results ()
- "Compare the results of a (string-match) on the current line in a buffer of
ERT results.
-The results are always presented as (string-match EXPECTED-RE ACTUAL) on that
line."
- (interactive)
- (let ((fname "cdmt-odc-ediff-results")
- (expected)
- (actual)
- (start))
- (beginning-of-line)
- (re-search-forward "string-\\(match\\|equal\\) " (line-end-position))
-
- (setq start (1+ (point)))
- (forward-sexp)
- (setq expected (buffer-substring-no-properties start (1- (point))))
-
- (forward-char 1)
-
- (setq start (1+ (point)))
- (forward-sexp)
- (setq actual (buffer-substring-no-properties start (1- (point))))
-
- (with-current-buffer (get-buffer-create "expected")
- (erase-buffer)
- (insert expected)
- (goto-char (point-min))
- (while (search-forward "\\n" (point-max) t)
- (replace-match "\n\n"))
- (goto-char (point-min)))
-
- (with-current-buffer (get-buffer-create "actual")
- (erase-buffer)
- (insert actual)
- (goto-char (point-min))
- (while (search-forward "\\n" (point-max) t)
- (replace-match "\n\n"))
- (goto-char (point-min)))
-
- ;; (pop-to-buffer "expected")
- ;; (switch-to-buffer "actual")
-
- (ediff-buffers "actual" "expected")))
-
-
-(defun cdmt-odc-do-cpio-id (where archive)
- "Run cpio(1) on the given ARCHIVE and report the results.
-WHERE Should be a line number."
- (let* ((fname "cdmt-odc-do-cpio-id")
- (buf-name "*cpio output*")
- (buf (get-buffer buf-name))
- (make-directory "qwerqwer"))
- (if (file-exists-p "qwerqwer")
- (should (and (format "remove didn't work (line %d)" where)
- (call-process "rm" nil nil nil "-rf" "qwerqwer"))))
- (make-directory "qwerqwer")
- (should (and (format "cd didn't work (line %d)" where)
- (cd "qwerqwer")))
- (if (buffer-live-p buf)
- (with-current-buffer buf-name (erase-buffer)))
- (should (and (format "cpio on saved archive failed (line %d)." where)
- (= 0 (call-process "cpio" (concat "../" archive) buf nil
"-id"))))
- (should (and "Checking cpio output."
- (with-current-buffer buf-name
- (string-match "[[:digit:]]+ blocks\n"
(buffer-substring-no-properties (point-min) (point-max))))))
- (kill-buffer buf)
- (cd "..")))
-
-(defun cdmt-odc-sweep ()
- "Sweep the cpio-dired-test.el buffer and make changes
-to help make tests pass correctly."
- (interactive)
- (let ((fname "cdmt-odc-sweep"))
- (cdmt-odc-sweep-ids)
- (cdmt-odc-sweep-times)))
-
-(defun cdmt-odc-sweep-ids ()
- "Replace UIDs and GIDs = [[:digit:]]+ by a better RE."
- (let ((fname "cdmt-odc-sweep-ids"))
- (save-excursion
- (save-restriction
- (goto-char (point-min))
- (while (re-search-forward "\\s-+\\(1000\\)\\s-" (point-max) t)
- (replace-match "[[:digit:]]+" 'fixed-case 'literal nil 1))))))
-
-(defun cdmt-odc-sweep-times ()
- "Replace times (date-times) with a better RE."
- (let ((fname "cdmt-odc-sweep-times"))
- (save-excursion
- (save-restriction
- (goto-char (point-min))
- (while (re-search-forward
"\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\}" (point-max) t)
- (replace-match
"\\\\\\\\(?:a\\\\\\\\(?:pr\\\\\\\\|ug\\\\\\\\)\\\\\\\\|dec\\\\\\\\|feb\\\\\\\\|j\\\\\\\\(?:an\\\\\\\\|u[ln]\\\\\\\\)\\\\\\\\|ma[ry]\\\\\\\\|nov\\\\\\\\|oct\\\\\\\\|sep\\\\\\\\)
[[:digit:]]\\\\\\\\{2\\\\\\\\}
[[:digit:]]\\\\\\\\{2\\\\\\\\}:[[:digit:]]\\\\\\\\{2\\\\\\\\}" nil nil nil
0))))))
-
-;; This keyboard macro proved useful in working on chmod.
-;; Here's the setup:
-;; ┌──────────┬───────────┐
-;; │ Filtered │ dired │
-;; │ archive │ style │
-;; │ buffer. │ buffer │
-;; │ point at ├───────────┤
-;; │ point-min│ *scratch* │
-;; │ │ │
-;; └──────────┴───────────┘
-;; FYI cm- = chmod macro
-(defvar cm-archive-window)
-(defvar cm-dired-window)
-(defvar scratch-window)
-(defun cm-setup ()
- "Prepare the window setup for (cm)."
- (interactive)
- (let ((fname "cm-setup"))
- (delete-other-windows)
- (switch-to-buffer "actual")
- (setq cm-archive-window (selected-window))
- (split-window-right)
- (other-window 1)
- (switch-to-buffer "CPIO archive: alphabet_small.odc.cpio")
- (cpio-dired-move-to-first-entry)
- (setq cm-dired-window (selected-window))
- (split-window)
- (other-window 1)
- (switch-to-buffer "*scratch*")
- (setq scratch-window (selected-window))
- (other-window 1)
- (goto-char (point-min))))
-(defun cm ()
- "Run a verification of the next mode in the archive."
- (interactive)
- (let ((fname "cm")
- (mode-hex-string)
- (entry-name))
- (search-forward "magic")
- (recenter-top-bottom 0)
- (search-forward "mode")
- (setq mode-hex-string (buffer-substring-no-properties
- (line-beginning-position)
- (+ 8 (line-beginning-position))))
- (search-forward "filename")
- (beginning-of-line)
- (looking-at "[[:graph:]]+")
- (setq entry-name (match-string 0))
- (other-window 2)
- (insert (format "%s:\t%06o\n" entry-name (string-to-number mode-hex-string
16)))
- (other-window 2)
- (dired-next-line 1)
- (other-window 2)))
-
-(defun cdmt-odc-sweep-catalog ()
- "Clean up a copy of the cpio catalog,
-as presented in an 'actual' buffer (see `cdmt-odc-ediff-results')
-for use in a string-match-p."
- ;; If this were written in good LISP,
- ;; then it would be a (mapcar)
- ;; over a list of (cons RE replacement)
- ;; with a (replace-match).
- ;; However, I think the comments are helpful.
- (interactive)
- (let ((fname "cdmt-odc-sweep-catalog"))
- ;; Opening [.
- (goto-char (point-min))
- (while (re-search-forward "\\[" (point-max) t)
- (replace-match "\\\\["))
- ;; Closing ].
- (goto-char (point-min))
- (while (search-forward "]" (point-max) t)
- (replace-match "\\\\]"))
- ;; '.'
- (goto-char (point-min))
- (while (search-forward "." (point-max) t)
- (replace-match "\\\\."))
- ;; ino
- (goto-char (point-min))
- (while (re-search-forward "\\\\[\\\\[[[:digit:]]+" (point-max) t)
- (replace-match "\\\\[\\\\[[[:digit:]]+"))
- ;; UID/GID
- (goto-char (point-min))
- (while (re-search-forward "\\<1000\\>" (point-max) t)
- (replace-match "[[:digit:]]+"))
- ;; mtime
- (goto-char (point-min))
- (while (re-search-forward "([[:digit:]]+ [[:digit:]]+)" (point-max) t)
- (replace-match "([[:digit:]]+ [[:digit:]]+)"))
- ;; devs
- (goto-char (point-min))
- (while (re-search-forward "\\(\\s-[[:digit:]]+\\) [[:digit:]]+
[[:digit:]]+ [[:digit:]]+ [[:digit:]]+" (point-max) t)
- (replace-match "\\1 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+
[[:digit:]]+"))
- ;; Double new lines.
- (goto-char (point-min))
- (while (search-forward "\n\n" (point-max) t)
- (replace-match "\n"))
- ;; Finally, make the result a string.
- (goto-char (point-min))
- (insert "\"")
- (goto-char (point-max))
- (insert "\"")
- ;; Grab the whole buffer.
- (copy-region-as-kill (point-min) (point-max))))
-
-(defun cdmt-odc-test-save (&optional large)
- "A generic test to run at the end of every test
-to check that the saved archive seems sane."
- (cd run-dir)
- (let* ((fname "cdmt-odc-test-save")
- (alphabet-dir (concat default-directory "test_data/alphabet"))
- (test-buffer-dir (concat alphabet-dir "/asdfasdf"))
- (test-buffer)
- (directory default-directory)
- (dired-buffer (current-buffer))
- (archive (if large "../alphabet.odc.cpio"
- "../alphabet_small.odc.cpio")))
- (unless (eq major-mode 'cpio-dired-mode)
- (error "%s(): You're not in a cpio-dired buffer." fname))
-
- (if (file-exists-p test-buffer-dir)
- (call-process "rm" nil nil nil "-rf" test-buffer-dir))
- (if (file-exists-p test-buffer-dir)
- (error "%s(): Removing %s failed." fname test-buffer-dir))
- (with-current-buffer cpio-archive-buffer
- (cpio-dired-save-archive))
- (make-directory test-buffer-dir 'parents)
-
- (cd test-buffer-dir)
- (with-current-buffer (find-file-noselect test-buffer-dir)
- (call-process "cpio" archive nil nil "-id")
- (mapc (lambda (en)
- ;; No, this isn't bullet proof or even correct.
- ;; It's just a sanity check; it's certainly not complete.
- (should (file-exists-p (car en))))
- (with-current-buffer cpio-archive-buffer
- (cpio-catalog))))
- (cd directory)))
-
-(defun cdmt-odc-sweep-hex ()
- "Convert the newc hex fields to odc octal fields."
- (interactive)
- (let ((fname "cdmt-odc-sweep-hex")
- (value)
- (replacement))
- (save-excursion
- (goto-char (point-min))
- (while (re-search-forward "[[:xdigit:]]\\{8\\}" (point-max) t)
- (setq value (string-to-number (match-string 0) 16))
- (setq replacement (format "%06o" value))
- (replace-match replacement)))))
;;
@@ -7183,210 +6809,2004 @@ to check that the saved archive seems sane."
(cpio-archive-buffer-contents)
(cpio-dired-buffer)
(cpio-dired-buffer-contents))
- (cdmt-odc-reset 'make)
+
+ (cdmt-reset 'make)
(cpio-dired-kill)
- (should (and "Dired style buffer should not be live."
- (not (buffer-live-p cpio-dired-buffer))))
- (should (and "Archive buffer should not be live."
- (not (buffer-live-p cpio-archive-buffer))))))
+ (should (progn (message "%s(): Dired style buffer should not be live."
test-name)
+ (not (buffer-live-p cpio-dired-buffer))))
+ (should (progn (message "%s(): Archive buffer should not be live."
test-name)
+ (not (buffer-live-p cpio-archive-buffer))))))
-(ert-deftest cdmt-odc-cpio-dired-do-isearch ()
- "Test cpio-dired-do-isearch.
+ (ert-deftest cdmt-odc-cpio-dired-do-isearch ()
+ "Test cpio-dired-do-isearch.
cpio-dired-do-isearch is not yet implemented -- expect an error."
- (should-error (cpio-dired-do-isearch)
- :type 'error))
+ (should-error (cpio-dired-do-isearch)
+ :type 'error))
-(ert-deftest cdmt-odc-cpio-dired-do-isearch-regexp ()
- "Test cpio-dired-do-isearch-regexp.
+ (ert-deftest cdmt-odc-cpio-dired-do-isearch-regexp ()
+ "Test cpio-dired-do-isearch-regexp.
cpio-dired-do-isearch-regexp is not yet implemented -- expect an error."
- (should-error (cpio-dired-do-isearch-regexp)
- :type 'error))
+ (should-error (cpio-dired-do-isearch-regexp)
+ :type 'error))
-(ert-deftest cdmt-odc-cpio-dired-isearch-entry-names ()
- "Test cpio-dired-isearch-entry-names.
+ (ert-deftest cdmt-odc-cpio-dired-isearch-entry-names ()
+ "Test cpio-dired-isearch-entry-names.
cpio-dired-isearch-entry-names is not yet implemented -- expect an error."
- (should-error (cpio-dired-isearch-entry-names)
- :type 'error))
+ (should-error (cpio-dired-isearch-entry-names)
+ :type 'error))
-(ert-deftest cdmt-odc-cpio-dired-isearch-entry-names-regexp ()
- "Test cpio-dired-isearch-entry-names-regexp.
+ (ert-deftest cdmt-odc-cpio-dired-isearch-entry-names-regexp ()
+ "Test cpio-dired-isearch-entry-names-regexp.
cpio-dired-isearch-entry-names-regexp is not yet implemented -- expect an
error."
- (should-error (cpio-dired-isearch-entry-names-regexp)
- :type 'error))
-
-
-(ert-deftest cdmt-odc-cpio-dired-add-entry ()
- "Test cpio-dired-add-entry.
+ (should-error (cpio-dired-isearch-entry-names-regexp)
+ :type 'error))
+
+;;;;;;;; This gets an end-of-buffer error under ERT.
+;;;;;;;; (ert-deftest cdmt-odc-cpio-dired-save-archive-0 () ;✓
+;;;;;;;; "Test the function of M-x cpio-dired-save-archive."
+;;;;;;;; (let ((test-name "cdmt-odc-cpio-dired-save-archive")
+;;;;;;;; (cpio-archive-buffer)
+;;;;;;;; (cpio-archive-buffer-contents-before)
+;;;;;;;; (cpio-archive-buffer-contents)
+;;;;;;;; (cpio-dired-buffer)
+;;;;;;;; (cpio-dired-buffer-contents-before)
+;;;;;;;; (cpio-dired-buffer-contents)
+;;;;;;;; )
+;;;;;;;; (cdmt-reset 'make)
+
+;;;;;;;; (progn (goto-char (point-min))
+;;;;;;;; (re-search-forward " aa$" (point-max))
+;;;;;;;; (cpio-dired-do-delete 1)
+;;;;;;;; (setq cpio-archive-buffer-contents-before
+;;;;;;;; (cdmt-odc-filter-archive-contents (with-current-buffer
cpio-archive-buffer
+;;;;;;;;
(buffer-substring-no-properties (point-min) (point-max)))))
+;;;;;;;; (setq cpio-dired-buffer-contents-before (with-current-buffer
cpio-dired-buffer
+;;;;;;;;
(buffer-substring-no-properties (point-min) (point-max)))))
+
+;;;;;;;; (should (progn (message "%s(): Archive buffer should be modified.
" test-name)
+;;;;;;;; (buffer-modified-p cpio-archive-buffer)))
+;;;;;;;; (should (progn (message "Archive buffer should be missing exactly
the entry for aa."
+;;;;;;;; (string-equal "070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000004 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000002 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; a (( filename ))
+
+;;;;;;;; a
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000006 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000004 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; aaa (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; aaa
+
+;;;;;;;; \\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000007 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000005 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; aaaa (( filename ))
+;;;;;;;; \\0
+;;;;;;;; aaaa
+
+;;;;;;;; \\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 000010 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000006 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; aaaaa (( filename ))
+
+;;;;;;;; aaaaa
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 040755 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000002 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 000000 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000010 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; aaaaa.d (( filename ))
+;;;;;;;; \\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 000004 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000002 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; b (( filename ))
+
+;;;;;;;; b
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 000005 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000003 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; bb (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; bb
+
+;;;;;;;; \\0\\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 000006 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000004 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; bbb (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; bbb
+
+;;;;;;;; \\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000007 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000005 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; bbbb (( filename ))
+;;;;;;;; \\0
+;;;;;;;; bbbb
+
+;;;;;;;; \\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000010 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000006 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; bbbbb (( filename ))
+
+;;;;;;;; bbbbb
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 040755 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000002 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000000 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000010 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; bbbbb.d (( filename ))
+;;;;;;;; \\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000004 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000002 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; c (( filename ))
+
+;;;;;;;; c
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000005 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000003 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; cc (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; cc
+
+;;;;;;;; \\0\\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000006 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000004 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; ccc (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; ccc
+
+;;;;;;;; \\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000007 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000005 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; cccc (( filename ))
+;;;;;;;; \\0
+;;;;;;;; cccc
+
+;;;;;;;; \\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000010 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000006 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; ccccc (( filename ))
+
+;;;;;;;; ccccc
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 040755 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000002 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000000 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000010 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; ccccc.d (( filename ))
+;;;;;;;; \\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 000000 (( mode ))
+;;;;;;;; 000000 (( uid ))
+;;;;;;;; 000000 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000000 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000013 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; TRAILER!!! (( filename ))
+;;;;;;;;
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
+;;;;;;;; (should (progn (message "%s(): Checking dired-style buffer before
saving." test-name)
+;;;;;;;; (string-match "CPIO archive: alphabet_small.odc.cpio:
+
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaa
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaa
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} b
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} c
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
+;;;;;;;; " cpio-dired-buffer-contents-before)))
+
+;;;;;;;; (progn (cpio-dired-save-archive)
+;;;;;;;; (setq cpio-archive-buffer-contents
+;;;;;;;; (cdmt-odc-filter-archive-contents
+;;;;;;;; (with-current-buffer cpio-archive-buffer
+;;;;;;;; (buffer-substring-no-properties (point-min)
(point-max)))))
+;;;;;;;; (setq cpio-dired-buffer-contents
+;;;;;;;; (with-current-buffer cpio-dired-buffer
+;;;;;;;; (buffer-substring-no-properties (point-min)
(point-max)))))
+
+;;;;;;;; ;; (cdmt-odc-do-cpio-id (count-lines (point-min)(point))
(file-name-nondirectory *cdmt-odc-small-archive*))
+
+;;;;;;;; (should (progn (message "%s(): Archive buffer should no longer be
modified." test-name)
+;;;;;;;; (not (buffer-modified-p cpio-archive-buffer))))
+;;;;;;;; (should (progn (message "%s(): Checking the archive buffer after
saving." test-name)
+;;;;;;;; (string-equal "070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000004 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000002 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; a (( filename ))
+
+;;;;;;;; a
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000006 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000004 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; aaa (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; aaa
+
+;;;;;;;; \\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000007 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000005 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; aaaa (( filename ))
+;;;;;;;; \\0
+;;;;;;;; aaaa
+
+;;;;;;;; \\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000010 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000006 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; aaaaa (( filename ))
+
+;;;;;;;; aaaaa
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 040755 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000002 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000000 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000010 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; aaaaa.d (( filename ))
+;;;;;;;; \\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000004 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000002 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; b (( filename ))
+
+;;;;;;;; b
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000005 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000003 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; bb (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; bb
+
+;;;;;;;; \\0\\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000006 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000004 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; bbb (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; bbb
+
+;;;;;;;; \\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000007 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000005 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; bbbb (( filename ))
+;;;;;;;; \\0
+;;;;;;;; bbbb
+
+;;;;;;;; \\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000010 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000006 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; bbbbb (( filename ))
+
+;;;;;;;; bbbbb
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 040755 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000002 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000000 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000010 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; bbbbb.d (( filename ))
+;;;;;;;; \\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000004 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000002 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; c (( filename ))
+
+;;;;;;;; c
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000005 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000003 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; cc (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; cc
+
+;;;;;;;; \\0\\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000006 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000004 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; ccc (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; ccc
+
+;;;;;;;; \\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000007 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000005 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; cccc (( filename ))
+;;;;;;;; \\0
+;;;;;;;; cccc
+
+;;;;;;;; \\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000010 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000006 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; ccccc (( filename ))
+
+;;;;;;;; ccccc
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 040755 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000002 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000000 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000010 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; ccccc.d (( filename ))
+;;;;;;;; \\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 000000 (( mode ))
+;;;;;;;; 000000 (( uid ))
+;;;;;;;; 000000 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000000 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000013 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; TRAILER!!! (( filename ))
+;;;;;;;;
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
+
+;;;;;;;; (should (progn (message "%s(): Checking the dired-style buffer
after saving." test-name)
+;;;;;;;; (string-match "CPIO archive: alphabet_small.odc.cpio:
+
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaa
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaa
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} b
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} c
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
+;;;;;;;; " cpio-dired-buffer-contents)))
+
+;;;;;;;; ;; The archive strings should be identical up to the TRAILER!!!
padding.
+;;;;;;;; ;; NO! Padding after any added, deleted or changed entry will
also change.
+;;;;;;;; ;; (string-match "TRAILER!!!" cpio-archive-buffer-contents-before)
+;;;;;;;; ;; (setq cpio-archive-buffer-contents-before (substring
cpio-archive-buffer-contents-before 0 (match-end 0)))
+;;;;;;;; ;; (string-match "TRAILER!!!" cpio-archive-buffer-contents)
+;;;;;;;; ;; (setq cpio-archive-buffer-contents (substring
cpio-archive-buffer-contents 0 (match-end 0)))
+;;;;;;;; ;; (should (string-equal cpio-archive-buffer-contents-before
cpio-archive-buffer-contents))
+
+;;;;;;;; (should (progn (message "%s(): The dired style buffer should not
have changed." test-name)
+;;;;;;;; (string-equal cpio-dired-buffer-contents-before
cpio-dired-buffer-contents)))
+
+;;;;;;;; (cdmt-reset)
+
+;;;;;;;; (progn (goto-char (point-min))
+;;;;;;;; (re-search-forward " aaaa$" (point-max))
+;;;;;;;; (setq unread-command-events (listify-key-sequence "dddd\n"))
+;;;;;;;; (cpio-dired-do-rename 1)
+;;;;;;;; (cpio-dired-save-archive)
+;;;;;;;; (setq cpio-archive-buffer-contents
+;;;;;;;; (cdmt-odc-filter-archive-contents
+;;;;;;;; (with-current-buffer cpio-archive-buffer
+;;;;;;;; (buffer-substring-no-properties (point-min)
(point-max)))))
+;;;;;;;; (setq cpio-dired-buffer-contents
+;;;;;;;; (with-current-buffer cpio-dired-buffer
+;;;;;;;; (buffer-substring-no-properties (point-min)
(point-max)))))
+
+;;;;;;;; ;; (cdmt-odc-do-cpio-id (count-lines (point-min) (point-max))
(file-name-nondirectory *cdmt-odc-small-archive*))
+
+;;;;;;;; (should (progn (message "%s(): Expecting the standard archive
with aaaa moved to ddddd." test-name)
+;;;;;;;; (string-equal "070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000004 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000002 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; a (( filename ))
+
+;;;;;;;; a
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000006 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000004 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; aaa (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; aaa
+
+;;;;;;;; \\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000010 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000006 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; aaaaa (( filename ))
+
+;;;;;;;; aaaaa
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 040755 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000002 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000000 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000010 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; aaaaa.d (( filename ))
+;;;;;;;; \\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000004 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000002 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; b (( filename ))
+
+;;;;;;;; b
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000005 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000003 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; bb (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; bb
+
+;;;;;;;; \\0\\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000006 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000004 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; bbb (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; bbb
+
+;;;;;;;; \\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000007 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000005 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; bbbb (( filename ))
+;;;;;;;; \\0
+;;;;;;;; bbbb
+
+;;;;;;;; \\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000010 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000006 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; bbbbb (( filename ))
+
+;;;;;;;; bbbbb
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 040755 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000002 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000000 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000010 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; bbbbb.d (( filename ))
+;;;;;;;; \\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000004 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000002 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; c (( filename ))
+
+;;;;;;;; c
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000005 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+
+;;;;;;;; 000003 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; cc (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; cc
+
+;;;;;;;; \\0\\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000006 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000004 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; ccc (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; ccc
+
+;;;;;;;; \\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000007 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000005 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; cccc (( filename ))
+;;;;;;;; \\0
+;;;;;;;; cccc
+
+;;;;;;;; \\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000010 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000006 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; ccccc (( filename ))
+
+;;;;;;;; ccccc
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 040755 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000002 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000000 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000010 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; ccccc.d (( filename ))
+;;;;;;;; \\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000007 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000005 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; dddd (( filename ))
+;;;;;;;; \\0
+;;;;;;;; aaaa
+
+;;;;;;;; \\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 000000 (( mode ))
+;;;;;;;; 000000 (( uid ))
+;;;;;;;; 000000 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000000 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000013 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; TRAILER!!! (( filename ))
+;;;;;;;;
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
+
+;;;;;;;; (should (progn (message "%s(): Expecting a dired style buffer
without aaaa." test-name)
+;;;;;;;; (string-match "CPIO archive: alphabet_small.odc.cpio:
+
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaa
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} b
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} c
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} dddd
+;;;;;;;; " cpio-dired-buffer-contents)))
+
+;;;;;;;; (cdmt-reset)
+
+;;;;;;;; (progn (goto-char (point-min))
+;;;;;;;; (re-search-forward " b$" (point-max))
+;;;;;;;; (cpio-dired-mark 4)
+;;;;;;;; (setq unread-command-events (listify-key-sequence "d\n"))
+;;;;;;;; (cpio-dired-do-rename 1)
+;;;;;;;; (cpio-dired-save-archive)
+;;;;;;;; (setq cpio-archive-buffer-contents
+;;;;;;;; (cdmt-odc-filter-archive-contents
+;;;;;;;; (with-current-buffer cpio-archive-buffer
+;;;;;;;; (buffer-substring-no-properties (point-min)
(point-max)))))
+;;;;;;;; (setq cpio-dired-buffer-contents
+;;;;;;;; (with-current-buffer cpio-dired-buffer
+;;;;;;;; (buffer-substring-no-properties (point-min)
(point-max)))))
+
+;;;;;;;; ;; (cdmt-odc-do-cpio-id (count-lines (point-min) (point-max))
(file-name-nondirectory *cdmt-odc-small-archive*))
+
+;;;;;;;; (should (progn (message "%s(): Expecting a small archive with
d/b, d/bb, d/bbb, d/bbbb." test-name)
+;;;;;;;; (string-equal "070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000004 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000002 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; a (( filename ))
+
+;;;;;;;; a
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000006 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000004 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; aaa (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; aaa
+
+;;;;;;;; \\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000010 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000006 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; aaaaa (( filename ))
+
+;;;;;;;; aaaaa
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 040755 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000002 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000000 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000010 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; aaaaa.d (( filename ))
+;;;;;;;; \\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000010 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000006 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; bbbbb (( filename ))
+
+;;;;;;;; bbbbb
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 040755 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000002 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000000 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000010 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; bbbbb.d (( filename ))
+;;;;;;;; \\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000004 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000002 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; c (( filename ))
+
+;;;;;;;; c
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000005 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000003 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; cc (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; cc
+
+;;;;;;;; \\0\\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000006 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000004 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; ccc (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; ccc
+
+;;;;;;;; \\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000007 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000005 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; cccc (( filename ))
+;;;;;;;; \\0
+;;;;;;;; cccc
+
+;;;;;;;; \\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000010 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000006 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; ccccc (( filename ))
+
+;;;;;;;; ccccc
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 040755 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000002 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000000 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000010 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; ccccc.d (( filename ))
+;;;;;;;; \\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000007 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000005 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; dddd (( filename ))
+;;;;;;;; \\0
+;;;;;;;; aaaa
+
+;;;;;;;; \\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000007 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000007 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; d/bbbb (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; bbbb
+
+;;;;;;;; \\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000006 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000006 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; d/bbb (( filename ))
+
+;;;;;;;; bbb
+
+;;;;;;;; \\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000005 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000005 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; d/bb (( filename ))
+;;;;;;;; \\0
+;;;;;;;; bb
+
+;;;;;;;; \\0\\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000004 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000004 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; d/b (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; b
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 000000 (( mode ))
+;;;;;;;; 000000 (( uid ))
+;;;;;;;; 000000 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000000 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000013 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; TRAILER!!! (( filename ))
+;;;;;;;;
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
+
+;;;;;;;; ;; (cdmt-odc-do-cpio-id (count-lines (point-min) (point-max))
(file-name-nondirectory *cdmt-odc-small-archive*))
+
+;;;;;;;; (should (progn (message "%s(): Looking for a small dired-style
buffer with d/b, d/bb, d/bbb, d/bbbb" test-name)
+;;;;;;;; (string-match "CPIO archive: alphabet_small.odc.cpio:
+
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaa
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} c
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} dddd
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} d/bbbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} d/bbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} d/bb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} d/b
+;;;;;;;; " cpio-dired-buffer-contents)))
+
+;;;;;;;; (cdmt-reset)
+
+;;;;;;;; (progn (cpio-dired-mark-entries-regexp "\\`...\\'")
+;;;;;;;; (setq unread-command-events (listify-key-sequence
"newDirectory\n"))
+;;;;;;;; ;; HEREHERE This rename does something wrong.
+;;;;;;;; (cpio-dired-do-rename 1)
+;;;;;;;; (cpio-dired-save-archive)
+;;;;;;;; (setq cpio-archive-buffer-contents
+;;;;;;;; (cdmt-odc-filter-archive-contents
+;;;;;;;; (with-current-buffer cpio-archive-buffer
+;;;;;;;; (buffer-substring-no-properties (point-min)
(point-max)))))
+;;;;;;;; (setq cpio-dired-buffer-contents
+;;;;;;;; (with-current-buffer cpio-dired-buffer
+;;;;;;;; (buffer-substring-no-properties (point-min)
(point-max)))))
+
+;;;;;;;; ;; (cdmt-odc-do-cpio-id (count-lines (point-min) (point-max))
(file-name-nondirectory *cdmt-odc-small-archive*))
+
+;;;;;;;; (should (string-equal "070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000004 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000002 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; a (( filename ))
+
+;;;;;;;; a
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000010 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000006 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; aaaaa (( filename ))
+
+;;;;;;;; aaaaa
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 040755 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000002 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000000 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000010 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; aaaaa.d (( filename ))
+;;;;;;;; \\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000010 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000006 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; bbbbb (( filename ))
+
+;;;;;;;; bbbbb
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 040755 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000002 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000000 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000010 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; bbbbb.d (( filename ))
+;;;;;;;; \\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000004 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000002 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; c (( filename ))
+
+;;;;;;;; c
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000005 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000003 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; cc (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; cc
+
+;;;;;;;; \\0\\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000007 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000005 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; cccc (( filename ))
+;;;;;;;; \\0
+;;;;;;;; cccc
+
+;;;;;;;; \\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000010 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000006 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; ccccc (( filename ))
+
+;;;;;;;; ccccc
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 040755 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000002 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000000 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000010 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; ccccc.d (( filename ))
+;;;;;;;; \\0\\0070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000007 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000005 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; dddd (( filename ))
+;;;;;;;; \\0
+;;;;;;;; aaaa
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000007 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000022 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; newDirectory/bbbb (( filename ))
+
+;;;;;;;; bbbb
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000006 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000021 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; newDirectory/bbb (( filename ))
+;;;;;;;; \\0
+;;;;;;;; bbb
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000005 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000020 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; newDirectory/bb (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; bb
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000004 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000017 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; newDirectory/b (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; b
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000006 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000021 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; newDirectory/ccc (( filename ))
+;;;;;;;; \\0
+;;;;;;;; ccc
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 100644 (( mode ))
+;;;;;;;; 001750 (( uid ))
+;;;;;;;; 001750 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000006 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000021 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; newDirectory/aaa (( filename ))
+;;;;;;;; \\0
+;;;;;;;; aaa
+
+;;;;;;;; 070707 (( magic ))
+;;;;;;;; DEADBE (( ino ))
+;;;;;;;; 000000 (( mode ))
+;;;;;;;; 000000 (( uid ))
+;;;;;;;; 000000 (( gid ))
+;;;;;;;; 000001 (( nlink ))
+;;;;;;;; DEADBE (( mtime ))
+;;;;;;;; 00000000000 (( filesize ))
+;;;;;;;; DEADBE (( dev maj ))
+;;;;;;;; DEADBE (( dev min ))
+;;;;;;;; DEADBE (( rdev maj ))
+;;;;;;;; DEADBE (( rdev min ))
+;;;;;;;; 000013 (( namesize ))
+;;;;;;;; 000000 (( chksum ))
+;;;;;;;; TRAILER!!! (( filename ))
+;;;;;;;;
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
+
+;;;;;;;; (should (= 0 1))
+
+;;;;;;;; ;; (cdmt-odc-do-cpio-id (count-lines (point-min) (point-max))
(file-name-nondirectory *cdmt-odc-small-archive*))
+
+;;;;;;;; (should (string-match "CPIO archive: alphabet_small.odc.cpio:
+
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} c
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} dddd
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory/bbbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory/bbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory/bb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory/b
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory/ccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory/aaa
+;;;;;;;; " cpio-dired-buffer-contents))
+
+;;;;;;;; (should (= 0 1))
+
+;;;;;;;; ;; (cdmt-odc-do-cpio-id (count-lines (point-min) (point-max))
(file-name-nondirectory *cdmt-odc-small-archive*))
+
+;;;;;;;; ))
+
+ (ert-deftest cdmt-odc-cpio-dired-add-entry ()
+ "Test cpio-dired-add-entry.
cpio-dired-add-entry is not yet implemented -- expect an error."
- (should-error (cpio-dired-add-entry)
- :type 'error))
+ (should-error (cpio-dired-add-entry)
+ :type 'error))
-(ert-deftest cdmt-odc-cpio-dired-change-marks ()
- "Test cpio-dired-change-marks.
+ (ert-deftest cdmt-odc-cpio-dired-change-marks ()
+ "Test cpio-dired-change-marks.
cpio-dired-change-marks is not yet implemented -- expect an error."
- (should-error (cpio-dired-change-marks)
- :type 'error))
+ (should-error (cpio-dired-change-marks)
+ :type 'error))
-(ert-deftest cdmt-odc-cpio-dired-clean-directory ()
- "Test cpio-dired-clean-directory.
+ (ert-deftest cdmt-odc-cpio-dired-clean-directory ()
+ "Test cpio-dired-clean-directory.
cpio-dired-clean-directory is not yet implemented -- expect an error."
- (should-error (cpio-dired-clean-directory)
- :type 'error))
+ (should-error (cpio-dired-clean-directory)
+ :type 'error))
-(ert-deftest cdmt-odc-cpio-dired-copy-entry-name-as-kill ()
- (should-error (cpio-dired-copy-entry-name-as-kill 1)
- :type 'error))
-
-(ert-deftest NOT-YET-cdmt-odc-cpio-dired-copy-entry-name-as-kill ()
- "Test cpio-dired-copy-entry-name-as-kill.
+ (ert-deftest cdmt-odc-cpio-dired-copy-entry-name-as-kill ()
+ (should-error (cpio-dired-copy-entry-name-as-kill 1)
+ :type 'error))
+
+ (ert-deftest NOT-YET-cdmt-odc-cpio-dired-copy-entry-name-as-kill ()
+ "Test cpio-dired-copy-entry-name-as-kill.
cpio-dired-copy-entry-name-as-kill is not yet implemented -- expect an error."
- (let ((test-name "cdmt-odc-cpio-dired-copy-entry-name-as-kill")
- (cpio-archive-buffer)
- (cpio-archive-buffer-contents)
- (cpio-dired-buffer)
- (cpio-dired-buffer-contents)
- (cpio-contents-buffer-name)
- (cpio-contents-buffer)
- (cpio-contents-buffer-string)
- (cpio-contents-window)
- (entry-name)
- (current-kill-before)
- (kill-ring-before)
- (entry-names)
- (interprogram-paste-function nil))
- (cdmt-odc-reset 'make)
-
- (progn (setq current-kill-before (current-kill 0 'do-not-move))
- (cpio-dired-next-line 2)
- (push (cpio-dired-get-entry-name) entry-names)
- (cpio-dired-copy-entry-name-as-kill 1))
-
- (while entry-names
- (should (string-equal (current-kill 0) (pop entry-names)))
- (current-kill 1))
- ;; Use (equal) here because the kill ring could have been empty.
- (should (equal (current-kill 0) current-kill-before))
-
- (progn (cpio-dired-next-line 2)
- (cpio-dired-copy-entry-name-as-kill 4)
- (save-excursion
- (let ((i 0))
- (while (< i 4)
- (push (cpio-dired-get-entry-name) entry-names)
- (cpio-dired-next-line 1)
- (setq i (1+ i))))))
-
- (while entry-names
- (should (string-equal (current-kill 0) (pop entry-names)))
- (current-kill 1))
- ;; Use (equal) here because the kill ring could have been empty.
- (should (equal (current-kill 0) current-kill-before))))
-
-(ert-deftest cdmt-odc-cpio-dired-diff ()
- "Test cpio-dired-diff) ;.
+ (let ((test-name "cdmt-odc-cpio-dired-copy-entry-name-as-kill")
+ (cpio-archive-buffer)
+ (cpio-archive-buffer-contents)
+ (cpio-dired-buffer)
+ (cpio-dired-buffer-contents)
+ (cpio-contents-buffer-name)
+ (cpio-contents-buffer)
+ (cpio-contents-buffer-string)
+ (cpio-contents-window)
+ (entry-name)
+ (current-kill-before)
+ (kill-ring-before)
+ (entry-names)
+ (interprogram-paste-function nil))
+ (cdmt-reset 'make)
+
+ (progn (setq current-kill-before (current-kill 0 'do-not-move))
+ (cpio-dired-next-line 2)
+ (push (cpio-dired-get-entry-name) entry-names)
+ (cpio-dired-copy-entry-name-as-kill 1))
+
+ (while entry-names
+ (should (string-equal (current-kill 0) (pop entry-names)))
+ (current-kill 1))
+ ;; Use (equal) here because the kill ring could have been empty.
+ (should (equal (current-kill 0) current-kill-before))
+
+ (progn (cpio-dired-next-line 2)
+ (cpio-dired-copy-entry-name-as-kill 4)
+ (save-excursion
+ (let ((i 0))
+ (while (< i 4)
+ (push (cpio-dired-get-entry-name) entry-names)
+ (cpio-dired-next-line 1)
+ (setq i (1+ i))))))
+
+ (while entry-names
+ (should (string-equal (current-kill 0) (pop entry-names)))
+ (current-kill 1))
+ ;; Use (equal) here because the kill ring could have been empty.
+ (should (equal (current-kill 0) current-kill-before))))
+
+ (ert-deftest cdmt-odc-cpio-dired-diff ()
+ "Test cpio-dired-diff) ;.
cpio-dired-diff) ; is not yet implemented -- expect an error."
- (should-error (cpio-dired-diff) ;)
- :type 'error))
-
-(ert-deftest cdmt-odc-cpio-dired-display-entry () ;✓
- "Test the function of M-x cpio-dired-display-entry."
- (let ((test-name "cdmt-odc-cpio-dired-display-entry")
- (cpio-archive-buffer)
- (cpio-archive-buffer-contents)
- (cpio-dired-buffer)
- (cpio-dired-buffer-contents)
- (cpio-contents-buffer-name)
- (cpio-contents-buffer)
- (cpio-contents-buffer-string)
- (cpio-catalog-contents-before)
- (cpio-catalog-contents-after)
- (cpio-contents-window)
- (entry-name))
- (cdmt-odc-reset 'make)
-
- (set-buffer (setq cpio-dired-buffer (get-buffer (cpio-dired-buffer-name
*cdmt-odc-small-archive*))))
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
- (setq entry-name "aaa")
- (goto-char (point-min))
- (cpio-dired-goto-entry entry-name)
-
- (cpio-dired-display-entry)
-
- ;; (cpio-dired-display-entry) changes the current buffer.
- (with-current-buffer cpio-dired-buffer
- (setq cpio-contents-buffer (get-buffer (cpio-contents-buffer-name
entry-name)))
- (setq cpio-contents-buffer-string (with-current-buffer
cpio-contents-buffer
-
(buffer-substring-no-properties (point-min)
-
(point-max))))
- (setq cpio-contents-window (get-buffer-window
cpio-contents-buffer))
- (setq cpio-archive-buffer-contents
- (cdmt-odc-filter-archive-contents
- (with-current-buffer cpio-archive-buffer
- (buffer-substring-no-properties (point-min)
(point-max)))))
- (setq cpio-dired-buffer-contents
- (with-current-buffer cpio-dired-buffer
- (buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp
(cpio-catalog))))))
-
- (with-current-buffer cpio-dired-buffer
-;; (should (and "Viewing an entry should not change the archive buffer."
- (should (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents))
- (should (and "Viewing an entry should not change the dired-style buffer."
- (string-match *cdmt-odc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "The contents buffer should not be null."
- (not (null cpio-contents-buffer))))
- (should (and "The contents buffer should be live."
- (buffer-live-p cpio-contents-buffer)))
- (should (and "Check the entry's contents buffer."
- (string-equal cpio-contents-buffer-string "\naaa\n\n")))
- (should (and "The entry's contents' window should be live."
- (window-live-p cpio-contents-window)))
- (should (and "Expecting no change to the catalog."
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after))))
-
- (cdmt-odc-reset)
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
- (setq entry-name "ccc")
- (goto-char (point-min))
- (re-search-forward " ccc$" (point-max))
- (cpio-dired-display-entry)
-
- (with-current-buffer cpio-dired-buffer
- (setq cpio-contents-buffer (get-buffer (cpio-contents-buffer-name
entry-name)))
- (setq cpio-contents-buffer-string (with-current-buffer
cpio-contents-buffer
-
(buffer-substring-no-properties (point-min)
-
(point-max))))
- (setq cpio-contents-window (get-buffer-window
cpio-contents-buffer))
- (setq cpio-archive-buffer-contents
- (cdmt-odc-filter-archive-contents
- (with-current-buffer cpio-archive-buffer
- (buffer-substring-no-properties (point-min)
(point-max)))))
- (setq cpio-dired-buffer-contents
- (with-current-buffer cpio-dired-buffer
- (buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp
(cpio-catalog))))))
-
- (with-current-buffer cpio-dired-buffer
- (should (and "Checking the archive buffer."
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Checking the dired-style buffer."
- (string-match *cdmt-odc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
- (should (not (null cpio-contents-buffer)))
- (should (buffer-live-p cpio-contents-buffer))
- (should (string-equal cpio-contents-buffer-string "\nccc\n\n"))
- (should (window-live-p cpio-contents-window))
- (should (and "Expecting no change to the catalog."
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after))))))
-
-(ert-deftest cdmt-odc-cpio-dired-do-async-shell-command ()
- "Test cpio-dired-do-async-shell-command) ;.
+ (should-error (cpio-dired-diff) ;)
+ :type 'error))
+
+ (ert-deftest cdmt-odc-cpio-dired-display-entry () ;✓
+ "Test the function of M-x cpio-dired-display-entry."
+ (let ((test-name "cdmt-odc-cpio-dired-display-entry")
+ (cpio-archive-buffer)
+ (cpio-archive-buffer-contents)
+ (cpio-dired-buffer)
+ (cpio-dired-buffer-contents)
+ (cpio-contents-buffer-name)
+ (cpio-contents-buffer)
+ (cpio-contents-buffer-string)
+ (cpio-catalog-contents-before)
+ (cpio-catalog-contents-after)
+ (cpio-contents-window)
+ (entry-name))
+ (cdmt-reset 'make)
+
+ (set-buffer (setq cpio-dired-buffer (get-buffer (cpio-dired-buffer-name
*cdmt-odc-small-archive*))))
+
+ (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (setq entry-name "aaa")
+ (goto-char (point-min))
+ (cpio-dired-goto-entry entry-name)
+
+ (cpio-dired-display-entry)
+
+ ;; (cpio-dired-display-entry) changes the current buffer.
+ (with-current-buffer cpio-dired-buffer
+ (setq cpio-contents-buffer (get-buffer
(cpio-contents-buffer-name entry-name)))
+ (setq cpio-contents-buffer-string (with-current-buffer
cpio-contents-buffer
+
(buffer-substring-no-properties (point-min)
+
(point-max))))
+ (setq cpio-contents-window (get-buffer-window
cpio-contents-buffer))
+ (setq cpio-archive-buffer-contents
+ (cdmt-odc-filter-archive-contents
+ (with-current-buffer cpio-archive-buffer
+ (buffer-substring-no-properties (point-min)
(point-max)))))
+ (setq cpio-dired-buffer-contents
+ (with-current-buffer cpio-dired-buffer
+ (buffer-substring-no-properties (point-min)
(point-max))))
+ (setq cpio-catalog-contents-after (format "%s" (pp
(cpio-catalog))))))
+
+ (with-current-buffer cpio-dired-buffer
+ (should (progn (message "%s(): Viewing an entry should not change the
archive buffer." test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Viewing an entry should not change the
dired-style buffer." test-name)
+ (string-match *cdmt-odc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "%s(): The contents buffer should not be null."
test-name)
+ (not (null cpio-contents-buffer))))
+ (should (progn (message "%s(): The contents buffer should be live."
test-name)
+ (buffer-live-p cpio-contents-buffer)))
+ (should (progn (message "%s(): Check the entry's contents buffer."
test-name)
+ (string-equal cpio-contents-buffer-string "\naaa\n\n")))
+ (should (progn (message "%s(): The entry's contents' window should be
live." test-name)
+ (window-live-p cpio-contents-window)))
+ (should (progn (message "%s(): Expecting no change to the catalog."
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after))))
+
+ (cdmt-reset)
+
+ (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (setq entry-name "ccc")
+ (goto-char (point-min))
+ (re-search-forward " ccc$" (point-max))
+ (cpio-dired-display-entry)
+
+ (with-current-buffer cpio-dired-buffer
+ (setq cpio-contents-buffer (get-buffer
(cpio-contents-buffer-name entry-name)))
+ (setq cpio-contents-buffer-string (with-current-buffer
cpio-contents-buffer
+
(buffer-substring-no-properties (point-min)
+
(point-max))))
+ (setq cpio-contents-window (get-buffer-window
cpio-contents-buffer))
+ (setq cpio-archive-buffer-contents
+ (cdmt-odc-filter-archive-contents
+ (with-current-buffer cpio-archive-buffer
+ (buffer-substring-no-properties (point-min)
(point-max)))))
+ (setq cpio-dired-buffer-contents
+ (with-current-buffer cpio-dired-buffer
+ (buffer-substring-no-properties (point-min)
(point-max))))
+ (setq cpio-catalog-contents-after (format "%s" (pp
(cpio-catalog))))))
+
+ (with-current-buffer cpio-dired-buffer
+ (should (progn (message "%s(): Checking the archive buffer." test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Checking the dired-style buffer."
test-name)
+ (string-match *cdmt-odc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (not (null cpio-contents-buffer)))
+ (should (buffer-live-p cpio-contents-buffer))
+ (should (string-equal cpio-contents-buffer-string "\nccc\n\n"))
+ (should (window-live-p cpio-contents-window))
+ (should (progn (message "%s(): Expecting no change to the catalog."
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after))))))
+
+ (ert-deftest cdmt-odc-cpio-dired-do-async-shell-command ()
+ "Test cpio-dired-do-async-shell-command) ;.
cpio-dired-do-async-shell-command) ; is not yet implemented -- expect an
error."
(should-error (cpio-dired-do-async-shell-command)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-do-chgrp () ;✓
"Test the function of M-x cpio-dired-do-chgrp."
@@ -7397,7 +8817,7 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-odc-reset 'make)
+ (cdmt-reset 'make)
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-move-to-first-entry)
@@ -7411,10 +8831,10 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "Expecting an unchanged archive. (8814)"
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting 'a' to have group 9999."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): Expecting an unchanged archive. (8814)"
test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting 'a' to have group 9999."
test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rw-r--r-- 1 [[:digit:]]+ 9999 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -7435,8 +8855,8 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting a catalog with the first entry having group 9999."
- (string-match "((\"a\" \.
+ (should (progn (message "%s(): Expecting a catalog with the first entry
having group 9999." test-name)
+ (string-match "((\"a\" \.
\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ 9999 1
\\s-+([[:digit:]]+ [[:digit:]]+)
\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
@@ -7528,8 +8948,8 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
\\s-+#<marker at 1459 in alphabet_small.odc.cpio> #<marker at 1543 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified]))
" cpio-catalog-contents-after)))
- (cdmt-odc-reset)
-
+ (cdmt-reset)
+
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(setq unread-command-events (listify-key-sequence "8888\n"))
(cpio-dired-do-chgrp 4)
@@ -7542,10 +8962,10 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "The archive buffer doesn't change until saving."
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting the first 4 entries to have group 8888."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): The archive buffer doesn't change until
saving." test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting the first 4 entries to have group
8888." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rw-r--r-- 1 [[:digit:]]+ 8888 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ 8888 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -7566,8 +8986,8 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an archive with 4 entries having group 8888."
- (string-match"((\"a\" \.
+ (should (progn (message "%s(): Expecting an archive with 4 entries having
group 8888." test-name)
+ (string-match"((\"a\" \.
\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ 8888 1
\\s-+([[:digit:]]+ [[:digit:]]+)
\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
@@ -7659,7 +9079,7 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
\\s-+#<marker at 1459 in alphabet_small.odc.cpio> #<marker at 1543 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified]))
" cpio-catalog-contents-after)))
- (cdmt-odc-reset)
+ (cdmt-reset)
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-mark-entries-regexp "\\`...\\'")
@@ -7674,10 +9094,10 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "The archive is not changed until saved. (8894)"
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting \`...\' to have group 7777."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): The archive is not changed until saved.
(8894)" test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting \`...\' to have group 7777."
test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -7698,8 +9118,8 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting \`...\' to have group 7777."
- (string-match "((\"a\" \.
+ (should (progn (message "%s(): Expecting \`...\' to have group 7777."
test-name)
+ (string-match "((\"a\" \.
\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
\\s-+([[:digit:]]+ [[:digit:]]+)
\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
@@ -7790,8 +9210,8 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
\\s-+#<marker at 1459 in alphabet_small.odc.cpio> #<marker at 1543 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified]))
" cpio-catalog-contents-after)))
-
- (cdmt-odc-test-save)))
+
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-odc-cpio-dired-do-chmod ()
"Test cpio-dired-do-chmod."
@@ -7802,9 +9222,9 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
-
- (cdmt-odc-reset 'make)
-
+
+ (cdmt-reset 'make)
+
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(setq unread-command-events (listify-key-sequence "0755\n"))
(cpio-dired-do-chmod 1)
@@ -7816,9 +9236,9 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting the first entry to have mode -rwxr-xr-x."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+
+ (should (progn (message "%s(): Expecting the first entry to have mode
-rwxr-xr-x." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rwxr-xr-x 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -7839,8 +9259,8 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting a mode of 0755 on the first entry."
- (string-equal "070707 (( magic ))
+ (should (progn (message "%s(): Expecting a mode of 0755 on the first
entry." test-name)
+ (string-equal "070707 (( magic ))
DEADBE (( ino ))
100644 (( mode ))
001750 (( uid ))
@@ -8173,8 +9593,8 @@ TRAILER!!! (( filename ))
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
" cpio-archive-buffer-contents)))
- (should (and "Expecting a mode of 0755 (33261) on the first entry."
- (string-match "((\"a\" \.
+ (should (progn (message "%s(): Expecting a mode of 0755 (33261) on the
first entry." test-name)
+ (string-match "((\"a\" \.
\\s-+\[\[[[:digit:]]+ 33261 [[:digit:]]+ [[:digit:]]+ 1
\\s-+([[:digit:]]+ [[:digit:]]+)
\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
@@ -8279,9 +9699,9 @@ TRAILER!!! (( filename ))
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "Expecting aaa, aaaa, aaaaa to have mode -rw------."
- "Expecting aaaaa.d to have mode dr--------."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): Expecting aaa, aaaa, aaaaa to have mode
-rw------." test-name)
+ (message "%s(): Expecting aaaaa.d to have mode dr--------."
test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rwxr-xr-x 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -8303,12 +9723,12 @@ TRAILER!!! (( filename ))
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged archive buffer."
- "The archive is not modified until saving."
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting aaa, aaaa, aaaaa to have mode 0100600 (33152)."
- "Expecting aaaaa.d to have mode 040600 (16768)."
- (string-match "((\"a\" \.
+ (should (progn (message "%s(): Expecting an unchanged archive buffer."
test-name)
+ (message "%s(): The archive is not modified until saving."
test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting aaa, aaaa, aaaaa to have mode
0100600 (33152)." test-name)
+ (message "%s(): Expecting aaaaa.d to have mode 040600
(16768)." test-name)
+ (string-match "((\"a\" \.
\\s-+\[\[[[:digit:]]+ 33261 [[:digit:]]+ [[:digit:]]+ 1
\\s-+([[:digit:]]+ [[:digit:]]+)
\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
@@ -8399,7 +9819,7 @@ TRAILER!!! (( filename ))
\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
\\s-+#<marker at 1459 in alphabet_small.odc.cpio> #<marker at 1543 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified]))
" cpio-catalog-contents-after)))
-
+
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-mark-entries-regexp "\\`...\\'")
(setq unread-command-events (listify-key-sequence "0660\n"))
@@ -8413,8 +9833,8 @@ TRAILER!!! (( filename ))
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "Expecting ... to have mode -rw-rw----."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): Expecting ... to have mode -rw-rw----."
test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rwxr-xr-x 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -8436,11 +9856,11 @@ TRAILER!!! (( filename ))
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an untouched archive."
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting an untouched archive." test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting ... to have mode 0100660 (33200)."
- (string-match "((\"a\" \.
+ (should (progn (message "%s(): Expecting ... to have mode 0100660
(33200)." test-name)
+ (string-match "((\"a\" \.
\\s-+\[\[[[:digit:]]+ 33261 [[:digit:]]+ [[:digit:]]+ 1
\\s-+([[:digit:]]+ [[:digit:]]+)
\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
@@ -8542,12 +9962,12 @@ TRAILER!!! (( filename ))
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-;; (should (and "Expecting all the above mode changes in the archive
buffer."
-;; "• a has mode 0100755 (100755)."
-;; "• aaa, aaaa, aaaaa have mode 0100600 (100600)."
-;; "• aaaaa.d has mode 040600 (040600)."
-;; "• ... have mode 0660 (100660 for files or 040660 for
directories)."
- (should (string-equal "070707 (( magic ))
+ (should (progn (message "%s(): Expecting all the above mode changes in the
archive buffer." test-name)
+ (message "%s(): • a has mode 0100755 (100755)." test-name)
+ (message "%s(): • aaa, aaaa, aaaaa have mode 0100600
(100600)." test-name)
+ (message "%s(): • aaaaa.d has mode 040600 (040600)."
test-name)
+ (message "%s(): • ... have mode 0660 (100660 for files or
040660 for directories)." test-name)
+ (string-equal "070707 (( magic ))
DEADBE (( ino ))
100755 (( mode ))
001750 (( uid ))
@@ -8878,12 +10298,12 @@ DEADBE (( rdev min ))
000000 (( chksum ))
TRAILER!!! (( filename ))
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
-" cpio-archive-buffer-contents))
- (should (and "Expecting all the above mode changes in the dired buffer."
- "• a has mode -rwxr-xr-x"
- "• aaa, aaaa, aaaaa, aaaaa.d have mode -rw-r--r--"
- "• ... have mode -rw-rw----"
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+" cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting all the above mode changes
in the dired buffer." test-name)
+ (message "%s(): • a has mode -rwxr-xr-x" test-name)
+ (message "%s(): • aaa, aaaa, aaaaa, aaaaa.d have
mode -rw-r--r--" test-name)
+ (message "%s(): • ... have mode -rw-rw----"
test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rwxr-xr-x 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -8904,13 +10324,13 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting all the above mode changes in the catalog."
- "• a has mode 33261."
- "• aaa, aaaa, aaaaa have mode 33152."
- "• aaaaa.d has mode 16768."
- "• ... have mode 33200 for files."
- " 16816 for directories."
- (string-match "((\"a\" \.
+ (should (progn (message "%s(): Expecting all the above mode changes
in the catalog." test-name)
+ (message "%s(): • a has mode 33261." test-name)
+ (message "%s(): • aaa, aaaa, aaaaa have mode 33152."
test-name)
+ (message "%s(): • aaaaa.d has mode 16768." test-name)
+ (message "%s(): • ... have mode 33200 for files."
test-name)
+ (message "%s(): 16816 for
directories." test-name)
+ (string-match "((\"a\" \.
\\s-+\[\[[[:digit:]]+ 33261 [[:digit:]]+ [[:digit:]]+ 1
\\s-+([[:digit:]]+ [[:digit:]]+)
\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
@@ -9002,7 +10422,7 @@ TRAILER!!! (( filename ))
\\s-+#<marker at 1459 in alphabet_small.odc.cpio> #<marker at 1543 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified]))
" cpio-catalog-contents-after)))
- (cdmt-odc-test-save)))
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-odc-cpio-dired-do-chown () ;✓
"Test the function of M-x cpio-do-chown."
@@ -9013,10 +10433,10 @@ TRAILER!!! (( filename ))
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
-
- (cdmt-odc-reset 'make)
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+
+ (cdmt-reset 'make)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(setq unread-command-events (listify-key-sequence "9999\n"))
(cpio-dired-do-chown 1)
(setq cpio-archive-buffer-contents
@@ -9026,13 +10446,13 @@ TRAILER!!! (( filename ))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "The archive buffer is not modified until saved. (10741)"
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting a cpio-dired buffer with the owner of 'a' being
9999."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): The archive buffer is not modified until
saved. (10741)" test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+
+ (should (progn (message "%s(): Expecting a cpio-dired buffer with the
owner of 'a' being 9999." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rw-r--r-- 1 9999 [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -9053,101 +10473,101 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "The owner of 'a' should be 9999."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 9999 [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
-\\s-+#<marker at 1 in alphabet_small.odc.cpio> #<marker at 79 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 83 in alphabet_small.odc.cpio> #<marker at 162 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 167 in alphabet_small.odc.cpio> #<marker at 247 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 253 in alphabet_small.odc.cpio> #<marker at 334 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 341 in alphabet_small.odc.cpio> #<marker at 423 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 431 in alphabet_small.odc.cpio> #<marker at 515 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 515 in alphabet_small.odc.cpio> #<marker at 593 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 597 in alphabet_small.odc.cpio> #<marker at 676 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 681 in alphabet_small.odc.cpio> #<marker at 761 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 767 in alphabet_small.odc.cpio> #<marker at 848 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 855 in alphabet_small.odc.cpio> #<marker at 937 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 945 in alphabet_small.odc.cpio> #<marker at 1029 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1029 in alphabet_small.odc.cpio> #<marker at 1107 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1111 in alphabet_small.odc.cpio> #<marker at 1190 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1195 in alphabet_small.odc.cpio> #<marker at 1275 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1281 in alphabet_small.odc.cpio> #<marker at 1362 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1369 in alphabet_small.odc.cpio> #<marker at 1451 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 1459 in alphabet_small.odc.cpio> #<marker at 1543 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified]))
+ (should (progn (message "%s(): The owner of 'a' should be 9999." test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 9999 [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small.odc.cpio> #<marker at 79 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 83 in alphabet_small.odc.cpio> #<marker at 162 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 167 in alphabet_small.odc.cpio> #<marker at 247 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 253 in alphabet_small.odc.cpio> #<marker at 334 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 341 in alphabet_small.odc.cpio> #<marker at 423 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 431 in alphabet_small.odc.cpio> #<marker at 515 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 515 in alphabet_small.odc.cpio> #<marker at 593 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 597 in alphabet_small.odc.cpio> #<marker at 676 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 681 in alphabet_small.odc.cpio> #<marker at 761 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 767 in alphabet_small.odc.cpio> #<marker at 848 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 855 in alphabet_small.odc.cpio> #<marker at 937 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 945 in alphabet_small.odc.cpio> #<marker at 1029 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1029 in alphabet_small.odc.cpio> #<marker at 1107 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1111 in alphabet_small.odc.cpio> #<marker at 1190 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1195 in alphabet_small.odc.cpio> #<marker at 1275 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1281 in alphabet_small.odc.cpio> #<marker at 1362 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1369 in alphabet_small.odc.cpio> #<marker at 1451 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 1459 in alphabet_small.odc.cpio> #<marker at 1543 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (cdmt-odc-reset)
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (cdmt-reset)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(dired-next-line 2)
(setq unread-command-events (listify-key-sequence "8888\n"))
(cpio-dired-do-chown 4)
@@ -9158,13 +10578,13 @@ TRAILER!!! (( filename ))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "The archive buffer is not modified until saved. (11111)"
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): The archive buffer is not modified until
saved. (11111)" test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting 4 entries with owner 8888."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): Expecting 4 entries with owner 8888."
test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -9185,102 +10605,102 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting a catalog with 4 entries owned by 8888."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
-\\s-+#<marker at 1 in alphabet_small.odc.cpio> #<marker at 79 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 83 in alphabet_small.odc.cpio> #<marker at 162 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 8888 [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 167 in alphabet_small.odc.cpio> #<marker at 247 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 8888 [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 253 in alphabet_small.odc.cpio> #<marker at 335 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 8888 [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 341 in alphabet_small.odc.cpio> #<marker at 423 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 8888 [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 431 in alphabet_small.odc.cpio> #<marker at 515 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 515 in alphabet_small.odc.cpio> #<marker at 593 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 597 in alphabet_small.odc.cpio> #<marker at 676 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 681 in alphabet_small.odc.cpio> #<marker at 761 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 767 in alphabet_small.odc.cpio> #<marker at 848 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 855 in alphabet_small.odc.cpio> #<marker at 937 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 945 in alphabet_small.odc.cpio> #<marker at 1029 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1029 in alphabet_small.odc.cpio> #<marker at 1107 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1111 in alphabet_small.odc.cpio> #<marker at 1190 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1195 in alphabet_small.odc.cpio> #<marker at 1275 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1281 in alphabet_small.odc.cpio> #<marker at 1362 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1369 in alphabet_small.odc.cpio> #<marker at 1451 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 1459 in alphabet_small.odc.cpio> #<marker at 1543 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified]))
+ (should (progn (message "%s(): Expecting a catalog with 4 entries owned by
8888." test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small.odc.cpio> #<marker at 79 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 83 in alphabet_small.odc.cpio> #<marker at 162 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 8888 [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 167 in alphabet_small.odc.cpio> #<marker at 247 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 8888 [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 253 in alphabet_small.odc.cpio> #<marker at 335 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 8888 [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 341 in alphabet_small.odc.cpio> #<marker at 423 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 8888 [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 431 in alphabet_small.odc.cpio> #<marker at 515 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 515 in alphabet_small.odc.cpio> #<marker at 593 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 597 in alphabet_small.odc.cpio> #<marker at 676 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 681 in alphabet_small.odc.cpio> #<marker at 761 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 767 in alphabet_small.odc.cpio> #<marker at 848 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 855 in alphabet_small.odc.cpio> #<marker at 937 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 945 in alphabet_small.odc.cpio> #<marker at 1029 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1029 in alphabet_small.odc.cpio> #<marker at 1107 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1111 in alphabet_small.odc.cpio> #<marker at 1190 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1195 in alphabet_small.odc.cpio> #<marker at 1275 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1281 in alphabet_small.odc.cpio> #<marker at 1362 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1369 in alphabet_small.odc.cpio> #<marker at 1451 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 1459 in alphabet_small.odc.cpio> #<marker at 1543 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (cdmt-odc-reset)
+ (cdmt-reset)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark-entries-regexp "\\`...\\'")
(setq unread-command-events (listify-key-sequence "7777\n"))
(cpio-dired-do-chown 1)
@@ -9291,12 +10711,12 @@ TRAILER!!! (( filename ))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "The archive buffer is not modified until saved. (10818)"
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
-
- (should (and "Expecting \`...\' to be owned by 7777."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+ (should (progn (message "%s(): The archive buffer is not modified until
saved. (10818)" test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+
+ (should (progn (message "%s(): Expecting \`...\' to be owned by 7777."
test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -9317,100 +10737,100 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting ... to be owned by 7777."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
-\\s-+#<marker at 1 in alphabet_small.odc.cpio> #<marker at 79 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 83 in alphabet_small.odc.cpio> #<marker at 162 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 7777 [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 167 in alphabet_small.odc.cpio> #<marker at 247 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 253 in alphabet_small.odc.cpio> #<marker at 334 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 341 in alphabet_small.odc.cpio> #<marker at 423 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 431 in alphabet_small.odc.cpio> #<marker at 515 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 515 in alphabet_small.odc.cpio> #<marker at 593 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 597 in alphabet_small.odc.cpio> #<marker at 676 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 7777 [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 681 in alphabet_small.odc.cpio> #<marker at 761 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 767 in alphabet_small.odc.cpio> #<marker at 848 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 855 in alphabet_small.odc.cpio> #<marker at 937 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 945 in alphabet_small.odc.cpio> #<marker at 1029 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1029 in alphabet_small.odc.cpio> #<marker at 1107 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1111 in alphabet_small.odc.cpio> #<marker at 1190 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 7777 [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1195 in alphabet_small.odc.cpio> #<marker at 1275 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1281 in alphabet_small.odc.cpio> #<marker at 1362 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1369 in alphabet_small.odc.cpio> #<marker at 1451 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 1459 in alphabet_small.odc.cpio> #<marker at 1543 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified]))
+ (should (progn (message "%s(): Expecting ... to be owned by 7777."
test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small.odc.cpio> #<marker at 79 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 83 in alphabet_small.odc.cpio> #<marker at 162 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 7777 [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 167 in alphabet_small.odc.cpio> #<marker at 247 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 253 in alphabet_small.odc.cpio> #<marker at 334 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 341 in alphabet_small.odc.cpio> #<marker at 423 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 431 in alphabet_small.odc.cpio> #<marker at 515 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 515 in alphabet_small.odc.cpio> #<marker at 593 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 597 in alphabet_small.odc.cpio> #<marker at 676 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 7777 [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 681 in alphabet_small.odc.cpio> #<marker at 761 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 767 in alphabet_small.odc.cpio> #<marker at 848 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 855 in alphabet_small.odc.cpio> #<marker at 937 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 945 in alphabet_small.odc.cpio> #<marker at 1029 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1029 in alphabet_small.odc.cpio> #<marker at 1107 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1111 in alphabet_small.odc.cpio> #<marker at 1190 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 7777 [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1195 in alphabet_small.odc.cpio> #<marker at 1275 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1281 in alphabet_small.odc.cpio> #<marker at 1362 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1369 in alphabet_small.odc.cpio> #<marker at 1451 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 1459 in alphabet_small.odc.cpio> #<marker at 1543 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (cdmt-odc-test-save)))
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-odc-cpio-dired-do-chown-1 ()
"Test the change-owner-user function of M-x cpio-dired-do-chown."
@@ -9421,9 +10841,10 @@ TRAILER!!! (( filename ))
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-odc-reset 'make)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (cdmt-reset 'make)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(setq unread-command-events (listify-key-sequence "9999:1111\n"))
(cpio-dired-do-chown 1)
(setq cpio-archive-buffer-contents
@@ -9433,13 +10854,13 @@ TRAILER!!! (( filename ))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expect an untouched archive. (18063)"
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expect an untouched archive. (18063)"
test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting entry 'a' to have owner 9999 and group 1111."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): Expecting entry 'a' to have owner 9999 and
group 1111. (1605678037047079477)" test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rw-r--r-- 1 9999 1111 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -9460,102 +10881,103 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting entry 'a' to have owner 9999 and group 1111."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 9999 1111 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
-\\s-+#<marker at 1 in alphabet_small.odc.cpio> #<marker at 79 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 83 in alphabet_small.odc.cpio> #<marker at 162 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 167 in alphabet_small.odc.cpio> #<marker at 247 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 253 in alphabet_small.odc.cpio> #<marker at 334 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 341 in alphabet_small.odc.cpio> #<marker at 423 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 431 in alphabet_small.odc.cpio> #<marker at 515 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 515 in alphabet_small.odc.cpio> #<marker at 593 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 597 in alphabet_small.odc.cpio> #<marker at 676 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 681 in alphabet_small.odc.cpio> #<marker at 761 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 767 in alphabet_small.odc.cpio> #<marker at 848 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 855 in alphabet_small.odc.cpio> #<marker at 937 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 945 in alphabet_small.odc.cpio> #<marker at 1029 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1029 in alphabet_small.odc.cpio> #<marker at 1107 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1111 in alphabet_small.odc.cpio> #<marker at 1190 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1195 in alphabet_small.odc.cpio> #<marker at 1275 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1281 in alphabet_small.odc.cpio> #<marker at 1362 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1369 in alphabet_small.odc.cpio> #<marker at 1451 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 1459 in alphabet_small.odc.cpio> #<marker at 1543 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified]))
+
+ (should (progn (message "%s(): Expecting entry 'a' to have owner 9999 and
group 1111. (1034533504227655228)" test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 9999 1111 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small.odc.cpio> #<marker at 79 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 83 in alphabet_small.odc.cpio> #<marker at 162 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 167 in alphabet_small.odc.cpio> #<marker at 247 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 253 in alphabet_small.odc.cpio> #<marker at 334 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 341 in alphabet_small.odc.cpio> #<marker at 423 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 431 in alphabet_small.odc.cpio> #<marker at 515 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 515 in alphabet_small.odc.cpio> #<marker at 593 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 597 in alphabet_small.odc.cpio> #<marker at 676 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 681 in alphabet_small.odc.cpio> #<marker at 761 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 767 in alphabet_small.odc.cpio> #<marker at 848 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 855 in alphabet_small.odc.cpio> #<marker at 937 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 945 in alphabet_small.odc.cpio> #<marker at 1029 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1029 in alphabet_small.odc.cpio> #<marker at 1107 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1111 in alphabet_small.odc.cpio> #<marker at 1190 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1195 in alphabet_small.odc.cpio> #<marker at 1275 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1281 in alphabet_small.odc.cpio> #<marker at 1362 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1369 in alphabet_small.odc.cpio> #<marker at 1451 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 1459 in alphabet_small.odc.cpio> #<marker at 1543 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (cdmt-odc-reset)
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (cdmt-reset)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(dired-next-line 2)
(setq unread-command-events (listify-key-sequence "8888:2222\n"))
(cpio-dired-do-chown 4)
@@ -9566,12 +10988,12 @@ TRAILER!!! (( filename ))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting an untouched archive. (9918)"
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting 4 entries with owner 8888 and group 2222."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): Expecting an untouched archive. (9918)"
test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting 4 entries with owner 8888 and
group 2222." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -9592,238 +11014,241 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting 4 entries with owner 8888 and group 2222."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
-\\s-+#<marker at 1 in alphabet_small.odc.cpio> #<marker at 79 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 83 in alphabet_small.odc.cpio> #<marker at 162 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 8888 2222 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 167 in alphabet_small.odc.cpio> #<marker at 247 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 8888 2222 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 253 in alphabet_small.odc.cpio> #<marker at 335 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 8888 2222 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 341 in alphabet_small.odc.cpio> #<marker at 423 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 8888 2222 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 431 in alphabet_small.odc.cpio> #<marker at 515 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 515 in alphabet_small.odc.cpio> #<marker at 593 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 597 in alphabet_small.odc.cpio> #<marker at 676 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 681 in alphabet_small.odc.cpio> #<marker at 761 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 767 in alphabet_small.odc.cpio> #<marker at 848 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 855 in alphabet_small.odc.cpio> #<marker at 937 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 945 in alphabet_small.odc.cpio> #<marker at 1029 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1029 in alphabet_small.odc.cpio> #<marker at 1107 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1111 in alphabet_small.odc.cpio> #<marker at 1190 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1195 in alphabet_small.odc.cpio> #<marker at 1275 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1281 in alphabet_small.odc.cpio> #<marker at 1362 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1369 in alphabet_small.odc.cpio> #<marker at 1451 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 1459 in alphabet_small.odc.cpio> #<marker at 1543 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified]))
+
+ (should (progn (message "%s(): Expecting 4 entries with owner 8888 and
group 2222." test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small.odc.cpio> #<marker at 79 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 83 in alphabet_small.odc.cpio> #<marker at 162 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 8888 2222 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 167 in alphabet_small.odc.cpio> #<marker at 247 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 8888 2222 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 253 in alphabet_small.odc.cpio> #<marker at 335 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 8888 2222 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 341 in alphabet_small.odc.cpio> #<marker at 423 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 8888 2222 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 431 in alphabet_small.odc.cpio> #<marker at 515 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 515 in alphabet_small.odc.cpio> #<marker at 593 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 597 in alphabet_small.odc.cpio> #<marker at 676 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 681 in alphabet_small.odc.cpio> #<marker at 761 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 767 in alphabet_small.odc.cpio> #<marker at 848 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 855 in alphabet_small.odc.cpio> #<marker at 937 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 945 in alphabet_small.odc.cpio> #<marker at 1029 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1029 in alphabet_small.odc.cpio> #<marker at 1107 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1111 in alphabet_small.odc.cpio> #<marker at 1190 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1195 in alphabet_small.odc.cpio> #<marker at 1275 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1281 in alphabet_small.odc.cpio> #<marker at 1362 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1369 in alphabet_small.odc.cpio> #<marker at 1451 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 1459 in alphabet_small.odc.cpio> #<marker at 1543 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (cdmt-odc-reset)
+ (cdmt-reset)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark-entries-regexp "\\`...\\'")
(setq unread-command-events (listify-key-sequence "7777:3333\n"))
(cpio-dired-do-chown 1)
(setq cpio-archive-buffer-contents
(cdmt-odc-filter-archive-contents
(with-current-buffer cpio-archive-buffer
- (buffer-substring-no-properties (point-min) (point-max)))))
- (setq cpio-dired-buffer-contents
- (with-current-buffer cpio-dired-buffer
- (buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting an untouched archive. (9958)"
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting \`...\' to have owner 7777 and group 3333."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
-
- -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
- -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
-\\* -rw-r--r-- 1 7777 3333 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaa
- -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaa
- -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa
- drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa.d
- -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} b
- -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bb
-\\* -rw-r--r-- 1 7777 3333 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbb
- -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbb
- -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb
- drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb.d
- -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} c
- -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cc
-\\* -rw-r--r-- 1 7777 3333 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccc
- -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cccc
- -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
- drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
-" cpio-dired-buffer-contents)))
- (should (and "Expecting ... to have owner 7777 and group 3333."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
-\\s-+#<marker at 1 in alphabet_small.odc.cpio> #<marker at 79 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 83 in alphabet_small.odc.cpio> #<marker at 162 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 7777 3333 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 167 in alphabet_small.odc.cpio> #<marker at 247 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 253 in alphabet_small.odc.cpio> #<marker at 334 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 341 in alphabet_small.odc.cpio> #<marker at 423 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 431 in alphabet_small.odc.cpio> #<marker at 515 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 515 in alphabet_small.odc.cpio> #<marker at 593 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 597 in alphabet_small.odc.cpio> #<marker at 676 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 7777 3333 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 681 in alphabet_small.odc.cpio> #<marker at 761 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 767 in alphabet_small.odc.cpio> #<marker at 848 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 855 in alphabet_small.odc.cpio> #<marker at 937 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 945 in alphabet_small.odc.cpio> #<marker at 1029 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1029 in alphabet_small.odc.cpio> #<marker at 1107 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1111 in alphabet_small.odc.cpio> #<marker at 1190 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 7777 3333 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1195 in alphabet_small.odc.cpio> #<marker at 1275 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1281 in alphabet_small.odc.cpio> #<marker at 1362 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1369 in alphabet_small.odc.cpio> #<marker at 1451 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 1459 in alphabet_small.odc.cpio> #<marker at 1543 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified]))
+ (buffer-substring-no-properties (point-min) (point-max)))))
+ (setq cpio-dired-buffer-contents
+ (with-current-buffer cpio-dired-buffer
+ (buffer-substring-no-properties (point-min) (point-max))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "%s(): Expecting an untouched archive. (9958)"
test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+
+ (should (progn (message "%s(): Expecting \`...\' to have owner 7777 and
group 3333." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
+
+ -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
+ -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
+\\* -rw-r--r-- 1 7777 3333 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaa
+ -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaa
+ -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa
+ drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa.d
+ -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} b
+ -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bb
+\\* -rw-r--r-- 1 7777 3333 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbb
+ -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbb
+ -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb
+ drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb.d
+ -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} c
+ -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cc
+\\* -rw-r--r-- 1 7777 3333 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccc
+ -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cccc
+ -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
+ drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
+" cpio-dired-buffer-contents)))
+
+ (should (progn (message "%s(): Expecting ... to have owner 7777 and group
3333." test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small.odc.cpio> #<marker at 79 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 83 in alphabet_small.odc.cpio> #<marker at 162 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 7777 3333 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 167 in alphabet_small.odc.cpio> #<marker at 247 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 253 in alphabet_small.odc.cpio> #<marker at 334 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 341 in alphabet_small.odc.cpio> #<marker at 423 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 431 in alphabet_small.odc.cpio> #<marker at 515 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 515 in alphabet_small.odc.cpio> #<marker at 593 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 597 in alphabet_small.odc.cpio> #<marker at 676 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 7777 3333 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 681 in alphabet_small.odc.cpio> #<marker at 761 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 767 in alphabet_small.odc.cpio> #<marker at 848 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 855 in alphabet_small.odc.cpio> #<marker at 937 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 945 in alphabet_small.odc.cpio> #<marker at 1029 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1029 in alphabet_small.odc.cpio> #<marker at 1107 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1111 in alphabet_small.odc.cpio> #<marker at 1190 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 7777 3333 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1195 in alphabet_small.odc.cpio> #<marker at 1275 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1281 in alphabet_small.odc.cpio> #<marker at 1362 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1369 in alphabet_small.odc.cpio> #<marker at 1451 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 1459 in alphabet_small.odc.cpio> #<marker at 1543 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (cdmt-odc-test-save)))
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-odc-cpio-dired-do-compress ()
"Test cpio-dired-do-compress.
cpio-dired-do-compress is not yet implemented -- expect an error."
(should-error (cpio-dired-do-compress)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-do-copy-0 () ;✓
"Test the function of M-x cpio-do-copy."
@@ -9835,7 +11260,7 @@ cpio-dired-do-compress is not yet implemented -- expect
an error."
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-odc-reset 'make)
+ (cdmt-reset 'make)
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(setq unread-command-events (listify-key-sequence "d\n"))
@@ -9848,8 +11273,9 @@ cpio-dired-do-compress is not yet implemented -- expect
an error."
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-;; (should (and "Checking that entry »a« has been copied to »d«."
- (should (string-equal "070707 (( magic ))
+
+ (should (progn (message "%s(): Checking that entry »a« has been copied to
»d«." test-name)
+ (string-equal "070707 (( magic ))
DEADBE (( ino ))
100644 (( mode ))
001750 (( uid ))
@@ -10183,9 +11609,9 @@ d (( filename ))
a
-" cpio-archive-buffer-contents))
- (should (and "Checking that there is an entry »d« in the dired style
buffer."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+" cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Checking that there is an entry »d« in the
dired style buffer." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -10207,8 +11633,8 @@ a
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} d
" cpio-dired-buffer-contents)))
- (should (and "Expecting to see an entry »d«."
- (string-match "((\"a\" \.
+ (should (progn (message "%s(): Expecting to see an entry »d«." test-name)
+ (string-match "((\"a\" \.
\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
\\s-+([[:digit:]]+ [[:digit:]]+)
\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
@@ -10305,7 +11731,7 @@ C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
\\s-+#<marker at 1543 in alphabet_small.odc.cpio> #<marker at 1621 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified]))
" cpio-catalog-contents-after)))
- (cdmt-odc-test-save)))
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-odc-cpio-dired-do-copy-1 () ;✓
"Test the function of M-x cpio-do-copy."
@@ -10318,7 +11744,7 @@ C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-odc-reset 'make)
+ (cdmt-reset 'make)
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(dired-next-line 2)
@@ -10340,11 +11766,11 @@ C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
;; However, cpio(1GNU) seems to cope with it.
;; Note the use of the term character position, since cpio counts
characters
;; starting at 0, while emacs starts counting (point) at 1.
- (should (and "Checking for »aaa«, »aaaa«, »aaaaa«, »aaaaa« copied to
newDirectory in the archive."
- (string-equal "uNlIkElY" cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Checking for »aaa«, »aaaa«, »aaaaa«,
»aaaaa« copied to newDirectory in the archive." test-name)
+ (string-equal "uNlIkElY" cpio-archive-buffer-contents)))
- (should (and "Checking for the presence of »newDirectory/aaa«,
»newDirectory/aaaa«, »newDirectory/aaaaa«, »newDirectory/aaaaa«."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): Checking for the presence of
»newDirectory/aaa«, »newDirectory/aaaa«, »newDirectory/aaaaa«,
»newDirectory/aaaaa«." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -10371,7 +11797,7 @@ C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
" cpio-dired-buffer-contents)))
(should (string-match "uNlIkElY" cpio-catalog-contents-after))
- (cdmt-odc-test-save)))
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-odc-cpio-dired-do-copy-2 () ;✓
"Test the function of M-x cpio-do-copy."
@@ -10383,7 +11809,7 @@ C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-odc-reset 'make)
+ (cdmt-reset 'make)
(progn (cpio-dired-mark-entries-regexp "\\`...\\'")
(setq unread-command-events (listify-key-sequence
"newDirectory-1\n"))
@@ -10396,9 +11822,9 @@ C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting an archive with each 3 letter entry copied to
newDirectory-1."
- (string-equal "070707 (( magic ))
+
+ (should (progn (message "%s(): Expecting an archive with each 3 letter
entry copied to newDirectory-1." test-name)
+ (string-equal "070707 (( magic ))
DEADBE (( ino ))
100644 (( mode ))
001750 (( uid ))
@@ -10769,8 +12195,8 @@ aaa
" cpio-archive-buffer-contents)))
- (should (and "Expecting a cpio-dired bufffer with ... copied to
newDirectory-1."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): Expecting a cpio-dired bufffer with ...
copied to newDirectory-1." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -10794,8 +12220,8 @@ C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|de
C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory-1/bbb
C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory-1/aaa
" cpio-dired-buffer-contents)))
- (should (and "Expecting to see ... entries in newDirectory-1."
- (string-match "((\"a\" \.
+ (should (progn (message "%s(): Expecting to see ... entries in
newDirectory-1." test-name)
+ (string-match "((\"a\" \.
\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
\\s-+([[:digit:]]+ [[:digit:]]+)
\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
@@ -10902,7 +12328,7 @@ C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|de
\\s-+#<marker at 1745 in alphabet_small.odc.cpio> #<marker at 1840 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified]))
" cpio-catalog-contents-after)))
- (cdmt-odc-test-save)))
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-odc-cpio-dired-do-copy-3 () ;✓
"Test the function of M-x cpio-do-copy."
@@ -10914,7 +12340,7 @@ C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|de
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-odc-reset 'make)
+ (cdmt-reset 'make)
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-mark-entries-regexp "...")
@@ -10928,9 +12354,9 @@ C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|de
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting an archive with each entry named with at least 3
letters copied to newDirectory-3."
- (string-equal "070707 (( magic ))
+
+ (should (progn (message "%s(): Expecting an archive with each entry named
with at least 3 letters copied to newDirectory-3." test-name)
+ (string-equal "070707 (( magic ))
DEADBE (( ino ))
100644 (( mode ))
001750 (( uid ))
@@ -11454,9 +12880,9 @@ aaa
" cpio-archive-buffer-contents)))
-
- (should (and "Expecting all entries named with at least 3 letters to have
copies in newDirectory-3."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+
+ (should (progn (message "%s(): Expecting all entries named with at least 3
letters to have copies in newDirectory-3." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -11489,8 +12915,8 @@ C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|de
C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory-3/aaaa
C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory-3/aaa
" cpio-dired-buffer-contents)))
- (should (and "Expecting all entries named with at least 3 letters to have
copies in newDirectory-3."
- (string-match "((\"a\" \.
+ (should (progn (message "%s(): Expecting all entries named with at least 3
letters to have copies in newDirectory-3." test-name)
+ (string-match "((\"a\" \.
\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
\\s-+([[:digit:]]+ [[:digit:]]+)
\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
@@ -11642,13 +13068,13 @@ C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|de
\\s-+#<marker at 2669 in alphabet_small.odc.cpio> #<marker at 2764 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified]))
" cpio-catalog-contents-after)))
- (cdmt-odc-test-save)))
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-odc-cpio-dired-do-copy-regexp ()
"Test cpio-dired-do-copy-regexp.
cpio-dired-do-copy-regexp is not yet implemented -- expect an error."
(should-error (cpio-dired-do-copy-regexp)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-do-delete () ;✓
"Test the function of M-x cpio-dired-do-delete."
@@ -11659,7 +13085,7 @@ cpio-dired-do-copy-regexp is not yet implemented --
expect an error."
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-odc-reset 'make)
+ (cdmt-reset 'make)
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-do-delete 1)
@@ -11672,8 +13098,8 @@ cpio-dired-do-copy-regexp is not yet implemented --
expect an error."
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-;; (should (and "Expecting entry »a« to be deleted."
- (should (string-equal "070707 (( magic ))
+ (should (progn (message "%s(): Expecting entry »a« to be deleted."
test-name)
+ (string-equal "070707 (( magic ))
DEADBE (( ino ))
100644 (( mode ))
001750 (( uid ))
@@ -11986,10 +13412,10 @@ DEADBE (( rdev min ))
000000 (( chksum ))
TRAILER!!! (( filename ))
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
-" cpio-archive-buffer-contents))
+" cpio-archive-buffer-contents)))
- (should (and "Expecting entry »a« to be deleted."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): Expecting entry »a« to be deleted."
test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaa
@@ -12009,8 +13435,8 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting a catalog with entry »a« deleted."
- (string-match "((\"aa\" \.
+ (should (progn (message "%s(): Expecting a catalog with entry »a«
deleted." test-name)
+ (string-match "((\"aa\" \.
\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
\\s-+([[:digit:]]+ [[:digit:]]+)
\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
@@ -12355,8 +13781,8 @@ TRAILER!!! (( filename ))
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
" cpio-archive-buffer-contents))
- (should (and "Expecting a cpio-dired buffer with 4 entries deleted."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): Expecting a cpio-dired buffer with 4
entries deleted." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaa
@@ -12372,9 +13798,9 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting a catalog with entries"
- " »aaaa«, »aaaaa«, »aaaaa.d« and »b« deleted."
- (string-match "((\"aa\" \.
+ (should (progn (message "%s(): Expecting a catalog with entries" test-name)
+ (message "%s(): »aaaa«, »aaaaa«, »aaaaa.d« and »b«
deleted." test-name)
+ (string-match "((\"aa\" \.
\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
\\s-+([[:digit:]]+ [[:digit:]]+)
\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
@@ -12440,9 +13866,9 @@ TRAILER!!! (( filename ))
\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
\\s-+#<marker at 1033 in alphabet_small.odc.cpio> #<marker at 1117 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified]))
"
-cpio-catalog-contents-after)))
+ cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp (cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-mark-entries-regexp "\\`...\\'")
(setq unread-command-events (listify-key-sequence "\n"))
(cpio-dired-do-delete 1)
@@ -12647,8 +14073,8 @@ TRAILER!!! (( filename ))
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
" cpio-archive-buffer-contents))
- (should (and "Expecting a cpio-dired buffer with 4 entries deleted."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): Expecting a cpio-dired buffer with 4
entries deleted." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bb
@@ -12661,8 +14087,8 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting a catalog with further entries \`...\' deleted."
- (string-match "((\"aa\" \.
+ (should (progn (message "%s(): Expecting a catalog with further entries
\`...\' deleted." test-name)
+ (string-match "((\"aa\" \.
\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
\\s-+([[:digit:]]+ [[:digit:]]+)
\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
@@ -12714,49 +14140,49 @@ TRAILER!!! (( filename ))
\\s-+#<marker at 775 in alphabet_small.odc.cpio> #<marker at 859 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified]))
" cpio-catalog-contents-after)))
- (cdmt-odc-test-save)))
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-odc-cpio-dired-do-flagged-delete ()
"Test cpio-dired-do-flagged-delete.
cpio-dired-do-flagged-delete is not yet implemented -- expect an error."
(should-error (cpio-dired-do-flagged-delete)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-do-hardlink ()
"Test cpio-dired-do-hardlink.
cpio-dired-do-hardlink is not yet implemented -- expect an error."
(should-error (cpio-dired-do-hardlink)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-do-hardlink-regexp ()
"Test cpio-dired-do-hardlink-regexp.
cpio-dired-do-hardlink-regexp is not yet implemented -- expect an error."
(should-error (cpio-dired-do-hardlink-regexp)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-do-kill-lines ()
"Test cpio-dired-do-kill-lines.
cpio-dired-do-kill-lines is not yet implemented -- expect an error."
(should-error (cpio-dired-do-kill-lines)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-do-print ()
"Test cpio-dired-do-print.
cpio-dired-do-print is not yet implemented -- expect an error."
(should-error (cpio-dired-do-print)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-do-query-replace-regexp ()
"Test cpio-dired-do-query-replace-regexp.
cpio-dired-do-query-replace-regexp is not yet implemented -- expect an error."
(should-error (cpio-dired-do-query-replace-regexp)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-do-redisplay ()
"Test cpio-dired-do-redisplay.
cpio-dired-do-redisplay is not yet implemented -- expect an error."
(should-error (cpio-dired-do-redisplay)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-do-rename () ;✓
(let ((test-name "cdmt-odc-cpio-dired-do-rename")
@@ -12767,8 +14193,8 @@ cpio-dired-do-redisplay is not yet implemented --
expect an error."
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-odc-reset 'make)
-
+ (cdmt-reset 'make)
+
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(setq unread-command-events (listify-key-sequence "d\n"))
(cpio-dired-do-rename 1)
@@ -12781,12 +14207,12 @@ cpio-dired-do-redisplay is not yet implemented --
expect an error."
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "Expecting an untouched archive."
- "The archive gets updated on save."
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting an untouched archive." test-name)
+ (message "%s(): The archive gets updated on save." test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a dired buffer with no entry »a«, but an entry
»d«."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): Expecting a dired buffer with no entry »a«,
but an entry »d«." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} d
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -12807,9 +14233,9 @@ cpio-dired-do-redisplay is not yet implemented --
expect an error."
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
-
- (should (and "Expecting catalog with first entry »d«."
- (string-match "((\"d\" \.
+
+ (should (progn (message "%s(): Expecting catalog with first entry »d«."
test-name)
+ (string-match "((\"d\" \.
\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
\\s-+([[:digit:]]+ [[:digit:]]+)
\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"d\"]
@@ -12914,11 +14340,11 @@ cpio-dired-do-redisplay is not yet implemented --
expect an error."
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "Expecting an as yet unchanged archive."
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
-
- (should (and "Expecting a dired style buffer with entries »aaaa«, »aaaaa«,
»aaaaa.d« and »b« moved to »newDirectory«."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): Expecting an as yet unchanged archive."
test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+
+ (should (progn (message "%s(): Expecting a dired style buffer with entries
»aaaa«, »aaaaa«, »aaaaa.d« and »b« moved to »newDirectory«." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} d
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -12939,9 +14365,9 @@ cpio-dired-do-redisplay is not yet implemented --
expect an error."
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
-
- (should (and "Expecting a catalog with the above changes."
- (string-match "((\"d\" \.
+
+ (should (progn (message "%s(): Expecting a catalog with the above
changes." test-name)
+ (string-match "((\"d\" \.
\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
\\s-+([[:digit:]]+ [[:digit:]]+)
\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"d\"]
@@ -13032,7 +14458,7 @@ cpio-dired-do-redisplay is not yet implemented --
expect an error."
\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
\\s-+#<marker at 1459 in alphabet_small.odc.cpio> #<marker at 1543 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified]))
" cpio-catalog-contents-after)))
-
+
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-mark-entries-regexp "\\`...\\'")
(setq unread-command-events (listify-key-sequence
"newDirectory-1\n"))
@@ -13046,11 +14472,11 @@ cpio-dired-do-redisplay is not yet implemented --
expect an error."
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "Expecting an as yet unchanged archive."
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting an as yet unchanged archive."
test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a dired buffer with \`...\' all under
newDirectory-1."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): Expecting a dired buffer with \`...\' all
under newDirectory-1." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} d
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -13071,8 +14497,8 @@ cpio-dired-do-redisplay is not yet implemented --
expect an error."
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting a catalog with \`...\' entries in newDirectory-1."
- (string-match "((\"d\" \.
+ (should (progn (message "%s(): Expecting a catalog with \`...\' entries in
newDirectory-1." test-name)
+ (string-match "((\"d\" \.
\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
\\s-+([[:digit:]]+ [[:digit:]]+)
\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"d\"]
@@ -13164,61 +14590,61 @@ cpio-dired-do-redisplay is not yet implemented --
expect an error."
\\s-+#<marker at 1459 in alphabet_small.odc.cpio> #<marker at 1543 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified]))
" cpio-catalog-contents-after)))
- (cdmt-odc-test-save)))
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-odc-cpio-dired-do-rename-regexp ()
"Test cpio-dired-do-rename-regexp.
cpio-dired-do-rename-regexp is not yet implemented -- expect an error."
(should-error (cpio-dired-do-rename-regexp)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-do-search () ;HEREHERE ()
"Test cpio-dired-do-search) ;HEREHERE.
cpio-dired-do-search) ;HEREHERE is not yet implemented -- expect an error."
(should-error (cpio-dired-do-search)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-do-symlink ()
"Test cpio-dired-do-symlink.
cpio-dired-do-symlink is not yet implemented -- expect an error."
(should-error (cpio-dired-do-symlink)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-do-symlink-regexp ()
"Test cpio-dired-do-symlink-regexp.
cpio-dired-do-symlink-regexp is not yet implemented -- expect an error."
(should-error (cpio-dired-do-symlink-regexp)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-do-touch ()
"Test cpio-dired-do-touch.
cpio-dired-do-touch is not yet implemented -- expect an error."
(should-error (cpio-dired-do-touch)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-downcase ()
"Test cpio-dired-downcase.
cpio-dired-downcase is not yet implemented -- expect an error."
(should-error (cpio-dired-downcase)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-extract-all ()
"Test cpio-dired-extract-all.
cpio-dired-extract-all is not yet implemented -- expect an error."
(should-error (cpio-dired-extract-all)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-extract-entries ()
"Test cpio-dired-extract-entries.
cpio-dired-extract-entries is not yet implemented -- expect an error."
(should-error (cpio-dired-extract-entries)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-find-alternate-entry ()
"Test cpio-dired-find-alternate-entry.
cpio-dired-find-alternate-entry is not yet implemented -- expect an error."
(should-error (cpio-dired-find-alternate-entry)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-find-entry () ;✓
"Test the function of M-x cpio-find-entry.
@@ -13233,8 +14659,8 @@ They reflect an outstanding bug in cpio-affiliated
buffers."
(cpio-contents-window)
(entry-name)
(past-entries ()))
- (cdmt-odc-reset 'make)
-
+ (cdmt-reset 'make)
+
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(setq entry-name "aaa")
(cpio-dired-goto-entry entry-name)
@@ -13256,18 +14682,18 @@ They reflect an outstanding bug in cpio-affiliated
buffers."
(with-current-buffer cpio-dired-buffer
- (should (and "Expect an untouched archive. (18064)"
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expect an untouched archive. (18064)"
test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
(should (string-match *cdmt-odc-untouched-small-dired-buffer*
cpio-dired-buffer-contents))
(should (not (null cpio-contents-buffer)))
(should (buffer-live-p cpio-contents-buffer))
(should (string-equal cpio-contents-buffer-string (concat "\n"
entry-name "\n\n")))
(should (window-live-p cpio-contents-window))
- (should (and "Expecting an unchanged catalog. (18038)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after))))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (18038)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after))))
(push entry-name past-entries)
-
+
(switch-to-buffer cpio-dired-buffer)
(progn (setq entry-name "ccc")
@@ -13289,26 +14715,26 @@ They reflect an outstanding bug in cpio-affiliated
buffers."
(buffer-substring-no-properties (point-min)
(point-max))))))
(with-current-buffer cpio-dired-buffer
- (should (and "Expect an untouched archive. (18065)"
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expect an untouched archive. (18065)"
test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
(should (string-match *cdmt-odc-untouched-small-dired-buffer*
cpio-dired-buffer-contents))
(should (not (null cpio-contents-buffer)))
(should (buffer-live-p cpio-contents-buffer))
(should (string-equal cpio-contents-buffer-string "\nccc\n\n"))
(should (window-live-p cpio-contents-window))
- (should (and "Expecting an unchanged catalog. (18039)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after))))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (18039)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after))))
;; Now make sure that any past entries are still there.
(mapc (lambda (en)
- (setq cpio-contents-buffer (get-buffer (cpio-contents-buffer-name
entry-name)))
- (setq cpio-contents-buffer-string (with-current-buffer
cpio-contents-buffer
- (buffer-substring-no-properties
(point-min)
-
(point-max))))
- (should (not (null cpio-contents-buffer)))
- (should (buffer-live-p cpio-contents-buffer))
- (should (string-equal cpio-contents-buffer-string (concat "\n"
entry-name "\n\n")))
- (should (window-live-p cpio-contents-window)))
+ (setq cpio-contents-buffer (get-buffer (cpio-contents-buffer-name
entry-name)))
+ (setq cpio-contents-buffer-string (with-current-buffer
cpio-contents-buffer
+ (buffer-substring-no-properties
(point-min)
+
(point-max))))
+ (should (not (null cpio-contents-buffer)))
+ (should (buffer-live-p cpio-contents-buffer))
+ (should (string-equal cpio-contents-buffer-string (concat "\n"
entry-name "\n\n")))
+ (should (window-live-p cpio-contents-window)))
past-entries)
;; Affiliated buffers don't get killed when the parent does yet.
@@ -13323,7 +14749,7 @@ They reflect an outstanding bug in cpio-affiliated
buffers."
"Test cpio-dired-find-entry-other-window.
cpio-dired-find-entry-other-window is not yet implemented -- expect an error."
(should-error (cpio-dired-find-entry-other-window)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-flag-auto-save-entries () ;✓
"Test the function of M-x cpio-dired-flag-auto-save-entries."
@@ -13334,7 +14760,7 @@ cpio-dired-find-entry-other-window is not yet
implemented -- expect an error."
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-odc-reset 'make)
+ (cdmt-reset 'make)
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(beginning-of-line)
@@ -13349,12 +14775,12 @@ cpio-dired-find-entry-other-window is not yet
implemented -- expect an error."
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
-;; (should (and "Expecting an archive with autosave entries"
-;; "for each single character entry."
-;; "(The copy used to create them must update the archive.)"
- (should (string-equal "070707 (( magic ))
+ (should (progn (message "%s(): Expecting an archive with autosave entries"
test-name)
+ (message "%s(): for each single character entry." test-name)
+ (message "%s(): (The copy used to create them must update
the archive.)" test-name)
+ (string-equal "070707 (( magic ))
DEADBE (( ino ))
100644 (( mode ))
001750 (( uid ))
@@ -13675,202 +15101,203 @@ DEADBE (( ino ))
001750 (( uid ))
001750 (( gid ))
000001 (( nlink ))
-DEADBE (( mtime ))
-00000000004 (( filesize ))
-DEADBE (( dev maj ))
-DEADBE (( dev min ))
-DEADBE (( rdev maj ))
-DEADBE (( rdev min ))
-000003 (( namesize ))
-000000 (( chksum ))
-#a (( filename ))
-
-a
-
-070707 (( magic ))
-DEADBE (( ino ))
-100644 (( mode ))
-001750 (( uid ))
-001750 (( gid ))
-000001 (( nlink ))
-DEADBE (( mtime ))
-00000000004 (( filesize ))
-DEADBE (( dev maj ))
-DEADBE (( dev min ))
-DEADBE (( rdev maj ))
-DEADBE (( rdev min ))
-000003 (( namesize ))
-000000 (( chksum ))
-#b (( filename ))
-
-b
-
-070707 (( magic ))
-DEADBE (( ino ))
-100644 (( mode ))
-001750 (( uid ))
-001750 (( gid ))
-000001 (( nlink ))
-DEADBE (( mtime ))
-00000000004 (( filesize ))
-DEADBE (( dev maj ))
-DEADBE (( dev min ))
-DEADBE (( rdev maj ))
-DEADBE (( rdev min ))
-000003 (( namesize ))
-000000 (( chksum ))
-#c (( filename ))
-
-c
-
-
-" cpio-archive-buffer-contents))
-
- (should (and "Expecting a cpio-dired-buffer with autosave files for single
character entries."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
-
- -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
- -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
- -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaa
- -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaa
- -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa
- drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa.d
- -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} b
- -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bb
- -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbb
- -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbb
- -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb
- drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb.d
- -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} c
- -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cc
- -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccc
- -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cccc
- -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
- drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
-D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} #a
-D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} #b
-D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} #c
-" cpio-dired-buffer-contents)))
-
- (should (and "Expecting to seee catalog entries for auto-save files for
single character entries."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
-\\s-+#<marker at 1 in alphabet_small.odc.cpio> #<marker at 79 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 83 in alphabet_small.odc.cpio> #<marker at 162 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 167 in alphabet_small.odc.cpio> #<marker at 247 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 253 in alphabet_small.odc.cpio> #<marker at 334 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 341 in alphabet_small.odc.cpio> #<marker at 423 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 431 in alphabet_small.odc.cpio> #<marker at 515 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 515 in alphabet_small.odc.cpio> #<marker at 593 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 597 in alphabet_small.odc.cpio> #<marker at 676 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 681 in alphabet_small.odc.cpio> #<marker at 761 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 767 in alphabet_small.odc.cpio> #<marker at 848 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 855 in alphabet_small.odc.cpio> #<marker at 937 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 945 in alphabet_small.odc.cpio> #<marker at 1029 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1029 in alphabet_small.odc.cpio> #<marker at 1107 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1111 in alphabet_small.odc.cpio> #<marker at 1190 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1195 in alphabet_small.odc.cpio> #<marker at 1275 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1281 in alphabet_small.odc.cpio> #<marker at 1362 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1369 in alphabet_small.odc.cpio> #<marker at 1451 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 1459 in alphabet_small.odc.cpio> #<marker at 1543 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"#a\" .
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 64768 0 0 0 3 0 \"#a\"]
-\\s-+#<marker at 1543 in alphabet_small.odc.cpio> #<marker at 1622 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"#b\" .
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 64768 0 0 0 3 0 \"#b\"]
-\\s-+#<marker at 1626 in alphabet_small.odc.cpio> #<marker at 1705 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"#c\" .
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 64768 0 0 0 3 0 \"#c\"]
-\\s-+#<marker at 1709 in alphabet_small.odc.cpio> #<marker at 1788 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified]))
-" cpio-catalog-contents-after)))))
+DEADBE (( mtime ))
+00000000004 (( filesize ))
+DEADBE (( dev maj ))
+DEADBE (( dev min ))
+DEADBE (( rdev maj ))
+DEADBE (( rdev min ))
+000003 (( namesize ))
+000000 (( chksum ))
+#a (( filename ))
+
+a
+
+070707 (( magic ))
+DEADBE (( ino ))
+100644 (( mode ))
+001750 (( uid ))
+001750 (( gid ))
+000001 (( nlink ))
+DEADBE (( mtime ))
+00000000004 (( filesize ))
+DEADBE (( dev maj ))
+DEADBE (( dev min ))
+DEADBE (( rdev maj ))
+DEADBE (( rdev min ))
+000003 (( namesize ))
+000000 (( chksum ))
+#b (( filename ))
+
+b
+
+070707 (( magic ))
+DEADBE (( ino ))
+100644 (( mode ))
+001750 (( uid ))
+001750 (( gid ))
+000001 (( nlink ))
+DEADBE (( mtime ))
+00000000004 (( filesize ))
+DEADBE (( dev maj ))
+DEADBE (( dev min ))
+DEADBE (( rdev maj ))
+DEADBE (( rdev min ))
+000003 (( namesize ))
+000000 (( chksum ))
+#c (( filename ))
+
+c
+
+
+" cpio-archive-buffer-contents)))
+
+ (should (progn (message "%s(): Expecting a cpio-dired-buffer with autosave
files for single character entries." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
+
+ -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
+ -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
+ -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaa
+ -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaa
+ -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa
+ drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa.d
+ -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} b
+ -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bb
+ -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbb
+ -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbb
+ -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb
+ drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb.d
+ -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} c
+ -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cc
+ -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccc
+ -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cccc
+ -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
+ drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
+D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} #a
+D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} #b
+D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} #c
+" cpio-dired-buffer-contents)))
+
+ (should (progn (message "%s(): Expecting to seee catalog entries for
auto-save files for single character entries." test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small.odc.cpio> #<marker at 79 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 83 in alphabet_small.odc.cpio> #<marker at 162 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 167 in alphabet_small.odc.cpio> #<marker at 247 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 253 in alphabet_small.odc.cpio> #<marker at 334 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 341 in alphabet_small.odc.cpio> #<marker at 423 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 431 in alphabet_small.odc.cpio> #<marker at 515 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 515 in alphabet_small.odc.cpio> #<marker at 593 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 597 in alphabet_small.odc.cpio> #<marker at 676 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 681 in alphabet_small.odc.cpio> #<marker at 761 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 767 in alphabet_small.odc.cpio> #<marker at 848 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 855 in alphabet_small.odc.cpio> #<marker at 937 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 945 in alphabet_small.odc.cpio> #<marker at 1029 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1029 in alphabet_small.odc.cpio> #<marker at 1107 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1111 in alphabet_small.odc.cpio> #<marker at 1190 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1195 in alphabet_small.odc.cpio> #<marker at 1275 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1281 in alphabet_small.odc.cpio> #<marker at 1362 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1369 in alphabet_small.odc.cpio> #<marker at 1451 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 1459 in alphabet_small.odc.cpio> #<marker at 1543 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨#a¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨#a¨«
+\\s-+#<marker at 1543 in alphabet_small.odc.cpio> #<marker at 1622 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨#b¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨#b¨«
+\\s-+#<marker at 1626 in alphabet_small.odc.cpio> #<marker at 1705 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨#c¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨#c¨«
+\\s-+#<marker at 1709 in alphabet_small.odc.cpio> #<marker at 1788 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«))
+" cpio-catalog-contents-after)))
+ ))
(ert-deftest cdmt-odc-cpio-dired-flag-backup-entries ()
"Test cpio-dired-flag-backup-entries.
cpio-dired-flag-backup-entries is not yet implemented -- expect an error."
(should-error (cpio-dired-flag-backup-entries)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-flag-entries-regexp ()
"Test cpio-dired-flag-entries-regexp.
cpio-dired-flag-entries-regexp is not yet implemented -- expect an error."
(should-error (cpio-dired-flag-entries-regexp)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-flag-entry-deletion () ;✓
"Test the function of M-x cpio-flag-entry-deletion."
@@ -13881,7 +15308,7 @@ cpio-dired-flag-entries-regexp is not yet implemented
-- expect an error."
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-odc-reset 'make)
+ (cdmt-reset 'make)
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-flag-entry-deletion 1)
@@ -13894,10 +15321,10 @@ cpio-dired-flag-entries-regexp is not yet implemented
-- expect an error."
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "Expect an untouched archive. (18066)"
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a cpio-dired buffer with one entry flagged for
deletion."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): Expect an untouched archive. (18066)"
test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting a cpio-dired buffer with one
entry flagged for deletion." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -13918,8 +15345,8 @@ D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (18040)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (18040)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(dired-next-line 2)
@@ -13933,10 +15360,10 @@ D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "Expect an untouched archive. (18067)"
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a cpio-dired buffer with 4 more entries flagged
for deletion."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): Expect an untouched archive. (18067)"
test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting a cpio-dired buffer with 4 more
entries flagged for deletion." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -13957,8 +15384,8 @@ D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (18041)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (18041)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-odc-cpio-dired-flag-garbage-entries ()
"Test cpio-dired-flag-garbage-entries."
@@ -13971,8 +15398,8 @@ D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
(cpio-catalog-contents-after)
(entry-name "aa"))
- (cdmt-odc-reset 'make)
-
+ (cdmt-reset 'make)
+
(progn (setq cpio-dired-catalog-contents-before (cpio-catalog))
(cpio-dired-goto-entry entry-name)
(mapc (lambda (s) ;suffix
@@ -13988,9 +15415,9 @@ D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-;; (should (and "Expecting an archive with entries for suffixes"
- ;; " aux bak dvi log orig reg toc."
- (should (string-equal "070707 (( magic ))
+ (should (progn (message "%s(): Expecting an archive with entries for
suffixes" test-name)
+ (message "%s(): aux bak dvi log orig reg toc." test-name)
+ (string-equal "070707 (( magic ))
DEADBE (( ino ))
100644 (( mode ))
001750 (( uid ))
@@ -14432,12 +15859,12 @@ aa.toc (( filename ))
aa
\\0
-" cpio-archive-buffer-contents))
+" cpio-archive-buffer-contents)))
- (should (and "Expecting a dired-style buffer with marked entries"
- " for the suffixes"
- " aux bak dvi log orig reg toc."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): Expecting a dired-style buffer with marked
entries" test-name)
+ (message "%s(): for the suffixes" test-name)
+ (message "%s(): aux bak dvi log orig reg toc." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -14465,9 +15892,9 @@ D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa.rej
D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa.toc
" cpio-dired-buffer-contents)))
- (should (and "Expecting a catalog with entries with the suffixes"
- " aux bak dvi log orig reg toc."
- (string-match "((\"a\" \.
+ (should (progn (message "%s(): Expecting a catalog with entries with the
suffixes" test-name)
+ (message "%s(): aux bak dvi log orig reg toc." test-name)
+ (string-match "((\"a\" \.
\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
\\s-+([[:digit:]]+ [[:digit:]]+)
\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
@@ -14594,31 +16021,31 @@ D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
\\s-+#<marker at 2078 in alphabet_small.odc.cpio> #<marker at 2161 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified]))
" cpio-catalog-contents-after)))
- (cdmt-odc-test-save)))
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-odc-cpio-dired-goto-entry ()
"Test cpio-dired-goto-entry.
cpio-dired-goto-entry is not yet implemented -- expect an error."
(should-error (cpio-dired-goto-entry)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-hide-all ()
"Test cpio-dired-hide-all.
cpio-dired-hide-all is not yet implemented -- expect an error."
(should-error (cpio-dired-hide-all)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-hide-details-mode ()
"Test cpio-dired-hide-details-mode) ;✓ Implemented by analogue to dired, but
does nothing.
cpio-dired-hide-details-mode) ;✓ Implemented by analogue to dired, but does
nothing is not yet implemented -- expect an error."
(should-error (cpio-dired-hide-details-mode) ;✓ Implemented by analogue to
dired, but does nothing)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-hide-subdir ()
"Test cpio-dired-hide-subdir) ;.
cpio-dired-hide-subdir) ; is not yet implemented -- expect an error."
(should-error (cpio-dired-hide-subdir)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-mark () ;✓
"Test the function of M-x cpio-dired-mark."
@@ -14629,7 +16056,7 @@ cpio-dired-hide-subdir) ; is not yet implemented --
expect an error."
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-odc-reset 'make)
+ (cdmt-reset 'make)
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-mark 1)
@@ -14641,11 +16068,11 @@ cpio-dired-hide-subdir) ; is not yet implemented --
expect an error."
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expect an untouched archive. (18068)"
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a cpio-dired buffer with the first entry marked."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+
+ (should (progn (message "%s(): Expect an untouched archive. (18068)"
test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting a cpio-dired buffer with the
first entry marked." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -14666,8 +16093,8 @@ cpio-dired-hide-subdir) ; is not yet implemented --
expect an error."
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (18042)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (18042)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(dired-next-line 2)
@@ -14682,8 +16109,8 @@ cpio-dired-hide-subdir) ; is not yet implemented --
expect an error."
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
(should (string-equal cpio-archive-buffer-contents
*cdmt-odc-untouched-small-archive*))
- (should (and "Expecing a cpio-dired buffer with 4 more entries marked."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): Expecing a cpio-dired buffer with 4 more
entries marked." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -14704,20 +16131,20 @@ cpio-dired-hide-subdir) ; is not yet implemented --
expect an error."
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (18043)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (18043)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-odc-cpio-dired-mark-directories ()
"Test cpio-dired-mark-directories.
cpio-dired-mark-directories is not yet implemented -- expect an error."
(should-error (cpio-dired-mark-directories)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-mark-entries-containing-regexp ()
"Test cpio-dired-mark-entries-containing-regexp.
cpio-dired-mark-entries-containing-regexp is not yet implemented -- expect an
error."
(should-error (cpio-dired-mark-entries-containing-regexp)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-mark-entries-regexp () ;✓
(let ((test-name "cdmt-odc-cpio-dired-mark-entries-regexp")
@@ -14727,7 +16154,7 @@ cpio-dired-mark-entries-containing-regexp is not yet
implemented -- expect an er
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-odc-reset)
+ (cdmt-reset)
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-mark-entries-regexp "\\`...\\'")
@@ -14740,10 +16167,10 @@ cpio-dired-mark-entries-containing-regexp is not yet
implemented -- expect an er
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "Expect an untouched archive. (18069)"
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a cpio-dired buffer with ... marked."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): Expect an untouched archive. (18069)"
test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting a cpio-dired buffer with ...
marked." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -14764,32 +16191,32 @@ cpio-dired-mark-entries-containing-regexp is not yet
implemented -- expect an er
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (18044)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (18044)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-odc-cpio-dired-mark-executables ()
"Test cpio-dired-mark-executables.
cpio-dired-mark-executables is not yet implemented -- expect an error."
(should-error (cpio-dired-mark-executables)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-mark-subdir-entries ()
"Test cpio-dired-mark-subdir-entries.
cpio-dired-mark-subdir-entries is not yet implemented -- expect an error."
(should-error (cpio-dired-mark-subdir-entries)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-mark-symlinks ()
"Test cpio-dired-mark-symlinks.
cpio-dired-mark-symlinks is not yet implemented -- expect an error."
(should-error (cpio-dired-mark-symlinks)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-mouse-find-entry-other-window ()
"Test cpio-dired-mouse-find-entry-other-window.
cpio-dired-mouse-find-entry-other-window is not yet implemented -- expect an
error."
(should-error (cpio-dired-mouse-find-entry-other-window)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-next-dirline () ;✓
"Test the function of M-x cpio-dired-next-dirline."
@@ -14801,7 +16228,7 @@ cpio-dired-mouse-find-entry-other-window is not yet
implemented -- expect an err
(cpio-catalog-contents-before)
(cpio-catalog-contents-after)
(entry-name))
- (cdmt-odc-reset 'make 'large)
+ (cdmt-reset 'make 'large)
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-next-dirline 1)
@@ -14815,14 +16242,14 @@ cpio-dired-mouse-find-entry-other-window is not yet
implemented -- expect an err
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "The current entry should be aaaaa.d"
- (string-equal "aaaaa.d" entry-name)))
- (should (and "Expecting an untouched large archive buffer."
- (string-equal *cdmt-odc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
- (should (and "The dired style buffer should be untouched."
- (string-match *cdmt-odc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog."
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+ (should (progn (message "%s(): The current entry should be aaaaa.d"
test-name)
+ (string-equal "aaaaa.d" entry-name)))
+ (should (progn (message "%s(): Expecting an untouched large archive
buffer." test-name)
+ (string-equal *cdmt-odc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): The dired style buffer should be
untouched." test-name)
+ (string-match *cdmt-odc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "%s(): Expecting an unchanged catalog." test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-next-dirline 2)
@@ -14835,15 +16262,15 @@ cpio-dired-mouse-find-entry-other-window is not yet
implemented -- expect an err
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "The current entry should be ccccc.d"
- (string-equal "ccccc.d" entry-name)))
- (should (and "The archive buffer should be untouched. (1)"
- (string-equal *cdmt-odc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
- (should (and "The dired style buffer should be untouched. (1)"
- (string-match *cdmt-odc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog."
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (should (progn (message "%s(): The current entry should be ccccc.d"
test-name)
+ (string-equal "ccccc.d" entry-name)))
+ (should (progn (message "%s(): The archive buffer should be untouched.
(1)" test-name)
+ (string-equal *cdmt-odc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): The dired style buffer should be untouched.
(1)" test-name)
+ (string-match *cdmt-odc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "%s(): Expecting an unchanged catalog." test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-next-dirline 4)
@@ -14856,15 +16283,15 @@ cpio-dired-mouse-find-entry-other-window is not yet
implemented -- expect an err
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "The current entry should be ggggg.d"
- (string-equal "ggggg.d" entry-name)))
- (should (and "The archive buffer should be untouched. (2)"
- (string-equal *cdmt-odc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
- (should (and "The dired style buffer shouold be untouched (2)"
- (string-match *cdmt-odc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog."
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (should (progn (message "%s(): The current entry should be ggggg.d"
test-name)
+ (string-equal "ggggg.d" entry-name)))
+ (should (progn (message "%s(): The archive buffer should be untouched.
(2)" test-name)
+ (string-equal *cdmt-odc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): The dired style buffer shouold be untouched
(2)" test-name)
+ (string-match *cdmt-odc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "%s(): Expecting an unchanged catalog." test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-next-dirline 8)
@@ -14877,15 +16304,15 @@ cpio-dired-mouse-find-entry-other-window is not yet
implemented -- expect an err
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "The current entry should be ooooo.d."
- (string-equal "ooooo.d" entry-name)))
- (should (and "The archive buffer should be untouched. (3)"
- (string-equal *cdmt-odc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
- (should (and "The dired style buffer should be untouched. (3)"
- (string-match *cdmt-odc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog."
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (should (progn (message "%s(): The current entry should be ooooo.d."
test-name)
+ (string-equal "ooooo.d" entry-name)))
+ (should (progn (message "%s(): The archive buffer should be untouched.
(3)" test-name)
+ (string-equal *cdmt-odc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): The dired style buffer should be untouched.
(3)" test-name)
+ (string-match *cdmt-odc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "%s(): Expecting an unchanged catalog." test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-next-dirline 16)
@@ -14898,15 +16325,15 @@ cpio-dired-mouse-find-entry-other-window is not yet
implemented -- expect an err
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "The current entry should be zzzzz.d."
- (string-equal "zzzzz.d" entry-name)))
- (should (and "The archive buffer should be untouched. (4)"
- (string-equal *cdmt-odc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
- (should (and "The dired style buffer should be untouched. (4)"
- (string-match *cdmt-odc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog."
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (should (progn (message "%s(): The current entry should be zzzzz.d."
test-name)
+ (string-equal "zzzzz.d" entry-name)))
+ (should (progn (message "%s(): The archive buffer should be untouched.
(4)" test-name)
+ (string-equal *cdmt-odc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): The dired style buffer should be untouched.
(4)" test-name)
+ (string-match *cdmt-odc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "%s(): Expecting an unchanged catalog." test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-next-dirline 1)
@@ -14919,15 +16346,15 @@ cpio-dired-mouse-find-entry-other-window is not yet
implemented -- expect an err
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "The current entry should still be zzzzz.d."
- (string-equal "zzzzz.d" entry-name)))
- (should (and "The archive buffer should be untouched. (5)"
- (string-equal *cdmt-odc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
- (should (and "The dired style buffer should be untouched. (5)"
- (string-match *cdmt-odc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog."
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+
+ (should (progn (message "%s(): The current entry should still be zzzzz.d."
test-name)
+ (string-equal "zzzzz.d" entry-name)))
+ (should (progn (message "%s(): The archive buffer should be untouched.
(5)" test-name)
+ (string-equal *cdmt-odc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): The dired style buffer should be untouched.
(5)" test-name)
+ (string-match *cdmt-odc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "%s(): Expecting an unchanged catalog." test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-odc-cpio-dired-next-line () ;✓
"Test the function of M-x cpio-dired-next-line."
@@ -14939,7 +16366,7 @@ cpio-dired-mouse-find-entry-other-window is not yet
implemented -- expect an err
(cpio-catalog-contents-before)
(cpio-catalog-contents-after)
(entry-name))
- (cdmt-odc-reset 'make)
+ (cdmt-reset 'make)
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(setq entry-name (cpio-dired-get-entry-name))
@@ -14951,13 +16378,13 @@ cpio-dired-mouse-find-entry-other-window is not yet
implemented -- expect an err
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
+
(should (string-equal "a" entry-name))
(should (string-match *cdmt-odc-untouched-small-dired-buffer*
cpio-dired-buffer-contents))
- (should (and "Expect an untouched archive. (18070)"
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (18045)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+ (should (progn (message "%s(): Expect an untouched archive. (18070)"
test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (18045)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-next-line 2)
@@ -14973,8 +16400,8 @@ cpio-dired-mouse-find-entry-other-window is not yet
implemented -- expect an err
(should (string-equal "aaa" entry-name))
(should (string-match *cdmt-odc-untouched-small-dired-buffer*
cpio-dired-buffer-contents))
- (should (and "Expect an untouched archive. (18071)"
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expect an untouched archive. (18071)"
test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-next-line 4)
@@ -14990,10 +16417,10 @@ cpio-dired-mouse-find-entry-other-window is not yet
implemented -- expect an err
(should (string-equal "b" entry-name))
(should (string-match *cdmt-odc-untouched-small-dired-buffer*
cpio-dired-buffer-contents))
- (should (and "Expect an untouched archive. (18072)"
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (18046)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+ (should (progn (message "%s(): Expect an untouched archive. (18072)"
test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (18046)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-next-line 100)
@@ -15009,44 +16436,44 @@ cpio-dired-mouse-find-entry-other-window is not yet
implemented -- expect an err
(should (equal nil entry-name))
(should (string-match *cdmt-odc-untouched-small-dired-buffer*
cpio-dired-buffer-contents))
- (should (and "Expect an untouched archive. (18073)"
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (18047)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+ (should (progn (message "%s(): Expect an untouched archive. (18073)"
test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (18047)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-odc-cpio-dired-next-marked-entry ()
"Test cpio-dired-next-marked-entry.
cpio-dired-next-marked-entry is not yet implemented -- expect an error."
(should-error (cpio-dired-next-marked-entry)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-next-marked-entry ()
"Test cpio-dired-next-marked-entry.
cpio-dired-next-marked-entry is not yet implemented -- expect an error."
(should-error (cpio-dired-next-marked-entry)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-next-subdir ()
"Test the function of M-x cpio-next-subdir."
(should-error (cpio-dired-next-marked-entry)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-prev-marked-entry ()
"Test cpio-dired-prev-marked-entry.
cpio-dired-prev-marked-entry is not yet implemented -- expect an error."
(should-error (cpio-dired-prev-marked-entry)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-prev-marked-entry ()
"Test cpio-dired-prev-marked-entry.
cpio-dired-prev-marked-entry is not yet implemented -- expect an error."
(should-error (cpio-dired-prev-marked-entry)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-prev-subdir ()
"Test the function of M-x cpio-dired-prev-subdir."
(should-error (cpio-dired-previous-line)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-previous-line () ;✓
(let ((test-name "cdmt-odc-cpio-dired-previous-line")
@@ -15057,7 +16484,7 @@ cpio-dired-prev-marked-entry is not yet implemented --
expect an error."
(cpio-catalog-contents-before)
(cpio-catalog-contents-after)
(where))
- (cdmt-odc-reset)
+ (cdmt-reset)
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(goto-char (point-max))
@@ -15075,8 +16502,8 @@ cpio-dired-prev-marked-entry is not yet implemented --
expect an error."
(should (= where 1155))
(should (string-match *cdmt-odc-small-archive*
cpio-archive-buffer-contents))
(should (string-match *cdmt-odc-untouched-small-dired-buffer*
cpio-dired-buffer-contents))
- (should (and "Expecting an unchanged catalog. (18048)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (18048)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-previous-line 2)
@@ -15093,8 +16520,8 @@ cpio-dired-prev-marked-entry is not yet implemented --
expect an error."
(should (= where 1019))
(should (string-match *cdmt-odc-small-archive*
cpio-archive-buffer-contents))
(should (string-match *cdmt-odc-untouched-small-dired-buffer*
cpio-dired-buffer-contents))
- (should (and "Expecting an unchanged catalog. (18049)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (18049)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-previous-line 4)
@@ -15111,32 +16538,32 @@ cpio-dired-prev-marked-entry is not yet implemented
-- expect an error."
(should (= where 774))
(should (string-match *cdmt-odc-small-archive*
cpio-archive-buffer-contents))
(should (string-match *cdmt-odc-untouched-small-dired-buffer*
cpio-dired-buffer-contents))
- (should (and "Expecting an unchanged catalog. (18050)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (18050)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-odc-cpio-dired-previous-line ()
"Test cpio-dired-previous-line.
cpio-dired-previous-line is not yet implemented -- expect an error."
(should-error (cpio-dired-previous-line)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-previous-line ()
"Test cpio-dired-previous-line.
cpio-dired-previous-line is not yet implemented -- expect an error."
(should-error (cpio-dired-previous-line)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-show-entry-type ()
"Test cpio-dired-show-entry-type.
cpio-dired-show-entry-type is not yet implemented -- expect an error."
(should-error (cpio-dired-show-entry-type)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-sort-toggle-or-edit ()
"Test cpio-dired-sort-toggle-or-edit.
cpio-dired-sort-toggle-or-edit is not yet implemented -- expect an error."
(should-error (cpio-dired-sort-toggle-or-edit)
- :type 'error))
+ :type 'error))
;; I'm not sure how to test this.
;; (ert-deftest cdmt-odc-cpio-dired-summary () ;✓
@@ -15161,31 +16588,31 @@ cpio-dired-sort-toggle-or-edit is not yet implemented
-- expect an error."
"Test cpio-dired-toggle-marks.
cpio-dired-toggle-marks is not yet implemented -- expect an error."
(should-error (cpio-dired-toggle-marks)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-toggle-marks ()
"Test cpio-dired-toggle-marks.
cpio-dired-toggle-marks is not yet implemented -- expect an error."
(should-error (cpio-dired-toggle-marks)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-toggle-read-only ()
"Test cpio-dired-toggle-read-only.
cpio-dired-toggle-read-only is not yet implemented -- expect an error."
(should-error (cpio-dired-toggle-read-only)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-toggle-read-only ()
"Test cpio-dired-toggle-read-only.
cpio-dired-toggle-read-only is not yet implemented -- expect an error."
(should-error (cpio-dired-toggle-read-only)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-undo ()
"Test cpio-dired-undo.
cpio-dired-undo is not yet implemented -- expect an error."
(should-error (cpio-dired-undo)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-unmark () ;✓
"Test the function of M-x cpio-dired-unmark."
@@ -15196,7 +16623,7 @@ cpio-dired-undo is not yet implemented -- expect an
error."
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-odc-reset 'make)
+ (cdmt-reset 'make)
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-mark-entries-regexp ".")
@@ -15209,11 +16636,11 @@ cpio-dired-undo is not yet implemented -- expect an
error."
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting an untouched small archive."
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a dired-style buffer with every entry except the
first marked."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+
+ (should (progn (message "%s(): Expecting an untouched small archive."
test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting a dired-style buffer with every
entry except the first marked." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15234,8 +16661,8 @@ cpio-dired-undo is not yet implemented -- expect an
error."
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
\\* drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (18051)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (18051)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-next-line 2)
@@ -15248,11 +16675,11 @@ cpio-dired-undo is not yet implemented -- expect an
error."
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting an untouched small archive."
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecing a dired bugger with all but two entries marked."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+
+ (should (progn (message "%s(): Expecting an untouched small archive."
test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecing a dired bugger with all but two
entries marked." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15273,8 +16700,8 @@ cpio-dired-undo is not yet implemented -- expect an
error."
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
\\* drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (18052)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (18052)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(dired-next-line 4)
@@ -15288,10 +16715,10 @@ cpio-dired-undo is not yet implemented -- expect an
error."
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "Expecting an untouched small archive."
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a dired-style buffer with another 4 entries
unmarked."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): Expecting an untouched small archive."
test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting a dired-style buffer with another
4 entries unmarked." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15312,8 +16739,8 @@ cpio-dired-undo is not yet implemented -- expect an
error."
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
\\* drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (18053)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (18053)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(dired-next-line 4)
@@ -15327,10 +16754,10 @@ cpio-dired-undo is not yet implemented -- expect an
error."
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "Expecting an untouched archive."
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a dired-style buffer with yet the last entry
unmarked."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): Expecting an untouched archive." test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting a dired-style buffer with yet the
last entry unmarked." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15351,8 +16778,8 @@ cpio-dired-undo is not yet implemented -- expect an
error."
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (18054)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (18054)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-odc-cpio-dired-unmark-all-entries ()
"Test cpio-dired-unmark-all-entries."
@@ -15363,7 +16790,7 @@ cpio-dired-undo is not yet implemented -- expect an
error."
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-odc-reset 'make)
+ (cdmt-reset 'make)
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-mark-entries-regexp ".")
@@ -15383,10 +16810,10 @@ cpio-dired-undo is not yet implemented -- expect an
error."
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "Expecting an unchanged archive buffer."
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a variety of marks in a dired-style buffer."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): Expecting an unchanged archive buffer."
test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting a variety of marks in a
dired-style buffer." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15407,8 +16834,8 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
\\* drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (18055)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (18055)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-unmark-all-entries "" nil)
@@ -15421,10 +16848,10 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "Expecting an unchanged archive buffer."
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a dired-style buffer with no marks."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): Expecting an unchanged archive buffer."
test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting a dired-style buffer with no
marks." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15445,8 +16872,8 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (18056)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (18056)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-mark-entries-regexp ".")
@@ -15466,10 +16893,10 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "Expecting an unchanged archive buffer."
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a variety of marks in a dired-style buffer."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): Expecting an unchanged archive buffer."
test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting a variety of marks in a
dired-style buffer." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15490,9 +16917,9 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
\\* drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
-
- (should (and "Expecting an unchanged catalog. (18057)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (should (progn (message "%s(): Expecting an unchanged catalog. (18057)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-unmark-all-entries "B" nil)
@@ -15505,10 +16932,10 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "Expecting an unchanged archive buffer."
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a dired-style buffer with no B marks."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): Expecting an unchanged archive buffer."
test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting a dired-style buffer with no B
marks." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15530,8 +16957,8 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
\\* drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (18058)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (18058)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-unmark-all-entries "F" nil)
@@ -15544,10 +16971,10 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "Expecting an unchanged archive buffer."
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a dired-style buffer with neither B nor F marks."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): Expecting an unchanged archive buffer."
test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting a dired-style buffer with neither
B nor F marks." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15568,8 +16995,8 @@ E -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|de
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
\\* drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (18059)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (18059)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-odc-cpio-dired-unmark-all-marks ()
"Test cpio-dired-unmark-all-marks."
@@ -15580,7 +17007,7 @@ E -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|de
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-odc-reset 'make)
+ (cdmt-reset 'make)
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-mark-entries-regexp ".")
@@ -15600,10 +17027,10 @@ E -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|de
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "Expecting an unchanged archive buffer."
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a variety of marks in a dired-style buffer."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): Expecting an unchanged archive buffer."
test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting a variety of marks in a
dired-style buffer." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15624,9 +17051,9 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
\\* drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (18060)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
-
+ (should (progn (message "%s(): Expecting an unchanged catalog. (18060)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-unmark-all-marks)
(setq cpio-archive-buffer-contents
@@ -15638,10 +17065,10 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "Expecting an unchanged archive buffer."
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a dired-style buffer with no marks."
- (string-match "CPIO archive: alphabet_small.odc.cpio:
+ (should (progn (message "%s(): Expecting an unchanged archive buffer."
test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expecting a dired-style buffer with no
marks." test-name)
+ (string-match "CPIO archive: alphabet_small.odc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15662,8 +17089,8 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (18061)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (18061)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-odc-cpio-dired-unmark-all-marks () ;✓
"Test the function of M-x cpio-unmark-all-marks."
@@ -15675,7 +17102,7 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-odc-reset 'make)
+ (cdmt-reset 'make)
(progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
(cpio-dired-mark 2)
@@ -15696,35 +17123,35 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "Expect an untouched archive. (18074)"
- (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "%s(): Expect an untouched archive. (18074)"
test-name)
+ (string-equal *cdmt-odc-untouched-small-archive*
cpio-archive-buffer-contents)))
(should (string-match *cdmt-odc-untouched-small-dired-buffer*
cpio-dired-buffer-contents))
- (should (and "Expecting an unchanged catalog. (18062)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+ (should (progn (message "%s(): Expecting an unchanged catalog. (18062)"
test-name)
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-odc-cpio-dired-unmark-backward ()
"Test cpio-dired-unmark-backward.
cpio-dired-unmark-backward is not yet implemented -- expect an error."
(should-error (cpio-dired-unmark-backward)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-unmark-backward ()
"Test cpio-dired-unmark-backward.
cpio-dired-unmark-backward is not yet implemented -- expect an error."
(should-error (cpio-dired-unmark-backward)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-up-directory ()
"Test cpio-dired-up-directory.
cpio-dired-up-directory is not yet implemented -- expect an error."
(should-error (cpio-dired-up-directory)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-upcase ()
"Test cpio-dired-upcase.
cpio-dired-upcase is not yet implemented -- expect an error."
(should-error (cpio-dired-upcase)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-view-archive () ;✓
"Test the function of M-x cpio-view-archive."
@@ -15737,14 +17164,14 @@ cpio-dired-upcase is not yet implemented -- expect an
error."
(cpio-catalog-contents-after)
(cpio-archive-window)
(cpio-dired-window))
- (cdmt-odc-reset 'make)
+ (cdmt-reset 'make)
(setq cpio-dired-window (get-buffer-window (get-buffer cpio-dired-buffer)))
(should (window-live-p cpio-dired-window))
(setq cpio-archive-window (get-buffer-window (get-buffer
cpio-archive-buffer)))
;; (should (not (window-live-p cpio-dired-window)))
(should (eq nil cpio-archive-window))
-
+
(cpio-dired-view-archive)
(setq cpio-dired-window (get-buffer-window (get-buffer cpio-dired-buffer)))
@@ -15765,61 +17192,61 @@ cpio-dired-upcase is not yet implemented -- expect an
error."
"Test cpio-dired-view-entry.
cpio-dired-view-entry is not yet implemented -- expect an error."
(should-error (cpio-dired-view-entry)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-epa-dired-do-decrypt ()
"Test cpio-epa-dired-do-decrypt.
cpio-epa-dired-do-decrypt is not yet implemented -- expect an error."
(should-error (cpio-epa-dired-do-decrypt)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-epa-dired-do-encrypt ()
"Test cpio-epa-dired-do-encrypt.
cpio-epa-dired-do-encrypt is not yet implemented -- expect an error."
(should-error (cpio-epa-dired-do-encrypt)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-epa-dired-do-sign ()
"Test cpio-epa-dired-do-sign.
cpio-epa-dired-do-sign is not yet implemented -- expect an error."
(should-error (cpio-epa-dired-do-sign)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-epa-dired-do-verify ()
"Test cpio-epa-dired-do-verify.
cpio-epa-dired-do-verify is not yet implemented -- expect an error."
(should-error (cpio-epa-dired-do-verify)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-image-dired-delete-tag ()
"Test cpio-image-dired-delete-tag.
cpio-image-dired-delete-tag is not yet implemented -- expect an error."
(should-error (cpio-image-dired-delete-tag)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-image-dired-dired-comment-entries ()
"Test cpio-image-dired-dired-comment-entries.
cpio-image-dired-dired-comment-entries is not yet implemented -- expect an
error."
(should-error (cpio-image-dired-dired-comment-entries)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-image-dired-dired-display-external ()
"Test cpio-image-dired-dired-display-external.
cpio-image-dired-dired-display-external is not yet implemented -- expect an
error."
(should-error (cpio-image-dired-dired-display-external)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-image-dired-dired-display-image ()
"Test cpio-image-dired-dired-display-image.
cpio-image-dired-dired-display-image is not yet implemented -- expect an
error."
(should-error (cpio-image-dired-dired-display-image)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-image-dired-dired-edit-comment-and-tags ()
"Test cpio-image-dired-dired-edit-comment-and-tags.
cpio-image-dired-dired-edit-comment-and-tags is not yet implemented -- expect
an error."
(should-error (cpio-image-dired-dired-edit-comment-and-tags)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-image-dired-dired-toggle-marked-thumbs ()
"Test cpio-image-dired-dired-toggle-marked-thumbs.
@@ -15863,12 +17290,38 @@ cpio-image-dired-tag-entries is not yet implemented
-- expect an error."
(should-error (cpio-image-dired-tag-entries)
:type 'error))
+;;;;;;;; (ert-deftest cdmt-odc-cpio-quit-window () ;✓
+;;;;;;;; "Test cpio-quit-window.
+;;;;;;;; cpio-quit-window is not yet implemented -- expect an error."
+;;;;;;;; (let ((test-name "cdmt-odc-cpio-dired-quit-window")
+;;;;;;;; (cpio-archive-buffer)
+;;;;;;;; (cpio-archive-buffer-contents)
+;;;;;;;; (cpio-dired-buffer)
+;;;;;;;; (cpio-dired-buffer-contents)
+;;;;;;;; (cpio-archive-window)
+;;;;;;;; (cpio-dired-window)
+;;;;;;;; )
+;;;;;;;; (cdmt-reset 'make)
+
+;;;;;;;; (setq cpio-dired-window (get-buffer-window (get-buffer
cpio-dired-buffer)))
+;;;;;;;; (should (window-live-p cpio-dired-window))
+;;;;;;;; (setq cpio-archive-window (get-buffer-window (get-buffer
cpio-archive-buffer)))
+;;;;;;;; ;; (should (not (window-live-p cpio-dired-window)))
+;;;;;;;; (should (eq nil cpio-archive-window))
+
+;;;;;;;; This causes an error under ERT.
+;;;;;;;; (cpio-quit-window)
+
+;;;;;;;; (setq cpio-dired-window (get-buffer-window (get-buffer
cpio-dired-buffer)))
+;;;;;;;; (should (eq nil cpio-dired-window))
+;;;;;;;; (setq cpio-archive-window (get-buffer-window (get-buffer
cpio-archive-buffer)))
+;;;;;;;; (should (eq nil cpio-archive-window))))
(ert-deftest cdmt-odc-revert-buffer ()
"Test revert-buffer.
revert-buffer is not yet implemented -- expect an error."
(should-error (revert-buffer)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-odc-cpio-dired-create-directory ()
"Test cpio-dired-create-directory."
@@ -15882,9 +17335,9 @@ revert-buffer is not yet implemented -- expect an
error."
(cpio-archive-window)
(cpio-dired-window))
- (cdmt-odc-reset 'make)
+ (cdmt-reset 'make)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-create-directory "newDirectory")
(setq cpio-archive-buffer-contents
(cdmt-odc-filter-archive-contents
@@ -15893,10 +17346,10 @@ revert-buffer is not yet implemented -- expect an
error."
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting a cpio archive with newDirectory, a new directory."
- (string-equal "070707 (( magic ))
+ ;; (should (progn (message "%s(): Expecting a cpio archive with
newDirectory, a new directory." test-name)
+ (should (string-equal "070707 (( magic ))
DEADBE (( ino ))
100644 (( mode ))
001750 (( uid ))
@@ -16227,8 +17680,9 @@ DEADBE (( rdev min ))
000000 (( chksum ))
newDirectory (( filename ))
-" cpio-archive-buffer-contents)))
- (should (and "Expecting a cpio dired buffer with newDirectory, a new
directory."
+" cpio-archive-buffer-contents))
+
+ (should (progn (message "%s(): Expecting a cpio dired buffer with
newDirectory, a new directory." test-name)
(string-match "CPIO archive: alphabet_small.odc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
@@ -16251,105 +17705,106 @@ newDirectory (( filename ))
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
drwxr-xr-x 1 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory
" cpio-dired-buffer-contents)))
- (should (and "Expecting a catalog with a new directory called
»newDirectory«."
- (string-match "((\"newDirectory\" \\.
-\\s-+[[1 16877 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 13 0
\"newDirectory\"]
-\\s-+#<marker at 1543 in alphabet_small.odc.cpio> #<marker at 1632 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"a\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
-\\s-+#<marker at 1 in alphabet_small.odc.cpio> #<marker at 79 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aa\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 83 in alphabet_small.odc.cpio> #<marker at 162 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaa\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 167 in alphabet_small.odc.cpio> #<marker at 247 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaaa\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 253 in alphabet_small.odc.cpio> #<marker at 334 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaaaa\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 341 in alphabet_small.odc.cpio> #<marker at 423 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaaaa\\.d\" \\.
-\\s-+[[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\\.d\"]
-\\s-+#<marker at 431 in alphabet_small.odc.cpio> #<marker at 515 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"b\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 515 in alphabet_small.odc.cpio> #<marker at 593 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bb\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 597 in alphabet_small.odc.cpio> #<marker at 676 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbb\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 681 in alphabet_small.odc.cpio> #<marker at 761 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbbb\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 767 in alphabet_small.odc.cpio> #<marker at 848 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbbbb\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 855 in alphabet_small.odc.cpio> #<marker at 937 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbbbb\\.d\" \\.
-\\s-+[[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\\.d\"]
-\\s-+#<marker at 945 in alphabet_small.odc.cpio> #<marker at 1029 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"c\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1029 in alphabet_small.odc.cpio> #<marker at 1107 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"cc\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1111 in alphabet_small.odc.cpio> #<marker at 1190 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"ccc\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1195 in alphabet_small.odc.cpio> #<marker at 1275 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"cccc\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1281 in alphabet_small.odc.cpio> #<marker at 1362 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"ccccc\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1369 in alphabet_small.odc.cpio> #<marker at 1451 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"ccccc\\.d\" \\.
-\\s-+[[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\\.d\"]
-\\s-+#<marker at 1459 in alphabet_small.odc.cpio> #<marker at 1543 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified]))
+
+ (should (progn (message "%s(): Expecting a catalog with a new directory
called »newDirectory«." test-name)
+ (string-match "((¨newDirectory¨ \\.
+\\s-+»»[[1 16877 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 13 0 ¨newDirectory¨«
+\\s-+#<marker at 1543 in alphabet_small.odc.cpio> #<marker at 1632 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨a¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small.odc.cpio> #<marker at 79 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 83 in alphabet_small.odc.cpio> #<marker at 162 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 167 in alphabet_small.odc.cpio> #<marker at 247 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 253 in alphabet_small.odc.cpio> #<marker at 334 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 341 in alphabet_small.odc.cpio> #<marker at 423 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\\.d¨ \\.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\\.d¨«
+\\s-+#<marker at 431 in alphabet_small.odc.cpio> #<marker at 515 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 515 in alphabet_small.odc.cpio> #<marker at 593 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 597 in alphabet_small.odc.cpio> #<marker at 676 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 681 in alphabet_small.odc.cpio> #<marker at 761 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 767 in alphabet_small.odc.cpio> #<marker at 848 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 855 in alphabet_small.odc.cpio> #<marker at 937 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\\.d¨ \\.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\\.d¨«
+\\s-+#<marker at 945 in alphabet_small.odc.cpio> #<marker at 1029 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1029 in alphabet_small.odc.cpio> #<marker at 1107 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1111 in alphabet_small.odc.cpio> #<marker at 1190 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1195 in alphabet_small.odc.cpio> #<marker at 1275 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1281 in alphabet_small.odc.cpio> #<marker at 1362 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \\.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1369 in alphabet_small.odc.cpio> #<marker at 1451 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\\.d¨ \\.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\\.d¨«
+\\s-+#<marker at 1459 in alphabet_small.odc.cpio> #<marker at 1543 in
alphabet_small.odc.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
-
- (cdmt-odc-test-save)))
+
+ (cdmt-test-save *cdmt-archive-format*)))
;;
@@ -16357,6 +17812,4 @@ newDirectory (( filename ))
;;
(ert "^cdmt-odc-")
-
;;; cpio-dired-test.el ends here.
-
diff --git a/cpio-dired-test.el b/cpio-dired-test.el
index 8a98772..d7665bf 100644
--- a/cpio-dired-test.el
+++ b/cpio-dired-test.el
@@ -1,6 +1,6 @@
;; -*- coding: utf-8 -*-
;;; cpio-dired-test.el --- Tests of cpio-dired-mode.
-; $Id: cpio-dired-test.el,v 1.9 2018/06/17 07:34:12 doug Exp $
+; $Id: cpio-dired-test.el,v 1.10 2018/11/19 21:25:38 doug Exp $
;; COPYRIGHT
@@ -51,21 +51,14 @@
;;
;; Dependencies
;;
-(load (concat default-directory "cpio.el"))
-;; Somehow (cpio-newc-make-mtime) is getting a bad definition,
-;; so make sure we get the right one.
-;; This has only occurrd with byte compiled files,
-;; but somewhat pointed testing has avoided it.
-;; Hmmmmm.
-;;
-;; (with-current-buffer (find-file-noselect "cpio-newc.el")
-;; (widen)
-;; (goto-char (point-min))
-;; (search-forward "(defun cpio-newc-make-mtime (attrs)" (point-max))
-;; (forward-line 1)
-;; (eval-defun nil)
-;; )
+;; HEREHERE Remove the load of test code.
+(load (concat default-directory "test-generic.el"))
+
+(eval-when-compile
+ (if (file-exists-p (concat default-directory "cpio.elc"))
+ (load (concat default-directory "cpio.elc")))
+ (load (concat default-directory "cpio.el")))
;;;;;;;;;;;;;;;;
;; Things to make the byte compiler happy.
@@ -188,6 +181,10 @@
"A large archive used for testing.")
(setq *cdmt-newc-large-archive* "test_data/alphabet/alphabet.newc.cpio")
+(setq *cdmt-small-archive* *cdmt-newc-small-archive*)
+(setq *cdmt-large-archive* *cdmt-newc-large-archive*)
+(setq *cdmt-archive-format* "newc")
+
(defvar *cdmt-newc-untouched-small-archive* "070701 (( magic ))
DEADBEEF (( ino ))
000081A4 (( mode ))
@@ -901,185 +898,186 @@ TRAILER!!! (( filename ))
(defvar *cdmt-newc-untouched-small-catalog* "((\"a\" .
\\s-+[[235538648 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+4 253 0 0 0 2 0 \"a\"]
-\\s-+#<marker at 1 in alphabet_small.newc.cpio> #<marker at 113 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+4 253 0 0 0 2 0 \"a\"«
+\\s-+#<marker at 1 in alphabet_small.newc.cpio> #<marker at 113 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"aa\" .
\\s-+[[235538674 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+5 253 0 0 0 3 0 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small.newc.cpio> #<marker at 233 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+5 253 0 0 0 3 0 \"aa\"«
+\\s-+#<marker at 117 in alphabet_small.newc.cpio> #<marker at 233 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"aaa\" .
\\s-+[[235538688 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+6 253 0 0 0 4 0 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small.newc.cpio> #<marker at 357 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+6 253 0 0 0 4 0 \"aaa\"«
+\\s-+#<marker at 241 in alphabet_small.newc.cpio> #<marker at 357 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"aaaa\" .
\\s-+[[235538691 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+7 253 0 0 0 5 0 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small.newc.cpio> #<marker at 481 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+7 253 0 0 0 5 0 \"aaaa\"«
+\\s-+#<marker at 365 in alphabet_small.newc.cpio> #<marker at 481 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"aaaaa\" .
\\s-+[[235538692 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+8 253 0 0 0 6 0 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small.newc.cpio> #<marker at 605 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+8 253 0 0 0 6 0 \"aaaaa\"«
+\\s-+#<marker at 489 in alphabet_small.newc.cpio> #<marker at 605 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"aaaaa.d\" .
\\s-+[[235538695 16877 1000 1000 2
\\s-+(23268 65535)
-\\s-+0 253 0 0 0 8 0 \"aaaaa.d\"]
-\\s-+#<marker at 613 in alphabet_small.newc.cpio> #<marker at 733 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+0 253 0 0 0 8 0 \"aaaaa.d\"«
+\\s-+#<marker at 613 in alphabet_small.newc.cpio> #<marker at 733 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"b\" .
\\s-+[[235538693 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+4 253 0 0 0 2 0 \"b\"]
-\\s-+#<marker at 733 in alphabet_small.newc.cpio> #<marker at 845 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+4 253 0 0 0 2 0 \"b\"«
+\\s-+#<marker at 733 in alphabet_small.newc.cpio> #<marker at 845 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"bb\" .
\\s-+[[235538694 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+5 253 0 0 0 3 0 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small.newc.cpio> #<marker at 965 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+5 253 0 0 0 3 0 \"bb\"«
+\\s-+#<marker at 849 in alphabet_small.newc.cpio> #<marker at 965 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"bbb\" .
\\s-+[[235538696 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+6 253 0 0 0 4 0 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small.newc.cpio> #<marker at 1089 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+6 253 0 0 0 4 0 \"bbb\"«
+\\s-+#<marker at 973 in alphabet_small.newc.cpio> #<marker at 1089 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"bbbb\" .
\\s-+[[235538697 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+7 253 0 0 0 5 0 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small.newc.cpio> #<marker at 1213 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+7 253 0 0 0 5 0 \"bbbb\"«
+\\s-+#<marker at 1097 in alphabet_small.newc.cpio> #<marker at 1213 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"bbbbb\" .
\\s-+[[235538698 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+8 253 0 0 0 6 0 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small.newc.cpio> #<marker at 1337 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+8 253 0 0 0 6 0 \"bbbbb\"«
+\\s-+#<marker at 1221 in alphabet_small.newc.cpio> #<marker at 1337 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"bbbbb.d\" .
\\s-+[[235538701 16877 1000 1000 2
\\s-+(23268 65535)
-\\s-+0 253 0 0 0 8 0 \"bbbbb.d\"]
-\\s-+#<marker at 1345 in alphabet_small.newc.cpio> #<marker at 1465 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+0 253 0 0 0 8 0 \"bbbbb.d\"«
+\\s-+#<marker at 1345 in alphabet_small.newc.cpio> #<marker at 1465 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"c\" .
\\s-+[[235538699 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+4 253 0 0 0 2 0 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small.newc.cpio> #<marker at 1577 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+4 253 0 0 0 2 0 \"c\"«
+\\s-+#<marker at 1465 in alphabet_small.newc.cpio> #<marker at 1577 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"cc\" .
\\s-+[[235538700 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+5 253 0 0 0 3 0 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small.newc.cpio> #<marker at 1697 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+5 253 0 0 0 3 0 \"cc\"«
+\\s-+#<marker at 1581 in alphabet_small.newc.cpio> #<marker at 1697 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"ccc\" .
\\s-+[[235538702 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+6 253 0 0 0 4 0 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small.newc.cpio> #<marker at 1821 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+6 253 0 0 0 4 0 \"ccc\"«
+\\s-+#<marker at 1705 in alphabet_small.newc.cpio> #<marker at 1821 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"cccc\" .
\\s-+[[235538703 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+7 253 0 0 0 5 0 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small.newc.cpio> #<marker at 1945 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+7 253 0 0 0 5 0 \"cccc\"«
+\\s-+#<marker at 1829 in alphabet_small.newc.cpio> #<marker at 1945 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"ccccc\" .
\\s-+[[235538704 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+8 253 0 0 0 6 0 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small.newc.cpio> #<marker at 2069 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+8 253 0 0 0 6 0 \"ccccc\"«
+\\s-+#<marker at 1953 in alphabet_small.newc.cpio> #<marker at 2069 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"ccccc.d\" .
\\s-+[[235538707 16877 1000 1000 2
\\s-+(23268 65535)
-\\s-+0 253 0 0 0 8 0 \"ccccc.d\"]
-\\s-+#<marker at 2077 in alphabet_small.newc.cpio> #<marker at 2197 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified]))
+\\s-+0 253 0 0 0 8 0 \"ccccc.d\"«
+\\s-+#<marker at 2077 in alphabet_small.newc.cpio> #<marker at 2197 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«))
"
"An string representing an untouched catalog.")
+
(setq *cdmt-newc-untouched-small-catalog* "((\"a\" .
\\s-+[[235538648 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+4 253 0 0 0 2 0 \"a\"]
-\\s-+#<marker at 1 in alphabet_small.newc.cpio> #<marker at 113 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+4 253 0 0 0 2 0 \"a\"«
+\\s-+#<marker at 1 in alphabet_small.newc.cpio> #<marker at 113 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"aa\" .
\\s-+[[235538674 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+5 253 0 0 0 3 0 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small.newc.cpio> #<marker at 233 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+5 253 0 0 0 3 0 \"aa\"«
+\\s-+#<marker at 117 in alphabet_small.newc.cpio> #<marker at 233 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"aaa\" .
\\s-+[[235538688 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+6 253 0 0 0 4 0 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small.newc.cpio> #<marker at 357 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+6 253 0 0 0 4 0 \"aaa\"«
+\\s-+#<marker at 241 in alphabet_small.newc.cpio> #<marker at 357 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"aaaa\" .
\\s-+[[235538691 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+7 253 0 0 0 5 0 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small.newc.cpio> #<marker at 481 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+7 253 0 0 0 5 0 \"aaaa\"«
+\\s-+#<marker at 365 in alphabet_small.newc.cpio> #<marker at 481 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"aaaaa\" .
\\s-+[[235538692 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+8 253 0 0 0 6 0 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small.newc.cpio> #<marker at 605 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+8 253 0 0 0 6 0 \"aaaaa\"«
+\\s-+#<marker at 489 in alphabet_small.newc.cpio> #<marker at 605 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"aaaaa.d\" .
\\s-+[[235538695 16877 1000 1000 2
\\s-+(23268 65535)
-\\s-+0 253 0 0 0 8 0 \"aaaaa.d\"]
-\\s-+#<marker at 613 in alphabet_small.newc.cpio> #<marker at 733 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+0 253 0 0 0 8 0 \"aaaaa.d\"«
+\\s-+#<marker at 613 in alphabet_small.newc.cpio> #<marker at 733 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"b\" .
\\s-+[[235538693 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+4 253 0 0 0 2 0 \"b\"]
-\\s-+#<marker at 733 in alphabet_small.newc.cpio> #<marker at 845 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+4 253 0 0 0 2 0 \"b\"«
+\\s-+#<marker at 733 in alphabet_small.newc.cpio> #<marker at 845 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"bb\" .
\\s-+[[235538694 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+5 253 0 0 0 3 0 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small.newc.cpio> #<marker at 965 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+5 253 0 0 0 3 0 \"bb\"«
+\\s-+#<marker at 849 in alphabet_small.newc.cpio> #<marker at 965 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"bbb\" .
\\s-+[[235538696 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+6 253 0 0 0 4 0 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small.newc.cpio> #<marker at 1089 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+6 253 0 0 0 4 0 \"bbb\"«
+\\s-+#<marker at 973 in alphabet_small.newc.cpio> #<marker at 1089 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"bbbb\" .
\\s-+[[235538697 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+7 253 0 0 0 5 0 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small.newc.cpio> #<marker at 1213 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+7 253 0 0 0 5 0 \"bbbb\"«
+\\s-+#<marker at 1097 in alphabet_small.newc.cpio> #<marker at 1213 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"bbbbb\" .
\\s-+[[235538698 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+8 253 0 0 0 6 0 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small.newc.cpio> #<marker at 1337 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+8 253 0 0 0 6 0 \"bbbbb\"«
+\\s-+#<marker at 1221 in alphabet_small.newc.cpio> #<marker at 1337 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"bbbbb.d\" .
\\s-+[[235538701 16877 1000 1000 2
\\s-+(23268 65535)
-\\s-+0 253 0 0 0 8 0 \"bbbbb.d\"]
-\\s-+#<marker at 1345 in alphabet_small.newc.cpio> #<marker at 1465 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+0 253 0 0 0 8 0 \"bbbbb.d\"«
+\\s-+#<marker at 1345 in alphabet_small.newc.cpio> #<marker at 1465 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"c\" .
\\s-+[[235538699 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+4 253 0 0 0 2 0 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small.newc.cpio> #<marker at 1577 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+4 253 0 0 0 2 0 \"c\"«
+\\s-+#<marker at 1465 in alphabet_small.newc.cpio> #<marker at 1577 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"cc\" .
\\s-+[[235538700 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+5 253 0 0 0 3 0 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small.newc.cpio> #<marker at 1697 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+5 253 0 0 0 3 0 \"cc\"«
+\\s-+#<marker at 1581 in alphabet_small.newc.cpio> #<marker at 1697 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"ccc\" .
\\s-+[[235538702 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+6 253 0 0 0 4 0 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small.newc.cpio> #<marker at 1821 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+6 253 0 0 0 4 0 \"ccc\"«
+\\s-+#<marker at 1705 in alphabet_small.newc.cpio> #<marker at 1821 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"cccc\" .
\\s-+[[235538703 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+7 253 0 0 0 5 0 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small.newc.cpio> #<marker at 1945 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+7 253 0 0 0 5 0 \"cccc\"«
+\\s-+#<marker at 1829 in alphabet_small.newc.cpio> #<marker at 1945 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"ccccc\" .
\\s-+[[235538704 33188 1000 1000 1
\\s-+(23281 65535)
-\\s-+8 253 0 0 0 6 0 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small.newc.cpio> #<marker at 2069 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified])
+\\s-+8 253 0 0 0 6 0 \"ccccc\"«
+\\s-+#<marker at 1953 in alphabet_small.newc.cpio> #<marker at 2069 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
(\"ccccc.d\" .
\\s-+[[235538707 16877 1000 1000 2
\\s-+(23268 65535)
-\\s-+0 253 0 0 0 8 0 \"ccccc.d\"]
-\\s-+#<marker at 2077 in alphabet_small.newc.cpio> #<marker at 2197 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified]))
+\\s-+0 253 0 0 0 8 0 \"ccccc.d\"«
+\\s-+#<marker at 2077 in alphabet_small.newc.cpio> #<marker at 2197 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«))
")
(defvar *cdmt-newc-untouched-large-archive-buffer* "070701 (( magic ))
@@ -6655,6 +6653,7 @@ TRAILER!!! (( filename ))
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} lllll.d
.+" ;emacs barfs if it's much longer than
this.
"Contents of an untouched cpio-dired directory for the large cpio archive.")
+
(setq *cdmt-newc-untouched-large-dired-buffer* "CPIO archive:
alphabet.newc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
@@ -6731,424 +6730,26 @@ TRAILER!!! (( filename ))
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} lllll.d
.+
")
+
+(setq *cdmt-small-archive* *cdmt-newc-small-archive*)
+(setq *cdmt-large-archive* *cdmt-newc-large-archive*)
+(setq *cdmt-header-re* *cpio-newc-header-re*)
-
-;;
-;; Library
-;;
+(setq *cpio-magic-re-idx* *cpio-newc-magic-re-idx*)
+(setq *cpio-mode-re-idx* *cpio-newc-mode-re-idx*)
+(setq *cpio-uid-re-idx* *cpio-newc-uid-re-idx*)
+(setq *cpio-gid-re-idx* *cpio-newc-gid-re-idx*)
+(setq *cpio-nlink-re-idx* *cpio-newc-nlink-re-idx*)
+(setq *cpio-mtime-re-idx* *cpio-newc-mtime-re-idx*)
+(setq *cpio-filesize-re-idx* *cpio-newc-filesize-re-idx*)
+(setq *cpio-namesize-re-idx* *cpio-newc-namesize-re-idx*)
+(setq *cpio-chksum-re-idx* *cpio-newc-chksum-re-idx*)
+(setq *cpio-filename-re-idx* *cpio-newc-filename-re-idx*)
+
+(setq *cdmt-archive-format* "newc")
-(shell-command "cd test_data/alphabet ; make newc" nil nil)
-
-(defun cdmt-newc-reset (&optional make large)
- "Reset the current cpio-dired environment.
-If MAKE is non-nil, then run 'make newc' as part of the reset."
- (let ((fname "cdmt-newc-reset")
- (archive-name)
- (archive-names (list *cdmt-newc-small-archive*
- *cdmt-newc-large-archive*)))
- (cd run-dir)
- (mapc (lambda (an)
- (setq cpio-archive-buffer (find-file-noselect an nil nil))
- (if (and (file-exists-p an)
- (buffer-live-p (get-buffer cpio-archive-buffer)))
- (with-current-buffer cpio-archive-buffer
- (revert-buffer nil 'noconfirm))
- (condition-case v
- (kill-buffer cpio-dired-buffer)
- (error (message "%s(): no dired buffer to kill." fname)))))
- archive-names)
-
- (cd run-dir)
-
- (if make
- (shell-command "cd test_data/alphabet ; make newc" nil nil))
-
- (setq archive-name (if large
- *cdmt-newc-large-archive*
- *cdmt-newc-small-archive*))
-
- (delete-other-windows)
- (with-current-buffer (setq cpio-archive-buffer (find-file-noselect
archive-name nil nil))
- (if (string-match "/test_data/.+/test_data/" (buffer-file-name))
- (error "Bogus archive!"))
- (cpio-mode))
- (setq cpio-dired-buffer (switch-to-buffer (cpio-dired-buffer-name
archive-name)))))
-
-(defun cdmt-newc-filter-archive-contents (archive-contents)
- "Make the given ARCHIVE-CONTENTS fully printable and readable."
- (let ((fname "cdmt-newc-filter-archive-contents")
- (char-map (list (cons "\0" "\\0"))))
- (setq archive-contents (cdmt-newc-reformat-newc-headers archive-contents))
- (mapc (lambda (cm)
- (let ((from (car cm))
- (to (cdr cm)))
- (setq archive-contents (cdmt-newc-global-sub from to
archive-contents))))
- char-map)
- archive-contents))
-
-(defun cdmt-newc-reformat-newc-headers (archive-contents)
- "Reformat the cpio newc entry headers in the given ARCHIVE-CONTENTS
-So that they are human readable.
-CAVEATS: \(1\) If ARCHIVE-CONTENTS contains entries that contain entry headers,
-then those will also be reformatted.
-\(2\) The entry names are taken to be a sequence of printable characters.
-So, if NULLs have been converted to printable characters,
-then the entry names will be incorrect."
- (let ((fname "cdmt-newc-reformat-newc-headers"))
- (while (string-match *cpio-newc-header-re* archive-contents)
- (setq archive-contents (concat (substring archive-contents 0
(match-beginning 0))
- (concat (match-string-no-properties
*cpio-newc-magic-re-idx* archive-contents) "\t(( magic ))\n")
- (concat "DEADBEEF"
"\t(( ino ))\n")
- (concat (match-string-no-properties
*cpio-newc-mode-re-idx* archive-contents) "\t(( mode ))\n")
- (concat (match-string-no-properties
*cpio-newc-uid-re-idx* archive-contents) "\t(( uid ))\n")
- (concat (match-string-no-properties
*cpio-newc-gid-re-idx* archive-contents) "\t(( gid ))\n")
- (concat (match-string-no-properties
*cpio-newc-nlink-re-idx* archive-contents) "\t(( nlink ))\n")
- ;; Note that the mod time can change.
- (concat "DEADBEEF"
"\t(( mtime ))\n")
- (concat (match-string-no-properties
*cpio-newc-filesize-re-idx* archive-contents) "\t(( filesize ))\n")
- (concat "DEADBEEF"
"\t(( dev maj ))\n")
- (concat "DEADBEEF"
"\t(( dev min ))\n")
- (concat "DEADBEEF"
"\t(( rdev maj ))\n")
- (concat "DEADBEEF"
"\t(( rdev min ))\n")
- (concat (match-string-no-properties
*cpio-newc-namesize-re-idx* archive-contents) "\t(( namesize ))\n")
- (concat (match-string-no-properties
*cpio-newc-chksum-re-idx* archive-contents) "\t(( chksum ))\n")
- (concat (match-string-no-properties
*cpio-newc-filename-re-idx* archive-contents) "\t(( filename ))\n")
- (substring archive-contents (match-end
0)))))
- (concat archive-contents "\n")))
-
-(defun cdmt-newc-global-sub (from-str to-str string)
- "Globally substitute TO-STR for FROM-STR in STRING and return the new string.
-In principal, FROM-STR can be a regular expression."
- (let ((fname "cdmt-newc-global-sub"))
- (while (string-match from-str string)
- (setq string (replace-match to-str nil t string 0)))
- string))
-
-;;
-;; Commands
-;;
-;;
-;; The contents of these tests were generated
-;; from the dired-mode-map definition
-;; (where commands are tagged as done).
-;; A few keyboard macros modified those results.
-;; The following commands were used to create the skeletons below
-
-(defun cdmt-newc-unfinished-command ()
- "Create a stub test for the next unfinished command."
- (interactive)
- (let ((fname "cdmt-newc-unfinished-command")
- (test-declaration-string "cdmt-newc-")
- (defined-command-regexp ".+) ;✓$")
- (command-name)
- (where))
- (cond ((catch 'found-it
- (while (search-forward test-declaration-string (point-max) t)
- (setq where (match-end 0))
- (unless (looking-at-p defined-command-regexp)
- (setq command-name (buffer-substring-no-properties where (1-
(line-end-position))))
- (throw 'found-it t)))
- nil)
- (goto-char (1- (line-end-position)))
- (delete-char 1)
- (insert " ()\n")
- (insert (format " \"Test %s.\n" command-name))
- (insert (format "%s is not yet implemented -- expect an error.\"\n"
command-name))
- (insert (format " (should-error (%s)\n" command-name))
- (insert " :type 'error))\n")
- t)
- (t nil))))
-
-(defun cdmt-newc-all-unfinished-commands ()
- "Write stub tests for all unfinished commands following point."
- (interactive)
- (let ((fname "cdmt-newc-all-unfinished-commands"))
- (while (cdmt-newc-unfinished-command))))
-
-(defun cdmt-newc-finished-command ()
- "Write a stub test for a finished command."
- (interactive)
- (let ((fname "cdmt-newc-finished-command")
- (finished-command-regexp ") ;✓$")
- (command-name)
- (where))
- (cond ((re-search-forward finished-command-regexp (point-max) t)
- (beginning-of-line)
- (re-search-forward "cdmt-newc-" (line-end-position))
- (setq where (match-end 0))
- (end-of-line)
- (backward-char 4)
- (setq command-name (buffer-substring-no-properties where (point)))
-
- (insert " (")
- (end-of-line)
- (insert "\n")
- (insert (format " \"Test the function M-x cpio-%s.\"\n"
command-name))
- (insert " (shell-command \"cd test_data/alphabet ; make
newc\" nil nil)\n")
- (insert (format " (let ((test-name \"cdmt-newc-%s\")\n"
command-name))
- (insert " (cpio-archive-buffer)\n")
- (insert " (cpio-archive-buffer-contents)\n")
- (insert " (cpio-dired-buffer)\n")
- (insert " (cpio-dired-buffer-contents)\n")
- (insert " )\n")
- (insert " (cdmt-newc-reset)\n")
- (insert "\n")
- (insert (format " (%s)\n" command-name))
- (insert "PREPARATION\n")
- (insert "\n")
- (insert " (setq cpio-archive-buffer-contents\n")
- (insert " (cdmt-newc-filter-archive-contents\n")
- (insert " (with-current-buffer
cpio-archive-buffer\n")
- (insert " (buffer-substring-no-properties
(point-min) (point-max))))\n")
- (insert " (should (string-match \"\"
cpio-archive-buffer-contents))\n")
- (insert " (setq cpio-dired-buffer-contents\n")
- (insert " (with-current-buffer cpio-dired-buffer\n")
- (insert " (buffer-substring-no-properties
(point-min) (point-max))))\n")
- (insert " (should (string-equal
cpio-dired-buffer-contents \"\"))\n")
- (insert "\n")
- (insert " (kill-buffer cpio-dired-buffer) ; This should
kill the archive buffer too.\n")
- (insert " ))\n")
- t)
- (t nil))))
-
-(defun cdmt-newc-all-finished-commands ()
- "Build stub tests for all the finished commands."
- (interactive)
- (let ((fname "cdmt-newc-all-finished-commands"))
- (while (cdmt-newc-finished-command))))
-
-(defun cdmt-newc-ediff-results ()
- "Compare the results of a (string-match) on the current line in a buffer of
ERT results.
-The results are always presented as (string-match EXPECTED-RE ACTUAL) on that
line."
- (interactive)
- (let ((fname "cdmt-newc-ediff-results")
- (expected)
- (actual)
- (start))
- (beginning-of-line)
- (re-search-forward "string-\\(match\\|equal\\) " (line-end-position))
-
- (setq start (1+ (point)))
- (forward-sexp)
- (setq expected (buffer-substring-no-properties start (1- (point))))
-
- (forward-char 1)
-
- (setq start (1+ (point)))
- (forward-sexp)
- (setq actual (buffer-substring-no-properties start (1- (point))))
-
- (with-current-buffer (get-buffer-create "expected")
- (erase-buffer)
- (insert expected)
- (goto-char (point-min))
- (while (search-forward "\\n" (point-max) t)
- (replace-match "\n\n"))
- (goto-char (point-min)))
-
- (with-current-buffer (get-buffer-create "actual")
- (erase-buffer)
- (insert actual)
- (goto-char (point-min))
- (while (search-forward "\\n" (point-max) t)
- (replace-match "\n\n"))
- (goto-char (point-min)))
-
- ;; (pop-to-buffer "expected")
- ;; (switch-to-buffer "actual")
-
- (ediff-buffers "actual" "expected")))
-
-
-(defun cdmt-newc-do-cpio-id (where archive)
- "Run cpio(1) on the given ARCHIVE and report the results.
-WHERE Should be a line number."
- (let* ((fname "cdmt-newc-do-cpio-id")
- (buf-name "*cpio output*")
- (buf (get-buffer buf-name))
- (make-directory "qwerqwer"))
- (if (file-exists-p "qwerqwer")
- (should (and (format "remove didn't work (line %d)" where)
- (call-process "rm" nil nil nil "-rf" "qwerqwer"))))
- (make-directory "qwerqwer")
- (should (and (format "cd didn't work (line %d)" where)
- (cd "qwerqwer")))
- (if (buffer-live-p buf)
- (with-current-buffer buf-name (erase-buffer)))
- (should (and (format "cpio on saved archive failed (line %d)." where)
- (= 0 (call-process "cpio" (concat "../" archive) buf nil
"-id"))))
- (should (and "Checking cpio output."
- (with-current-buffer buf-name
- (string-match "[[:digit:]]+ blocks\n"
(buffer-substring-no-properties (point-min) (point-max))))))
- (kill-buffer buf)
- (cd "..")))
-
-(defun cdmt-newc-sweep ()
- "Sweep the cpio-dired-test.el buffer and make changes
-to help make tests pass correctly."
- (interactive)
- (let ((fname "cdmt-newc-sweep"))
- (cdmt-newc-sweep-ids)
- (cdmt-newc-sweep-times)))
-
-(defun cdmt-newc-sweep-ids ()
- "Replace UIDs and GIDs = [[:digit:]]+ by a better RE."
- (let ((fname "cdmt-newc-sweep-ids"))
- (save-excursion
- (save-restriction
- (goto-char (point-min))
- (while (re-search-forward "\\s-+\\(1000\\)\\s-" (point-max) t)
- (replace-match "[[:digit:]]+" 'fixed-case 'literal nil 1))))))
-
-(defun cdmt-newc-sweep-times ()
- "Replace times (date-times) with a better RE."
- (let ((fname "cdmt-newc-sweep-times"))
- (save-excursion
- (save-restriction
- (goto-char (point-min))
- (while (re-search-forward
"\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\}" (point-max) t)
- (replace-match
"\\\\\\\\(?:a\\\\\\\\(?:pr\\\\\\\\|ug\\\\\\\\)\\\\\\\\|dec\\\\\\\\|feb\\\\\\\\|j\\\\\\\\(?:an\\\\\\\\|u[ln]\\\\\\\\)\\\\\\\\|ma[ry]\\\\\\\\|nov\\\\\\\\|oct\\\\\\\\|sep\\\\\\\\)
[[:digit:]]\\\\\\\\{2\\\\\\\\}
[[:digit:]]\\\\\\\\{2\\\\\\\\}:[[:digit:]]\\\\\\\\{2\\\\\\\\}" nil nil nil
0))))))
-
-;; This keyboard macro proved useful in working on chmod.
-;; Here's the setup:
-;; ┌──────────┬───────────┐
-;; │ Filtered │ dired │
-;; │ archive │ style │
-;; │ buffer. │ buffer │
-;; │ point at ├───────────┤
-;; │ point-min│ *scratch* │
-;; │ │ │
-;; └──────────┴───────────┘
-;; FYI cm- = chmod macro
-(defvar cm-archive-window)
-(defvar cm-dired-window)
-(defvar scratch-window)
-(defun cm-setup ()
- "Prepare the window setup for (cm)."
- (interactive)
- (let ((fname "cm-setup"))
- (delete-other-windows)
- (switch-to-buffer "actual")
- (setq cm-archive-window (selected-window))
- (split-window-right)
- (other-window 1)
- (switch-to-buffer "CPIO archive: alphabet_small.newc.cpio")
- (cpio-dired-move-to-first-entry)
- (setq cm-dired-window (selected-window))
- (split-window)
- (other-window 1)
- (switch-to-buffer "*scratch*")
- (setq scratch-window (selected-window))
- (other-window 1)
- (goto-char (point-min))))
-(defun cm ()
- "Run a verification of the next mode in the archive."
- (interactive)
- (let ((fname "cm")
- (mode-hex-string)
- (entry-name))
- (search-forward "magic")
- (recenter-top-bottom 0)
- (search-forward "mode")
- (setq mode-hex-string (buffer-substring-no-properties
- (line-beginning-position)
- (+ 8 (line-beginning-position))))
- (search-forward "filename")
- (beginning-of-line)
- (looking-at "[[:graph:]]+")
- (setq entry-name (match-string-no-properties 0))
- (other-window 2)
- (insert (format "%s:\t%06o\n" entry-name (string-to-number mode-hex-string
16)))
- (other-window 2)
- (dired-next-line 1)
- (other-window 2)))
-
-(defun cdmt-newc-sweep-catalog ()
- "Clean up a copy of the cpio catalog,
-as presented in an 'actual' buffer (see `cdmt-newc-ediff-results')
-for use in a string-match-p."
- ;; If this were written in good LISP,
- ;; then it would be a (mapcar)
- ;; over a list of (cons RE replacement)
- ;; with a (replace-match).
- ;; However, I think the comments are helpful.
- (interactive)
- (let ((fname "cdmt-newc-sweep-catalog"))
- ;; Opening [.
- (goto-char (point-min))
- (while (re-search-forward "\\[" (point-max) t)
- (replace-match "\\\\["))
- ;; Closing ].
- (goto-char (point-min))
- (while (search-forward "]" (point-max) t)
- (replace-match "\\\\]"))
- ;; '.'
- (goto-char (point-min))
- (while (search-forward "." (point-max) t)
- (replace-match "\\\\."))
- ;; ino
- (goto-char (point-min))
- (while (re-search-forward "\\\\[\\\\[[[:digit:]]+" (point-max) t)
- (replace-match "\\\\[\\\\[[[:digit:]]+"))
- ;; UID/GID
- (goto-char (point-min))
- (while (re-search-forward "\\<1000\\>" (point-max) t)
- (replace-match "[[:digit:]]+"))
- ;; mtime
- (goto-char (point-min))
- (while (re-search-forward "([[:digit:]]+ [[:digit:]]+)" (point-max) t)
- (replace-match "([[:digit:]]+ [[:digit:]]+)"))
- ;; devs
- (goto-char (point-min))
- (while (re-search-forward "\\(\\s-[[:digit:]]+\\) [[:digit:]]+
[[:digit:]]+ [[:digit:]]+ [[:digit:]]+" (point-max) t)
- (replace-match "\\1 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+
[[:digit:]]+"))
- ;; Double new lines.
- (goto-char (point-min))
- (while (search-forward "\n\n" (point-max) t)
- (replace-match "\n"))
- ;; Finally, make the result a string.
- (goto-char (point-min))
- (insert "\"")
- (goto-char (point-max))
- (insert "\"")
- ;; Grab the whole buffer.
- (copy-region-as-kill (point-min) (point-max))))
-
-(defun cdmt-newc-test-save (&optional large)
- "A generic test to run at the end of every test
-to check that the saved archive seems sane."
- (cd run-dir)
- (let* ((fname "cdmt-newc-test-save")
- (alphabet-dir (concat default-directory "test_data/alphabet"))
- (test-buffer-dir (concat alphabet-dir "/asdfasdf"))
- (test-buffer)
- (directory default-directory)
- (dired-buffer (current-buffer))
- (archive (if large "../alphabet.newc.cpio"
- "../alphabet_small.newc.cpio")))
- (unless (eq major-mode 'cpio-dired-mode)
- (error "%s(): You're not in a cpio-dired buffer." fname))
-
- (if (file-exists-p test-buffer-dir)
- (call-process "rm" nil nil nil "-rf" test-buffer-dir))
- (if (file-exists-p test-buffer-dir)
- (error "%s(): Removing %s failed." fname test-buffer-dir))
- (with-current-buffer cpio-archive-buffer
- (cpio-dired-save-archive))
- (make-directory test-buffer-dir 'parents)
-
- (cd test-buffer-dir)
- (with-current-buffer (find-file-noselect test-buffer-dir)
- (call-process "cpio" archive nil nil "-id")
- (mapc (lambda (en)
- ;; No, this isn't bullet proof or even correct.
- ;; It's just a sanity check; it's certainly not complete.
- (should (file-exists-p (car en))))
- (with-current-buffer cpio-archive-buffer
- (cpio-catalog))))
- (cd directory)))
;;
;; Tests
@@ -7168,14 +6769,16 @@ to check that the saved archive seems sane."
(cpio-archive-buffer-contents)
(cpio-dired-buffer)
(cpio-dired-buffer-contents))
- (cdmt-newc-reset 'make)
+ (cdmt-reset 'make)
+
(cpio-dired-kill)
+
+ (should (progn (message "Dired style buffer should not be live.")
+ (not (buffer-live-p cpio-dired-buffer))))
- (should (and "Dired style buffer should not be live."
- (not (buffer-live-p cpio-dired-buffer))))
- (should (and "Archive buffer should not be live."
- (not (buffer-live-p cpio-archive-buffer))))))
+ (should (progn (message "Archive buffer should not be live.")
+ (not (buffer-live-p cpio-archive-buffer))))))
(ert-deftest cdmt-newc-cpio-dired-do-isearch ()
"Test cpio-dired-do-isearch.
@@ -7187,43 +6790,1836 @@ cpio-dired-do-isearch is not yet implemented --
expect an error."
"Test cpio-dired-do-isearch-regexp.
cpio-dired-do-isearch-regexp is not yet implemented -- expect an error."
(should-error (cpio-dired-do-isearch-regexp)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-isearch-entry-names ()
"Test cpio-dired-isearch-entry-names.
cpio-dired-isearch-entry-names is not yet implemented -- expect an error."
(should-error (cpio-dired-isearch-entry-names)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-isearch-entry-names-regexp ()
"Test cpio-dired-isearch-entry-names-regexp.
cpio-dired-isearch-entry-names-regexp is not yet implemented -- expect an
error."
(should-error (cpio-dired-isearch-entry-names-regexp)
- :type 'error))
+ :type 'error))
+;;;;;;;; This gets an end-of-buffer error under ERT.
+;;;;;;;; (ert-deftest cdmt-newc-cpio-dired-save-archive-0 () ;✓
+;;;;;;;; "Test the function of M-x cpio-dired-save-archive."
+;;;;;;;; (let ((test-name "cdmt-newc-cpio-dired-save-archive")
+;;;;;;;; (cpio-archive-buffer)
+;;;;;;;; (cpio-archive-buffer-contents-before)
+;;;;;;;; (cpio-archive-buffer-contents)
+;;;;;;;; (cpio-dired-buffer)
+;;;;;;;; (cpio-dired-buffer-contents-before)
+;;;;;;;; (cpio-dired-buffer-contents)
+;;;;;;;; )
+;;;;;;;; (cdmt-reset 'make)
+
+;;;;;;;; (progn (goto-char (point-min))
+;;;;;;;; (re-search-forward " aa$" (point-max))
+;;;;;;;; (cpio-dired-do-delete 1)
+;;;;;;;; (setq cpio-archive-buffer-contents-before
+;;;;;;;; (cdmt-filter-archive-contents (with-current-buffer
cpio-archive-buffer
+;;;;;;;;
(buffer-substring-no-properties (point-min) (point-max)))))
+;;;;;;;; (setq cpio-dired-buffer-contents-before (with-current-buffer
cpio-dired-buffer
+;;;;;;;;
(buffer-substring-no-properties (point-min) (point-max)))))
+
+;;;;;;;; (should (progn (message "Archive buffer should be modified.")
+;;;;;;;; (buffer-modified-p cpio-archive-buffer)))
+;;;;;;;; (should (and "Archive buffer should be missing exactly the entry
for aa."
+;;;;;;;; (string-equal "070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000002 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; a (( filename ))
+
+;;;;;;;; a
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000004 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaa (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; aaa
+
+;;;;;;;; \\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000005 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaaa (( filename ))
+;;;;;;;; \\0
+;;;;;;;; aaaa
+
+;;;;;;;; \\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaaaa (( filename ))
+
+;;;;;;;; aaaaa
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaaaa.d (( filename ))
+;;;;;;;; \\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000002 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; b (( filename ))
+
+;;;;;;;; b
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000005 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000003 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bb (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; bb
+
+;;;;;;;; \\0\\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000004 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbb (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; bbb
+
+;;;;;;;; \\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000005 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbbb (( filename ))
+;;;;;;;; \\0
+;;;;;;;; bbbb
+
+;;;;;;;; \\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbbbb (( filename ))
+
+;;;;;;;; bbbbb
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbbbb.d (( filename ))
+;;;;;;;; \\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000002 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; c (( filename ))
+
+;;;;;;;; c
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000005 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000003 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; cc (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; cc
+
+;;;;;;;; \\0\\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000004 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; ccc (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; ccc
+
+;;;;;;;; \\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000005 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; cccc (( filename ))
+;;;;;;;; \\0
+;;;;;;;; cccc
+
+;;;;;;;; \\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; ccccc (( filename ))
+
+;;;;;;;; ccccc
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; ccccc.d (( filename ))
+;;;;;;;; \\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 00000000 (( mode ))
+;;;;;;;; 00000000 (( uid ))
+;;;;;;;; 00000000 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 0000000B (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; TRAILER!!! (( filename ))
+;;;;;;;;
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
+;;;;;;;; (should (and "Checking dired-style buffer before saving."
+;;;;;;;; (string-match "CPIO archive: alphabet_small.newc.cpio:
+
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaa
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaa
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} b
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} c
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
+;;;;;;;; " cpio-dired-buffer-contents-before)))
+
+;;;;;;;; (progn (cpio-dired-save-archive)
+;;;;;;;; (setq cpio-archive-buffer-contents
+;;;;;;;; (cdmt-filter-archive-contents
+;;;;;;;; (with-current-buffer cpio-archive-buffer
+;;;;;;;; (buffer-substring-no-properties (point-min)
(point-max)))))
+;;;;;;;; (setq cpio-dired-buffer-contents
+;;;;;;;; (with-current-buffer cpio-dired-buffer
+;;;;;;;; (buffer-substring-no-properties (point-min)
(point-max)))))
+
+;;;;;;;; ;; (cdmt-newc-do-cpio-id (count-lines (point-min)(point))
(file-name-nondirectory *cdmt-small-archive*))
+
+;;;;;;;; (should (and "Archive buffer should no longer be modified."
+;;;;;;;; (not (buffer-modified-p cpio-archive-buffer))))
+;;;;;;;; (should (and "Checking the archive buffer after saving."
+;;;;;;;; (string-equal "070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000002 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; a (( filename ))
+
+;;;;;;;; a
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000004 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaa (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; aaa
+
+;;;;;;;; \\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000005 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaaa (( filename ))
+;;;;;;;; \\0
+;;;;;;;; aaaa
+
+;;;;;;;; \\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaaaa (( filename ))
+
+;;;;;;;; aaaaa
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaaaa.d (( filename ))
+;;;;;;;; \\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000002 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; b (( filename ))
+
+;;;;;;;; b
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000005 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000003 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bb (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; bb
+
+;;;;;;;; \\0\\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000004 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbb (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; bbb
+
+;;;;;;;; \\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000005 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbbb (( filename ))
+;;;;;;;; \\0
+;;;;;;;; bbbb
+
+;;;;;;;; \\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbbbb (( filename ))
+
+;;;;;;;; bbbbb
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbbbb.d (( filename ))
+;;;;;;;; \\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000002 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; c (( filename ))
+
+;;;;;;;; c
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000005 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000003 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; cc (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; cc
+
+;;;;;;;; \\0\\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000004 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; ccc (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; ccc
+
+;;;;;;;; \\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000005 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; cccc (( filename ))
+;;;;;;;; \\0
+;;;;;;;; cccc
+
+;;;;;;;; \\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; ccccc (( filename ))
+
+;;;;;;;; ccccc
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; ccccc.d (( filename ))
+;;;;;;;; \\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 00000000 (( mode ))
+;;;;;;;; 00000000 (( uid ))
+;;;;;;;; 00000000 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 0000000B (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; TRAILER!!! (( filename ))
+;;;;;;;;
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
+
+;;;;;;;; (should (and "Checking the dired-style buffer after saving."
+;;;;;;;; (string-match "CPIO archive: alphabet_small.newc.cpio:
+
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaa
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaa
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} b
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} c
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
+;;;;;;;; " cpio-dired-buffer-contents)))
+
+;;;;;;;; ;; The archive strings should be identical up to the TRAILER!!!
padding.
+;;;;;;;; ;; NO! Padding after any added, deleted or changed entry will
also change.
+;;;;;;;; ;; (string-match "TRAILER!!!" cpio-archive-buffer-contents-before)
+;;;;;;;; ;; (setq cpio-archive-buffer-contents-before (substring
cpio-archive-buffer-contents-before 0 (match-end 0)))
+;;;;;;;; ;; (string-match "TRAILER!!!" cpio-archive-buffer-contents)
+;;;;;;;; ;; (setq cpio-archive-buffer-contents (substring
cpio-archive-buffer-contents 0 (match-end 0)))
+;;;;;;;; ;; (should (string-equal cpio-archive-buffer-contents-before
cpio-archive-buffer-contents))
+
+;;;;;;;; (should (progn (message "The dired style buffer should not have
changed.")
+;;;;;;;; (string-equal cpio-dired-buffer-contents-before
cpio-dired-buffer-contents)))
+
+;;;;;;;; (cdmt-reset)
+
+;;;;;;;; (progn (goto-char (point-min))
+;;;;;;;; (re-search-forward " aaaa$" (point-max))
+;;;;;;;; (setq unread-command-events (listify-key-sequence "dddd\n"))
+;;;;;;;; (cpio-dired-do-rename 1)
+;;;;;;;; (cpio-dired-save-archive)
+;;;;;;;; (setq cpio-archive-buffer-contents
+;;;;;;;; (cdmt-filter-archive-contents
+;;;;;;;; (with-current-buffer cpio-archive-buffer
+;;;;;;;; (buffer-substring-no-properties (point-min)
(point-max)))))
+;;;;;;;; (setq cpio-dired-buffer-contents
+;;;;;;;; (with-current-buffer cpio-dired-buffer
+;;;;;;;; (buffer-substring-no-properties (point-min)
(point-max)))))
+
+;;;;;;;; ;; (cdmt-newc-do-cpio-id (count-lines (point-min) (point-max))
(file-name-nondirectory *cdmt-small-archive*))
+
+;;;;;;;; (should (and "Expecting the standard archive with aaaa moved to
ddddd."
+;;;;;;;; (string-equal "070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000002 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; a (( filename ))
+
+;;;;;;;; a
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000004 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaa (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; aaa
+
+;;;;;;;; \\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaaaa (( filename ))
+
+;;;;;;;; aaaaa
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaaaa.d (( filename ))
+;;;;;;;; \\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000002 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; b (( filename ))
+
+;;;;;;;; b
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000005 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000003 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bb (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; bb
+
+;;;;;;;; \\0\\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000004 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbb (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; bbb
+
+;;;;;;;; \\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000005 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbbb (( filename ))
+;;;;;;;; \\0
+;;;;;;;; bbbb
+
+;;;;;;;; \\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbbbb (( filename ))
+
+;;;;;;;; bbbbb
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbbbb.d (( filename ))
+;;;;;;;; \\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000002 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; c (( filename ))
+
+;;;;;;;; c
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000005 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+
+;;;;;;;; 00000003 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; cc (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; cc
+
+;;;;;;;; \\0\\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000004 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; ccc (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; ccc
+
+;;;;;;;; \\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000005 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; cccc (( filename ))
+;;;;;;;; \\0
+;;;;;;;; cccc
+
+;;;;;;;; \\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; ccccc (( filename ))
+
+;;;;;;;; ccccc
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; ccccc.d (( filename ))
+;;;;;;;; \\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000005 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; dddd (( filename ))
+;;;;;;;; \\0
+;;;;;;;; aaaa
+
+;;;;;;;; \\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 00000000 (( mode ))
+;;;;;;;; 00000000 (( uid ))
+;;;;;;;; 00000000 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 0000000B (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; TRAILER!!! (( filename ))
+;;;;;;;;
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
+
+;;;;;;;; (should (and "Expecting a dired style buffer without aaaa."
+;;;;;;;; (string-match "CPIO archive: alphabet_small.newc.cpio:
+
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaa
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} b
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} c
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} dddd
+;;;;;;;; " cpio-dired-buffer-contents)))
+
+;;;;;;;; (cdmt-reset)
+
+;;;;;;;; (progn (goto-char (point-min))
+;;;;;;;; (re-search-forward " b$" (point-max))
+;;;;;;;; (cpio-dired-mark 4)
+;;;;;;;; (setq unread-command-events (listify-key-sequence "d\n"))
+;;;;;;;; (cpio-dired-do-rename 1)
+;;;;;;;; (cpio-dired-save-archive)
+;;;;;;;; (setq cpio-archive-buffer-contents
+;;;;;;;; (cdmt-filter-archive-contents
+;;;;;;;; (with-current-buffer cpio-archive-buffer
+;;;;;;;; (buffer-substring-no-properties (point-min)
(point-max)))))
+;;;;;;;; (setq cpio-dired-buffer-contents
+;;;;;;;; (with-current-buffer cpio-dired-buffer
+;;;;;;;; (buffer-substring-no-properties (point-min)
(point-max)))))
+
+;;;;;;;; ;; (cdmt-newc-do-cpio-id (count-lines (point-min) (point-max))
(file-name-nondirectory *cdmt-small-archive*))
+
+;;;;;;;; (should (and "Expecting a small archive with d/b, d/bb, d/bbb,
d/bbbb."
+;;;;;;;; (string-equal "070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000002 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; a (( filename ))
+
+;;;;;;;; a
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000004 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaa (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; aaa
+
+;;;;;;;; \\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaaaa (( filename ))
+
+;;;;;;;; aaaaa
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaaaa.d (( filename ))
+;;;;;;;; \\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbbbb (( filename ))
+
+;;;;;;;; bbbbb
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbbbb.d (( filename ))
+;;;;;;;; \\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000002 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; c (( filename ))
+
+;;;;;;;; c
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000005 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000003 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; cc (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; cc
+
+;;;;;;;; \\0\\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000004 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; ccc (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; ccc
+
+;;;;;;;; \\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000005 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; cccc (( filename ))
+;;;;;;;; \\0
+;;;;;;;; cccc
+
+;;;;;;;; \\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; ccccc (( filename ))
+
+;;;;;;;; ccccc
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; ccccc.d (( filename ))
+;;;;;;;; \\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000005 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; dddd (( filename ))
+;;;;;;;; \\0
+;;;;;;;; aaaa
+
+;;;;;;;; \\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000007 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; d/bbbb (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; bbbb
+
+;;;;;;;; \\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; d/bbb (( filename ))
+
+;;;;;;;; bbb
+
+;;;;;;;; \\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000005 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000005 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; d/bb (( filename ))
+;;;;;;;; \\0
+;;;;;;;; bb
+
+;;;;;;;; \\0\\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000004 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; d/b (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; b
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 00000000 (( mode ))
+;;;;;;;; 00000000 (( uid ))
+;;;;;;;; 00000000 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 0000000B (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; TRAILER!!! (( filename ))
+;;;;;;;;
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
+
+;;;;;;;; ;; (cdmt-newc-do-cpio-id (count-lines (point-min) (point-max))
(file-name-nondirectory *cdmt-small-archive*))
+
+;;;;;;;; (should (and "Looking for a small dired-style buffer with d/b,
d/bb, d/bbb, d/bbbb"
+;;;;;;;; (string-match "CPIO archive: alphabet_small.newc.cpio:
+
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaa
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} c
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} dddd
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} d/bbbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} d/bbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} d/bb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} d/b
+;;;;;;;; " cpio-dired-buffer-contents)))
+
+;;;;;;;; (cdmt-reset)
+
+;;;;;;;; (progn (cpio-dired-mark-entries-regexp "\\`...\\'")
+;;;;;;;; (setq unread-command-events (listify-key-sequence
"newDirectory\n"))
+;;;;;;;; ;; HEREHERE This rename does something wrong.
+;;;;;;;; (cpio-dired-do-rename 1)
+;;;;;;;; (cpio-dired-save-archive)
+;;;;;;;; (setq cpio-archive-buffer-contents
+;;;;;;;; (cdmt-filter-archive-contents
+;;;;;;;; (with-current-buffer cpio-archive-buffer
+;;;;;;;; (buffer-substring-no-properties (point-min)
(point-max)))))
+;;;;;;;; (setq cpio-dired-buffer-contents
+;;;;;;;; (with-current-buffer cpio-dired-buffer
+;;;;;;;; (buffer-substring-no-properties (point-min)
(point-max)))))
+
+;;;;;;;; ;; (cdmt-newc-do-cpio-id (count-lines (point-min) (point-max))
(file-name-nondirectory *cdmt-small-archive*))
+
+;;;;;;;; (should (string-equal "070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000002 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; a (( filename ))
+
+;;;;;;;; a
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaaaa (( filename ))
+
+;;;;;;;; aaaaa
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; aaaaa.d (( filename ))
+;;;;;;;; \\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbbbb (( filename ))
+
+;;;;;;;; bbbbb
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; bbbbb.d (( filename ))
+;;;;;;;; \\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000002 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; c (( filename ))
+
+;;;;;;;; c
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000005 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000003 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; cc (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; cc
+
+;;;;;;;; \\0\\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000005 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; cccc (( filename ))
+;;;;;;;; \\0
+;;;;;;;; cccc
+
+;;;;;;;; \\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000008 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000006 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; ccccc (( filename ))
+
+;;;;;;;; ccccc
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000041ED (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000002 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000008 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; ccccc.d (( filename ))
+;;;;;;;; \\0\\0070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000005 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; dddd (( filename ))
+;;;;;;;; \\0
+;;;;;;;; aaaa
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000007 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000012 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; newDirectory/bbbb (( filename ))
+
+;;;;;;;; bbbb
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000011 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; newDirectory/bbb (( filename ))
+;;;;;;;; \\0
+;;;;;;;; bbb
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000005 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000010 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; newDirectory/bb (( filename ))
+;;;;;;;; \\0\\0
+;;;;;;;; bb
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000004 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 0000000F (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; newDirectory/b (( filename ))
+;;;;;;;; \\0\\0\\0
+;;;;;;;; b
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000011 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; newDirectory/ccc (( filename ))
+;;;;;;;; \\0
+;;;;;;;; ccc
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 000081A4 (( mode ))
+;;;;;;;; 000003E8 (( uid ))
+;;;;;;;; 000003E8 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000006 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 00000011 (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; newDirectory/aaa (( filename ))
+;;;;;;;; \\0
+;;;;;;;; aaa
+
+;;;;;;;; 070701 (( magic ))
+;;;;;;;; DEADBEEF (( ino ))
+;;;;;;;; 00000000 (( mode ))
+;;;;;;;; 00000000 (( uid ))
+;;;;;;;; 00000000 (( gid ))
+;;;;;;;; 00000001 (( nlink ))
+;;;;;;;; DEADBEEF (( mtime ))
+;;;;;;;; 00000000 (( filesize ))
+;;;;;;;; DEADBEEF (( dev maj ))
+;;;;;;;; DEADBEEF (( dev min ))
+;;;;;;;; DEADBEEF (( rdev maj ))
+;;;;;;;; DEADBEEF (( rdev min ))
+;;;;;;;; 0000000B (( namesize ))
+;;;;;;;; 00000000 (( chksum ))
+;;;;;;;; TRAILER!!! (( filename ))
+;;;;;;;;
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
+
+;;;;;;;; (should (= 0 1))
+
+;;;;;;;; ;; (cdmt-newc-do-cpio-id (count-lines (point-min) (point-max))
(file-name-nondirectory *cdmt-small-archive*))
+
+;;;;;;;; (should (string-match "CPIO archive: alphabet_small.newc.cpio:
+
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} c
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
+;;;;;;;; drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} dddd
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory/bbbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory/bbb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory/bb
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory/b
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory/ccc
+;;;;;;;; -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory/aaa
+;;;;;;;; " cpio-dired-buffer-contents))
+
+;;;;;;;; (should (= 0 1))
+
+;;;;;;;; ;; (cdmt-newc-do-cpio-id (count-lines (point-min) (point-max))
(file-name-nondirectory *cdmt-small-archive*))
+
+;;;;;;;; ))
(ert-deftest cdmt-newc-cpio-dired-add-entry ()
"Test cpio-dired-add-entry.
cpio-dired-add-entry is not yet implemented -- expect an error."
(should-error (cpio-dired-add-entry)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-change-marks ()
"Test cpio-dired-change-marks.
cpio-dired-change-marks is not yet implemented -- expect an error."
(should-error (cpio-dired-change-marks)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-clean-directory ()
"Test cpio-dired-clean-directory.
cpio-dired-clean-directory is not yet implemented -- expect an error."
(should-error (cpio-dired-clean-directory)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-copy-entry-name-as-kill ()
(should-error (cpio-dired-copy-entry-name-as-kill 1)
:type 'error))
-
+
(ert-deftest NOT-YET-cdmt-newc-cpio-dired-copy-entry-name-as-kill ()
"Test cpio-dired-copy-entry-name-as-kill.
cpio-dired-copy-entry-name-as-kill is not yet implemented -- expect an error."
@@ -7241,7 +8637,8 @@ cpio-dired-copy-entry-name-as-kill is not yet implemented
-- expect an error."
(kill-ring-before)
(entry-names)
(interprogram-paste-function nil))
- (cdmt-newc-reset 'make)
+
+ (cdmt-reset 'make)
(progn (setq current-kill-before (current-kill 0 'do-not-move))
(cpio-dired-next-line 2)
@@ -7262,7 +8659,7 @@ cpio-dired-copy-entry-name-as-kill is not yet implemented
-- expect an error."
(push (cpio-dired-get-entry-name) entry-names)
(cpio-dired-next-line 1)
(setq i (1+ i))))))
-
+
(while entry-names
(should (string-equal (current-kill 0) (pop entry-names)))
(current-kill 1))
@@ -7273,7 +8670,7 @@ cpio-dired-copy-entry-name-as-kill is not yet implemented
-- expect an error."
"Test cpio-dired-diff) ;.
cpio-dired-diff) ; is not yet implemented -- expect an error."
(should-error (cpio-dired-diff) ;)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-display-entry () ;✓
"Test the function of M-x cpio-dired-display-entry."
@@ -7289,89 +8686,91 @@ cpio-dired-diff) ; is not yet implemented -- expect an
error."
(cpio-catalog-contents-after)
(cpio-contents-window)
(entry-name))
- (cdmt-newc-reset 'make)
- (set-buffer (setq cpio-dired-buffer (get-buffer (cpio-dired-buffer-name
*cdmt-newc-small-archive*))))
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (cdmt-reset 'make)
+
+ ;; ????????
+ (progn (set-buffer (setq cpio-dired-buffer
+ (get-buffer (cpio-dired-buffer-name
*cdmt-small-archive*))))
+ (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(setq entry-name "aaa")
- (goto-char (point-min))
(cpio-dired-goto-entry entry-name)
-
- (cpio-dired-display-entry)
-
+
+ (setq cpio-contents-buffer (cpio-dired-display-entry))
+
;; (cpio-dired-display-entry) changes the current buffer.
+ (setq cpio-contents-buffer-string
+ (with-current-buffer cpio-contents-buffer
+ (buffer-substring-no-properties (point-min)
+ (point-max))))
+ (setq cpio-contents-window (get-buffer-window cpio-contents-buffer))
+ (setq cpio-archive-buffer-contents
+ (cdmt-filter-archive-contents
+ (with-current-buffer cpio-archive-buffer
+ (buffer-substring-no-properties (point-min) (point-max)))))
+ (setq cpio-dired-buffer-contents
+ (with-current-buffer cpio-dired-buffer
+ (buffer-substring-no-properties (point-min) (point-max))))
+
(with-current-buffer cpio-dired-buffer
- (setq cpio-contents-buffer (get-buffer (cpio-contents-buffer-name
entry-name)))
- (setq cpio-contents-buffer-string (with-current-buffer
cpio-contents-buffer
-
(buffer-substring-no-properties (point-min)
-
(point-max))))
- (setq cpio-contents-window (get-buffer-window
cpio-contents-buffer))
- (setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
- (with-current-buffer cpio-archive-buffer
- (buffer-substring-no-properties (point-min)
(point-max)))))
- (setq cpio-dired-buffer-contents
- (with-current-buffer cpio-dired-buffer
- (buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp
(cpio-catalog))))))
-
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog))))
+
(with-current-buffer cpio-dired-buffer
- (should (and "Viewing an entry should not change the archive buffer."
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Viewing an entry should not change the dired-style buffer."
- (string-match *cdmt-newc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "The contents buffer should not be null."
- (not (null cpio-contents-buffer))))
- (should (and "The contents buffer should be live."
- (buffer-live-p cpio-contents-buffer)))
- (should (and "Check the entry's contents buffer."
- (string-equal cpio-contents-buffer-string "\naaa\n\n")))
- (should (and "The entry's contents' window should be live."
- (window-live-p cpio-contents-window)))
- (should (and "Expecting no change to the catalog."
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after))))
-
- (cdmt-newc-reset)
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (should (progn (message "Viewing an entry should not change the archive
buffer.")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "Viewing an entry should not change the
dired-style buffer.")
+ (string-match *cdmt-newc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "The contents buffer should not be null.")
+ (not (null cpio-contents-buffer))))
+ (should (progn (message "The contents buffer should be live.")
+ (buffer-live-p cpio-contents-buffer)))
+ (should (progn (message "Check the entry's contents buffer.")
+ (string-equal cpio-contents-buffer-string "\naaa\n\n")))
+ (should (progn (message "The entry's contents' window should be live.")
+ (window-live-p cpio-contents-window)))
+ (should (progn (message "Expecting no change to the catalog.")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after))))
+
+ (cdmt-reset)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(setq entry-name "ccc")
- (goto-char (point-min))
- (re-search-forward " ccc$" (point-max))
- (cpio-dired-display-entry)
+ (cpio-dired-goto-entry entry-name)
+ (setq cpio-contents-buffer (cpio-dired-display-entry))
+
(with-current-buffer cpio-dired-buffer
- (setq cpio-contents-buffer (get-buffer (cpio-contents-buffer-name
entry-name)))
- (setq cpio-contents-buffer-string (with-current-buffer
cpio-contents-buffer
-
(buffer-substring-no-properties (point-min)
-
(point-max))))
+ (setq cpio-contents-buffer-string
+ (with-current-buffer cpio-contents-buffer
+ (buffer-substring-no-properties (point-min)
+ (point-max))))
(setq cpio-contents-window (get-buffer-window
cpio-contents-buffer))
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min)
(point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp
(cpio-catalog))))))
-
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog))))
+
(with-current-buffer cpio-dired-buffer
- (should (and "Checking the archive buffer."
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Checking the dired-style buffer."
- (string-match *cdmt-newc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "Checking the archive buffer.")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "Checking the dired-style buffer.")
+ (string-match *cdmt-newc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
(should (not (null cpio-contents-buffer)))
(should (buffer-live-p cpio-contents-buffer))
(should (string-equal cpio-contents-buffer-string "\nccc\n\n"))
(should (window-live-p cpio-contents-window))
- (should (and "Expecting no change to the catalog."
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after))))))
+ (should (progn (message "Expecting no change to the catalog.")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after))))))
(ert-deftest cdmt-newc-cpio-dired-do-async-shell-command ()
"Test cpio-dired-do-async-shell-command) ;.
cpio-dired-do-async-shell-command) ; is not yet implemented -- expect an
error."
(should-error (cpio-dired-do-async-shell-command)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-do-chgrp () ;✓
"Test the function of M-x cpio-dired-do-chgrp."
@@ -7382,24 +8781,27 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-newc-reset 'make)
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+
+ (cdmt-reset 'make)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-move-to-first-entry)
(setq unread-command-events (listify-key-sequence "9999\n"))
(cpio-dired-do-chgrp 1)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "Expecting an unchanged archive. (8814)"
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting 'a' to have group 9999."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "Expecting an unchanged archive. (8814)")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+
+ (should (progn (message "Expecting 'a' to have group 9999.")
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 [[:digit:]]+ 9999 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -7420,117 +8822,119 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
+
(should (and "Expecting a catalog with the first entry having group 9999."
- (string-match "((\"a\" \.
- \[\[[[:digit:]]+ 33188 [[:digit:]]+ 9999 1
- ([[:digit:]]+ [[:digit:]]+)
- 4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
- #<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"ccccc\.d\" \.
- \[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
- ([[:digit:]]+ [[:digit:]]+)
- 0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0
\"ccccc\.d\"]
- #<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\]))
+ (string-match "((¨a¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ 9999 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small.newc.cpio> #<marker at 113 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨aa¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small.newc.cpio> #<marker at 233 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨aaa¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small.newc.cpio> #<marker at 357 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaa¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small.newc.cpio> #<marker at 481 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small.newc.cpio> #<marker at 605 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa.d¨ .
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa.d¨«
+\\s-+#<marker at 613 in alphabet_small.newc.cpio> #<marker at 733 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨b¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small.newc.cpio> #<marker at 845 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨bb¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small.newc.cpio> #<marker at 965 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨bbb¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small.newc.cpio> #<marker at 1089 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbb¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small.newc.cpio> #<marker at 1213 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small.newc.cpio> #<marker at 1337 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb.d¨ .
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb.d¨«
+\\s-+#<marker at 1345 in alphabet_small.newc.cpio> #<marker at 1465 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨c¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small.newc.cpio> #<marker at 1577 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨cc¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small.newc.cpio> #<marker at 1697 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨ccc¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small.newc.cpio> #<marker at 1821 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨cccc¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small.newc.cpio> #<marker at 1945 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small.newc.cpio> #<marker at 2069 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc.d¨ .
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc.d¨«
+\\s-+#<marker at 2077 in alphabet_small.newc.cpio> #<marker at 2197 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
-
- (cdmt-newc-reset)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (cdmt-reset)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(setq unread-command-events (listify-key-sequence "8888\n"))
(cpio-dired-do-chgrp 4)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "The archive buffer doesn't change until saving.")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "The archive buffer doesn't change until saving."
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting the first 4 entries to have group 8888."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (should (progn (message "Expecting the first 4 entries to have group
8888.")
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 [[:digit:]]+ 8888 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ 8888 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -7551,118 +8955,120 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting a catalog with the first 3 entries having group
8888."
- (string-match"((\"a\" \.
- \[\[[[:digit:]]+ 33188 [[:digit:]]+ 8888 1
- ([[:digit:]]+ [[:digit:]]+)
- 4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
- #<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ 8888 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ 8888 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ 8888 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"ccccc\.d\" \.
- \[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
- ([[:digit:]]+ [[:digit:]]+)
- 0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0
\"ccccc\.d\"]
- #<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\]))
-" cpio-catalog-contents-after)))
- (cdmt-newc-reset)
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (should (progn (message "Expecting a catalog with the first 3 entries
having group 8888.")
+ (string-match"((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ 8888 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ 8888 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ 8888 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ 8888 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«))
+" cpio-catalog-contents-after)))
+
+ (cdmt-reset)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark-entries-regexp "\\`...\\'")
(setq unread-command-events (listify-key-sequence "7777\n"))
(cpio-dired-do-chgrp 1)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "The archive is not changed until saved. (8894)")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "The archive is not changed until saved. (8894)"
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting \`...\' to have group 7777."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (should (progn (message "Expecting \`...\' to have group 7777.")
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -7683,100 +9089,101 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
+
(should (and "Expecting \`...\' to have group 7777."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ 7777 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ 7777 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ 7777 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\]))
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ 7777 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ 7777 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ 7777 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (cdmt-newc-test-save)))
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-newc-cpio-dired-do-chmod ()
"Test cpio-dired-do-chmod."
@@ -7788,24 +9195,24 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-newc-reset 'make)
+ (cdmt-reset 'make)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(setq unread-command-events (listify-key-sequence "0755\n"))
(cpio-dired-do-chmod 1)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting the first entry to have mode -rwxr-xr-x."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (should (progn (message "%s(): Expecting the first entry to have mode
-rwxr-xr-x." test-name)
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
- -rwxr-xr-x 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
+ -rwxr-xr-x 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaa
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaa
@@ -7824,8 +9231,9 @@ cpio-dired-do-async-shell-command) ; is not yet
implemented -- expect an error."
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting a mode of 0755 on the first entry."
- (string-equal "070701 (( magic ))
+
+ (should (progn (message "%s(): Expecting a mode of 0755 on the first
entry." test-name)
+ (string-equal "070701 (( magic ))
DEADBEEF (( ino ))
000081A4 (( mode ))
000003E8 (( uid ))
@@ -8157,115 +9565,116 @@ DEADBEEF (( rdev min ))
TRAILER!!! (( filename ))
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
" cpio-archive-buffer-contents)))
- (should (and "Expecting a mode of 0755 (33261) on the first entry."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33261 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\]))
-" cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (should (progn (message "Expecting a mode of 0755 (33261) on the first
entry.")
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33261 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«))
+" cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-next-line 2)
(setq unread-command-events (listify-key-sequence "0600\n"))
(cpio-dired-do-chmod 4)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting aaa, aaaa, aaaaa to have mode -rw------."
- "Expecting aaaaa.d to have mode dr--------."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "Expecting aaa, aaaa, aaaaa to have mode
-rw------.")
+ (message "Expecting aaaaa.d to have mode dr--------.")
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rwxr-xr-x 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -8286,120 +9695,121 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
+
+ (should (progn (message "%s(): Expecting an unchanged archive buffer."
test-name)
+ (message "The archive is not modified until saving.")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting an unchanged archive buffer."
- "The archive is not modified until saving."
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting aaa, aaaa, aaaaa to have mode 0100600 (33152)."
- "Expecting aaaaa.d to have mode 040600 (16768)."
-
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33261 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33152 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33152 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33152 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16768 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\]))
+ (should (progn (message "%s(): Expecting aaa, aaaa, aaaaa to have mode
0100600 (33152)." test-name)
+ (message "Expecting aaaaa.d to have mode 040600 (16768).")
+
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33261 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33152 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33152 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33152 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16768 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark-entries-regexp "\\`...\\'")
(setq unread-command-events (listify-key-sequence "0660\n"))
(cpio-dired-do-chmod)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting ... to have mode -rw-rw----."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "%s(): Expecting ... to have mode -rw-rw----."
test-name)
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rwxr-xr-x 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -8420,118 +9830,119 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
-
- (should (and "Expecting an untouched archive."
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
-
- (should (and "Expecting ... to have mode 0100660 (33200)."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33261 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33200 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33152 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33152 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16768 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33200 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33200 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\]))
+
+ (should (progn (message "%s(): Expecting an untouched archive." test-name)
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+
+ (should (progn (message "Expecting ... to have mode 0100660 (33200).")
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33261 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33200 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33152 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33152 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16768 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33200 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33200 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-save-archive)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "Expecting all the above mode changes in the archive buffer."
- "• a has mode 0100755 (000081ED)."
- "• aaa, aaaa, aaaaa have mode 0100600 (00008180)."
- "• aaaaa.d has mode 040600 (00004180)."
- "• ... have mode 0660 (000081B0 for files or 000041B0 for
directories)."
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "%s(): Expecting all the above mode changes in the
archive buffer." test-name)
+ (message "• a has mode 0100755 (000081ED).")
+ (message "• aaa, aaaa, aaaaa have mode 0100600 (00008180).")
+ (message "• aaaaa.d has mode 040600 (00004180).")
+ (message "• ... have mode 0660 (000081B0 for files or
000041B0 for directories).")
(string-equal "070701 (( magic ))
DEADBEEF (( ino ))
000081ED (( mode ))
@@ -8864,11 +10275,12 @@ DEADBEEF (( rdev min ))
TRAILER!!! (( filename ))
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
" cpio-archive-buffer-contents)))
- (should (and "Expecting all the above mode changes in the dired buffer."
- "• a has mode -rwxr-xr-x"
- "• aaa, aaaa, aaaaa, aaaaa.d have mode -rw-r--r--"
- "• ... have mode -rw-rw----"
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+
+ (should (progn (message "%s(): Expecting all the above mode changes in the
dired buffer." test-name)
+ (message "• a has mode -rwxr-xr-x")
+ (message "• aaa, aaaa, aaaaa, aaaaa.d have mode -rw-r--r--")
+ (message "• ... have mode -rw-rw----")
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rwxr-xr-x 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -8889,105 +10301,106 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting all the above mode changes in the catalog."
- "• a has mode 33261."
- "• aaa, aaaa, aaaaa have mode 33152."
- "• aaaaa.d has mode 16768."
- "• ... have mode 33200 for files."
- " 16816 for directories."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33261 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33200 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 238 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33152 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 363 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33152 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 488 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16768 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33200 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 970 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 1095 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 1220 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33200 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1702 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1827 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1952 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\]))
-" cpio-catalog-contents-after)))
- (cdmt-newc-test-save)))
+ (should (progn (message "Expecting all the above mode changes in the
catalog.")
+ (message "• a has mode 33261.")
+ (message "• aaa, aaaa, aaaaa have mode 33152.")
+ (message "• aaaaa.d has mode 16768.")
+ (message "• ... have mode 33200 for files.")
+ (message " 16816 for directories.")
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33261 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33200 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 238 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33152 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 363 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33152 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 488 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16768 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33200 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 970 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 1095 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 1220 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33200 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1702 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1827 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1952 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«))
+" cpio-catalog-contents-after)))
+
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-newc-cpio-dired-do-chown () ;✓
"Test the function of M-x cpio-do-chown."
@@ -8998,26 +10411,28 @@ TRAILER!!! (( filename ))
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
+
+ (message "%s(): starting." test-name)
- (cdmt-newc-reset 'make)
+ (cdmt-reset 'make)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(setq unread-command-events (listify-key-sequence "9999\n"))
(cpio-dired-do-chown 1)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "The archive buffer is not modified until saved. (10741)"
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
-
- (should (and "Expecting a cpio-dired buffer with the owner of 'a' being
9999."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (should (progn (message "%s(): The archive buffer is not modified until
saved. (10741)" test-name)
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+
+ (should (progn (message "%s(): Expecting a cpio-dired buffer with the
owner of 'a' being 9999." test-name)
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 9999 [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -9038,119 +10453,120 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "The owner of 'a' should be 9999."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 9999 [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\]))
-" cpio-catalog-contents-after)))
- (cdmt-newc-reset)
+ (should (progn (message "The owner of 'a' should be 9999.")
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 9999 [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«))
+" cpio-catalog-contents-after)))
+
+ (cdmt-reset)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(dired-next-line 2)
(setq unread-command-events (listify-key-sequence "8888\n"))
(cpio-dired-do-chown 4)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "The archive buffer is not modified until saved. (11111)"
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
-
- (should (and "Expecting 4 entries with owner 8888."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "%s(): The archive buffer is not modified until
saved. (11111)" test-name)
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+
+ (should (progn (message "%s(): Expecting 4 entries with owner 8888."
test-name)
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -9171,118 +10587,120 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting a catalog with 4 entries owned by 8888."
- (string-match "((\"a\" \.
- \[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
- ([[:digit:]]+ [[:digit:]]+)
- 4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
- #<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 8888 [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 8888 [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 8888 [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 8888 [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
- \[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
- ([[:digit:]]+ [[:digit:]]+)
- 0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0
\"ccccc\.d\"]
- #<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\]))
-" cpio-catalog-contents-after)))
- (cdmt-newc-reset)
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (should (progn (message "Expecting a catalog with 4 entries owned by
8888.")
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 8888 [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 8888 [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 8888 [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 8888 [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«))
+" cpio-catalog-contents-after)))
+
+ (cdmt-reset)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark-entries-regexp "\\`...\\'")
(setq unread-command-events (listify-key-sequence "7777\n"))
(cpio-dired-do-chown 1)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "The archive buffer is not modified until saved. (10818)"
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "%s(): The archive buffer is not modified until
saved. (10818)" test-name)
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting \`...\' to be owned by 7777."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (should (progn (message "Expecting \`...\' to be owned by 7777.")
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -9303,100 +10721,101 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting ... to be owned by 7777."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 7777 [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 7777 [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 7777 [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\]))
+
+ (should (progn (message "%s(): Expecting ... to be owned by 7777."
test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 7777 [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 7777 [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 7777 [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (cdmt-newc-test-save)))
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-newc-cpio-dired-do-chown-1 ()
"Test the change-owner-user function of M-x cpio-dired-do-chown."
@@ -9407,25 +10826,26 @@ TRAILER!!! (( filename ))
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-newc-reset 'make)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (cdmt-reset 'make)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(setq unread-command-events (listify-key-sequence "9999:1111\n"))
(cpio-dired-do-chown 1)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting an untouched archive. (11010)"
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
-
- (should (and "Expecting entry 'a' to have owner 9999 and group 1111."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "%s(): Expecting an untouched archive. (11010)"
test-name)
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+
+ (should (progn (message "%s(): Expecting entry 'a' to have owner 9999 and
group 1111." test-name)
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 9999 1111 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -9446,118 +10866,120 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting entry 'a' to have owner 9999 and group 1111."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 9999 1111 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\]))
-" cpio-catalog-contents-after)))
- (cdmt-newc-reset)
+ (should (progn (message "%s(): Expecting entry 'a' to have owner 9999 and
group 1111." test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 9999 1111 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«))
+" cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (cdmt-reset)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(dired-next-line 2)
(setq unread-command-events (listify-key-sequence "8888:2222\n"))
(cpio-dired-do-chown 4)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "%s(): Expecting an untouched archive. (9918)"
test-name)
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting an untouched archive. (9918)"
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting 4 entries with owner 8888 and group 2222."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (should (progn (message "%s(): Expecting 4 entries with owner 8888 and
group 2222." test-name)
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -9578,118 +11000,120 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting 4 entries with owner 8888 and group 2222."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 8888 2222 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 8888 2222 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 8888 2222 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 8888 2222 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\]))
-" cpio-catalog-contents-after)))
-
- (cdmt-newc-reset)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (should (progn (message "%s(): Expecting 4 entries with owner 8888 and
group 2222." test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 8888 2222 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 8888 2222 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 8888 2222 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 8888 2222 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«))
+" cpio-catalog-contents-after)))
+
+ (cdmt-reset)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark-entries-regexp "\\`...\\'")
(setq unread-command-events (listify-key-sequence "7777:3333\n"))
(cpio-dired-do-chown 1)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "%s(): Expecting an untouched archive. (9958)"
test-name)
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting an untouched archive. (9958)"
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting \`...\' to have owner 7777 and group 3333."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (should (progn (message "%s(): Expecting \`...\' to have owner 7777 and
group 3333." test-name)
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -9710,106 +11134,107 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting ... to have owner 7777 and group 3333."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 7777 3333 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 7777 3333 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 7777 3333 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\]))
-" cpio-catalog-contents-after)))
- (cdmt-newc-test-save)))
+ (should (progn (message "%s(): Expecting ... to have owner 7777 and group
3333." test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 7777 3333 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 7777 3333 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 7777 3333 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«))
+" cpio-catalog-contents-after)))
+
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-newc-cpio-dired-do-compress ()
"Test cpio-dired-do-compress.
cpio-dired-do-compress is not yet implemented -- expect an error."
(should-error (cpio-dired-do-compress)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-do-copy-0 () ;✓
"Test the function of M-x cpio-do-copy."
@@ -9820,22 +11245,24 @@ cpio-dired-do-compress is not yet implemented --
expect an error."
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
-
- (cdmt-newc-reset 'make)
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (message "%s(): starting." test-name)
+
+ (cdmt-reset 'make)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(setq unread-command-events (listify-key-sequence "d\n"))
(cpio-dired-do-copy 1)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "Checking that entry »a« has been copied to »d«."
- (string-equal "070701 (( magic ))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "%s(): Checking that entry »a« has been copied to
»d«." test-name)
+ (string-equal "070701 (( magic ))
DEADBEEF (( ino ))
000081A4 (( mode ))
000003E8 (( uid ))
@@ -10170,8 +11597,9 @@ a
" cpio-archive-buffer-contents)))
- (should (and "Checking that there is an entry »d« in the dired style buffer."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+
+ (should (progn (message "%s(): Checking that there is an entry »d« in the
dired style buffer." test-name)
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -10193,132 +11621,134 @@ a
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} d
" cpio-dired-buffer-contents)))
- (should (and "Expecting to see an entry »d«."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"d\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"d\"]
-\\s-+#<marker at 2197 in alphabet_small\.newc\.cpio> #<marker at 2309 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\]))
-" cpio-catalog-contents-after)))
- (cdmt-newc-test-save)))
+ (should (progn (message "%s(): Expecting to see an entry »d«." test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨d¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨d¨«
+\\s-+#<marker at 2197 in alphabet_small\.newc\.cpio> #<marker at 2309 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«))
+" cpio-catalog-contents-after)))
+
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-newc-cpio-dired-do-copy-1 () ;✓
"Test the function of M-x cpio-do-copy."
:expected-result :failed
- (let ((test-name "cdmt-newc-cpio-dired-do-copy")
+ (let ((test-name "cdmt-newc-cpio-dired-do-copy-1")
(cpio-archive-buffer)
(cpio-archive-buffer-contents)
(cpio-dired-buffer)
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
-
- (cdmt-newc-reset 'make)
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (message "%s(): starting." test-name)
+
+ (cdmt-reset 'make)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(dired-next-line 2)
(setq unread-command-events (listify-key-sequence "newDirectory\n"))
(cpio-dired-do-copy 4)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
;; HEREHERE I think that this expected value is incorrect.
;; It implies an archive with two entries
;; whose padding does not end after a (mod ... *cpio-padding-modulus*) = 0
@@ -10326,11 +11756,11 @@ C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
;; However, cpio(1GNU) seems to cope with it.
;; Note the use of the term character position, since cpio counts
characters
;; starting at 0, while emacs starts counting (point) at 1.
- (should (and "Checking for »aaa«, »aaaa«, »aaaaa«, »aaaaa« copied to
newDirectory in the archive."
- (string-equal "uNlIkElY" cpio-archive-buffer-contents)))
-
- (should (and "Checking for the presence of »newDirectory/aaa«,
»newDirectory/aaaa«, »newDirectory/aaaaa«, »newDirectory/aaaaa«."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (should (progn (message "%s(): Checking for »aaa«, »aaaa«, »aaaaa«,
»aaaaa« copied to newDirectory in the archive." test-name)
+ (string-equal "uNlIkElY" cpio-archive-buffer-contents)))
+
+ (should (progn (message "%s(): Checking for the presence of
»newDirectory/aaa«, »newDirectory/aaaa«, »newDirectory/aaaaa«,
»newDirectory/aaaaa«." test-name)
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -10355,9 +11785,10 @@ C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory/aaaa
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory/aaa
" cpio-dired-buffer-contents)))
- (should (string-match "uNlIkElY" cpio-catalog-contents-after))
- (cdmt-newc-test-save)))
+ (should (string-match "uNlIkElY" cpio-catalog-contents-after))
+
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-newc-cpio-dired-do-copy-2 () ;✓
"Test the function of M-x cpio-do-copy operating on multiple entries."
@@ -10369,22 +11800,24 @@ C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-newc-reset 'make)
-
+ (message "%s(): starting." test-name)
+
+ (cdmt-reset 'make)
+
(progn (cpio-dired-mark-entries-regexp "\\`...\\'")
(setq unread-command-events (listify-key-sequence
"newDirectory-1\n"))
(cpio-dired-do-copy 1)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting an archive with each 3 letter entry copied to
newDirectory-1."
- (string-equal "070701 (( magic ))
+ (should (progn (message "%s(): Expecting an archive with each 3 letter
entry copied to newDirectory-1." test-name)
+ (string-equal "070701 (( magic ))
DEADBEEF (( ino ))
000081A4 (( mode ))
000003E8 (( uid ))
@@ -10755,8 +12188,9 @@ aaa
\\0\\0
" cpio-archive-buffer-contents)))
- (should (and (message "Expecting a dired-style buffer with 3 entries in
newDirectory-1")
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+
+ (should (progn (message "%s(): Expecting a dired-style buffer with 3
entries in newDirectory-1." test-name)
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -10780,115 +12214,117 @@ C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+
6 \\(?:a\\(?:pr\\|ug\\)\\|de
C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory-1/bbb
C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory-1/aaa
" cpio-dired-buffer-contents)))
- (should (and "Expecting to see ... entries in newDirectory-1."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"newDirectory-1/ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 0
\"newDirectory-1/ccc\"]
-\\s-+#<marker at 2197 in alphabet_small\.newc\.cpio> #<marker at 2329 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"newDirectory-1/bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 0
\"newDirectory-1/bbb\"]
-\\s-+#<marker at 2337 in alphabet_small\.newc\.cpio> #<marker at 2469 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
-\\s-+(\"newDirectory-1/aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 0
\"newDirectory-1/aaa\"]
-\\s-+#<marker at 2477 in alphabet_small\.newc\.cpio> #<marker at 2609 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\]))
+
+ (should (progn (message "%s(): Expecting to see ... entries in
newDirectory-1." test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨newDirectory-1/ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 0
¨newDirectory-1/ccc¨«
+\\s-+#<marker at 2197 in alphabet_small\.newc\.cpio> #<marker at 2329 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨newDirectory-1/bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 0
¨newDirectory-1/bbb¨«
+\\s-+#<marker at 2337 in alphabet_small\.newc\.cpio> #<marker at 2469 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+\\s-+(¨newDirectory-1/aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 0
¨newDirectory-1/aaa¨«
+\\s-+#<marker at 2477 in alphabet_small\.newc\.cpio> #<marker at 2609 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
+
+ (cdmt-test-save *cdmt-archive-format*)))
- (cdmt-newc-test-save)))
(ert-deftest cdmt-newc-cpio-dired-do-copy-3 () ;✓
"Test the function of M-x cpio-do-copy."
@@ -10899,26 +12335,27 @@ C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|de
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
-
- (cdmt-newc-reset 'make)
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (message "%s(): starting." test-name)
+
+ (cdmt-reset 'make)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark-entries-regexp "...")
(setq unread-command-events (listify-key-sequence
"newDirectory-3\n"))
(cpio-dired-do-copy 1)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
;; HEREHERE Once again, I think this archive has some incorrect
;; entry padding.
- (should (and "Expecting an archive with each entry named with at least 3
letters copied to newDirectory-3."
- (string-equal "070701 (( magic ))
+ (should (progn (message "%s(): Expecting an archive with each entry named
with at least 3 letters copied to newDirectory-3." test-name)
+ (string-equal "070701 (( magic ))
DEADBEEF (( ino ))
000081A4 (( mode ))
000003E8 (( uid ))
@@ -11443,8 +12880,8 @@ aaa
\\0\\0
" cpio-archive-buffer-contents)))
- (should (and "Expecting all entries named with at least 3 letters to have
copies in newDirectory-3."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (should (progn (message "%s(): Expecting all entries named with at least 3
letters to have copies in newDirectory-3." test-name)
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -11477,166 +12914,167 @@ C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+
8 \\(?:a\\(?:pr\\|ug\\)\\|de
C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory-3/aaaa
C -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory-3/aaa
" cpio-dired-buffer-contents)))
- (should (and "Expecting all entries named with at least 3 letters to have
copies in newDirectory-3."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-3/ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 23 0
\"newDirectory-3/ccccc\.d\"]
-\\s-+#<marker at 2197 in alphabet_small\.newc\.cpio> #<marker at 2333 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-3/ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 21 0
\"newDirectory-3/ccccc\"]
-\\s-+#<marker at 2333 in alphabet_small\.newc\.cpio> #<marker at 2465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-3/cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 20 0
\"newDirectory-3/cccc\"]
-\\s-+#<marker at 2473 in alphabet_small\.newc\.cpio> #<marker at 2605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-3/ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 0
\"newDirectory-3/ccc\"]
-\\s-+#<marker at 2613 in alphabet_small\.newc\.cpio> #<marker at 2745 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-3/bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 23 0
\"newDirectory-3/bbbbb\.d\"]
-\\s-+#<marker at 2753 in alphabet_small\.newc\.cpio> #<marker at 2889 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-3/bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 21 0
\"newDirectory-3/bbbbb\"]
-\\s-+#<marker at 2889 in alphabet_small\.newc\.cpio> #<marker at 3021 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-3/bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 20 0
\"newDirectory-3/bbbb\"]
-\\s-+#<marker at 3029 in alphabet_small\.newc\.cpio> #<marker at 3161 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-3/bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 0
\"newDirectory-3/bbb\"]
-\\s-+#<marker at 3169 in alphabet_small\.newc\.cpio> #<marker at 3301 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-3/aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 23 0
\"newDirectory-3/aaaaa\.d\"]
-\\s-+#<marker at 3309 in alphabet_small\.newc\.cpio> #<marker at 3445 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-3/aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 21 0
\"newDirectory-3/aaaaa\"]
-\\s-+#<marker at 3445 in alphabet_small\.newc\.cpio> #<marker at 3577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-3/aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 20 0
\"newDirectory-3/aaaa\"]
-\\s-+#<marker at 3585 in alphabet_small\.newc\.cpio> #<marker at 3717 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-3/aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 0
\"newDirectory-3/aaa\"]
-\\s-+#<marker at 3725 in alphabet_small\.newc\.cpio> #<marker at 3857 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\]))
-" cpio-catalog-contents-after)))
- (cdmt-newc-test-save)))
+ (should (progn (message "%s(): Expecting all entries named with at least 3
letters to have copies in newDirectory-3." test-name)
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨newDirectory-3/ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 23 0
¨newDirectory-3/ccccc\.d¨«
+\\s-+#<marker at 2197 in alphabet_small\.newc\.cpio> #<marker at 2333 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨newDirectory-3/ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 21 0
¨newDirectory-3/ccccc¨«
+\\s-+#<marker at 2333 in alphabet_small\.newc\.cpio> #<marker at 2465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨newDirectory-3/cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 20 0
¨newDirectory-3/cccc¨«
+\\s-+#<marker at 2473 in alphabet_small\.newc\.cpio> #<marker at 2605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨newDirectory-3/ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 0
¨newDirectory-3/ccc¨«
+\\s-+#<marker at 2613 in alphabet_small\.newc\.cpio> #<marker at 2745 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨newDirectory-3/bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 23 0
¨newDirectory-3/bbbbb\.d¨«
+\\s-+#<marker at 2753 in alphabet_small\.newc\.cpio> #<marker at 2889 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨newDirectory-3/bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 21 0
¨newDirectory-3/bbbbb¨«
+\\s-+#<marker at 2889 in alphabet_small\.newc\.cpio> #<marker at 3021 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨newDirectory-3/bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 20 0
¨newDirectory-3/bbbb¨«
+\\s-+#<marker at 3029 in alphabet_small\.newc\.cpio> #<marker at 3161 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨newDirectory-3/bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 0
¨newDirectory-3/bbb¨«
+\\s-+#<marker at 3169 in alphabet_small\.newc\.cpio> #<marker at 3301 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨newDirectory-3/aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 23 0
¨newDirectory-3/aaaaa\.d¨«
+\\s-+#<marker at 3309 in alphabet_small\.newc\.cpio> #<marker at 3445 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨newDirectory-3/aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 21 0
¨newDirectory-3/aaaaa¨«
+\\s-+#<marker at 3445 in alphabet_small\.newc\.cpio> #<marker at 3577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨newDirectory-3/aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 20 0
¨newDirectory-3/aaaa¨«
+\\s-+#<marker at 3585 in alphabet_small\.newc\.cpio> #<marker at 3717 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨newDirectory-3/aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 0
¨newDirectory-3/aaa¨«
+\\s-+#<marker at 3725 in alphabet_small\.newc\.cpio> #<marker at 3857 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«))
+" cpio-catalog-contents-after)))
+
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-newc-cpio-dired-do-copy-regexp ()
"Test cpio-dired-do-copy-regexp.
cpio-dired-do-copy-regexp is not yet implemented -- expect an error."
(should-error (cpio-dired-do-copy-regexp)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-do-delete () ;✓
"Test the function of M-x cpio-dired-do-delete."
@@ -11647,21 +13085,23 @@ cpio-dired-do-copy-regexp is not yet implemented --
expect an error."
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-newc-reset 'make)
+ (message "%s(): starting." test-name)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (cdmt-reset 'make)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-do-delete 1)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting entry »a« to be deleted."
- (string-equal "070701 (( magic ))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "%s(): Expecting entry »a« to be deleted."
test-name)
+ (string-equal "070701 (( magic ))
DEADBEEF (( ino ))
000081A4 (( mode ))
000003E8 (( uid ))
@@ -11975,8 +13415,9 @@ DEADBEEF (( rdev min ))
TRAILER!!! (( filename ))
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
" cpio-archive-buffer-contents)))
- (should (and "Expecting entry »a« to be deleted."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+
+ (should (progn (message "%s(): Expecting entry »a« to be deleted."
test-name)
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaa
@@ -11996,108 +13437,109 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting a catalog with entry »a« deleted."
- (string-match "((\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 117 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 125 in alphabet_small\.newc\.cpio> #<marker at 241 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 249 in alphabet_small\.newc\.cpio> #<marker at 365 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 373 in alphabet_small\.newc\.cpio> #<marker at 489 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 497 in alphabet_small\.newc\.cpio> #<marker at 617 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 617 in alphabet_small\.newc\.cpio> #<marker at 729 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 849 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 857 in alphabet_small\.newc\.cpio> #<marker at 973 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 981 in alphabet_small\.newc\.cpio> #<marker at 1097 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 1105 in alphabet_small\.newc\.cpio> #<marker at 1221 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1229 in alphabet_small\.newc\.cpio> #<marker at 1349 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1349 in alphabet_small\.newc\.cpio> #<marker at 1461 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1581 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1589 in alphabet_small\.newc\.cpio> #<marker at 1705 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1713 in alphabet_small\.newc\.cpio> #<marker at 1829 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1837 in alphabet_small\.newc\.cpio> #<marker at 1953 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 1961 in alphabet_small\.newc\.cpio> #<marker at 2081 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\]))
-" cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (should (progn (message "%s(): Expecting a catalog with entry »a«
deleted." test-name)
+ (string-match "((¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 117 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 125 in alphabet_small\.newc\.cpio> #<marker at 241 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 249 in alphabet_small\.newc\.cpio> #<marker at 365 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 373 in alphabet_small\.newc\.cpio> #<marker at 489 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 497 in alphabet_small\.newc\.cpio> #<marker at 617 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 617 in alphabet_small\.newc\.cpio> #<marker at 729 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 849 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 857 in alphabet_small\.newc\.cpio> #<marker at 973 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 981 in alphabet_small\.newc\.cpio> #<marker at 1097 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 1105 in alphabet_small\.newc\.cpio> #<marker at 1221 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1229 in alphabet_small\.newc\.cpio> #<marker at 1349 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1349 in alphabet_small\.newc\.cpio> #<marker at 1461 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1581 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1589 in alphabet_small\.newc\.cpio> #<marker at 1705 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1713 in alphabet_small\.newc\.cpio> #<marker at 1829 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1837 in alphabet_small\.newc\.cpio> #<marker at 1953 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 1961 in alphabet_small\.newc\.cpio> #<marker at 2081 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«))
+" cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(dired-next-line 2)
(cpio-dired-do-delete 4)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "$xpecting an archive with one archive deleted but otherwise
unchanged."
- (string-equal "070701 (( magic ))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "%s(): $xpecting an archive with one archive
deleted but otherwise unchanged." test-name)
+ (string-equal "070701 (( magic ))
DEADBEEF (( ino ))
000081A4 (( mode ))
000003E8 (( uid ))
@@ -12342,8 +13784,9 @@ DEADBEEF (( rdev min ))
TRAILER!!! (( filename ))
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
" cpio-archive-buffer-contents)))
- (should (and "Expecting a cpio-dired buffer with 4 more entries deleted."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+
+ (should (progn (message "%s(): Expecting a cpio-dired buffer with 4 more
entries deleted." test-name)
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaa
@@ -12359,90 +13802,91 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting a catalog with entries"
- " »aaaa«, »aaaaa«, »aaaaa.d« and »b« deleted."
- (string-match "((\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 117 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 125 in alphabet_small\.newc\.cpio> #<marker at 241 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 249 in alphabet_small\.newc\.cpio> #<marker at 365 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 373 in alphabet_small\.newc\.cpio> #<marker at 489 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 497 in alphabet_small\.newc\.cpio> #<marker at 613 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 621 in alphabet_small\.newc\.cpio> #<marker at 737 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 745 in alphabet_small\.newc\.cpio> #<marker at 865 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 865 in alphabet_small\.newc\.cpio> #<marker at 977 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 981 in alphabet_small\.newc\.cpio> #<marker at 1097 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1105 in alphabet_small\.newc\.cpio> #<marker at 1221 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1229 in alphabet_small\.newc\.cpio> #<marker at 1345 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1353 in alphabet_small\.newc\.cpio> #<marker at 1469 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 1477 in alphabet_small\.newc\.cpio> #<marker at 1597 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\]))
-" cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (should (progn (message "%s(): Expecting a catalog with entries" test-name)
+ (message " »aaaa«, »aaaaa«, »aaaaa.d« and »b« deleted.")
+ (string-match "((¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 117 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 125 in alphabet_small\.newc\.cpio> #<marker at 241 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 249 in alphabet_small\.newc\.cpio> #<marker at 365 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 373 in alphabet_small\.newc\.cpio> #<marker at 489 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 497 in alphabet_small\.newc\.cpio> #<marker at 613 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 621 in alphabet_small\.newc\.cpio> #<marker at 737 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 745 in alphabet_small\.newc\.cpio> #<marker at 865 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 865 in alphabet_small\.newc\.cpio> #<marker at 977 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 981 in alphabet_small\.newc\.cpio> #<marker at 1097 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1105 in alphabet_small\.newc\.cpio> #<marker at 1221 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1229 in alphabet_small\.newc\.cpio> #<marker at 1345 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1353 in alphabet_small\.newc\.cpio> #<marker at 1469 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 1477 in alphabet_small\.newc\.cpio> #<marker at 1597 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«))
+" cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark-entries-regexp "\\`...\\'")
(setq unread-command-events (listify-key-sequence "\n"))
(cpio-dired-do-delete 1)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting an archive with ... deleted."
- (string-equal "070701 (( magic ))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "%s(): Expecting an archive with ... deleted."
test-name)
+ (string-equal "070701 (( magic ))
DEADBEEF (( ino ))
000081A4 (( mode ))
000003E8 (( uid ))
@@ -12633,8 +14077,9 @@ DEADBEEF (( rdev min ))
TRAILER!!! (( filename ))
\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0
[...]
" cpio-archive-buffer-contents)))
- (should (and "Expecting a cpio-dired buffer with ... all deleted."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+
+ (should (progn (message "%s(): Expecting a cpio-dired buffer with ... all
deleted." test-name)
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bb
@@ -12647,102 +14092,103 @@ TRAILER!!! (( filename ))
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting a catalog with further entries \`...\' deleted."
- (string-match "((\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 117 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 125 in alphabet_small\.newc\.cpio> #<marker at 241 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 249 in alphabet_small\.newc\.cpio> #<marker at 365 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 373 in alphabet_small\.newc\.cpio> #<marker at 489 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 497 in alphabet_small\.newc\.cpio> #<marker at 617 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 617 in alphabet_small\.newc\.cpio> #<marker at 729 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 849 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 857 in alphabet_small\.newc\.cpio> #<marker at 973 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 981 in alphabet_small\.newc\.cpio> #<marker at 1097 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 1105 in alphabet_small\.newc\.cpio> #<marker at 1225 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\]))
-" cpio-catalog-contents-after)))
- (cdmt-newc-test-save)))
+ (should (progn (message "%s(): Expecting a catalog with further entries
\`...\' deleted." test-name)
+ (string-match "((¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 117 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 125 in alphabet_small\.newc\.cpio> #<marker at 241 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 249 in alphabet_small\.newc\.cpio> #<marker at 365 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 373 in alphabet_small\.newc\.cpio> #<marker at 489 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 497 in alphabet_small\.newc\.cpio> #<marker at 617 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 617 in alphabet_small\.newc\.cpio> #<marker at 729 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 849 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 857 in alphabet_small\.newc\.cpio> #<marker at 973 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 981 in alphabet_small\.newc\.cpio> #<marker at 1097 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 1105 in alphabet_small\.newc\.cpio> #<marker at 1225 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«))
+" cpio-catalog-contents-after)))
+
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-newc-cpio-dired-do-flagged-delete ()
"Test cpio-dired-do-flagged-delete.
cpio-dired-do-flagged-delete is not yet implemented -- expect an error."
(should-error (cpio-dired-do-flagged-delete)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-do-hardlink ()
"Test cpio-dired-do-hardlink.
cpio-dired-do-hardlink is not yet implemented -- expect an error."
(should-error (cpio-dired-do-hardlink)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-do-hardlink-regexp ()
"Test cpio-dired-do-hardlink-regexp.
cpio-dired-do-hardlink-regexp is not yet implemented -- expect an error."
(should-error (cpio-dired-do-hardlink-regexp)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-do-kill-lines ()
"Test cpio-dired-do-kill-lines.
cpio-dired-do-kill-lines is not yet implemented -- expect an error."
(should-error (cpio-dired-do-kill-lines)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-do-print ()
"Test cpio-dired-do-print.
cpio-dired-do-print is not yet implemented -- expect an error."
(should-error (cpio-dired-do-print)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-do-query-replace-regexp ()
"Test cpio-dired-do-query-replace-regexp.
cpio-dired-do-query-replace-regexp is not yet implemented -- expect an error."
(should-error (cpio-dired-do-query-replace-regexp)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-do-redisplay ()
"Test cpio-dired-do-redisplay.
cpio-dired-do-redisplay is not yet implemented -- expect an error."
(should-error (cpio-dired-do-redisplay)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-do-rename () ;✓
(let ((test-name "cdmt-newc-cpio-dired-do-rename")
@@ -12752,27 +14198,27 @@ cpio-dired-do-redisplay is not yet implemented --
expect an error."
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
-
- (cdmt-newc-reset 'make)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (cdmt-reset 'make)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(setq unread-command-events (listify-key-sequence "d\n"))
(cpio-dired-do-rename 1)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting an untouched archive."
- "The archive gets updated on save."
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
-
- (should (and "Expecting a dired buffer with no entry »a«, but an entry
»d«."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "Expecting an untouched archive.")
+ (message "The archive gets updated on save.")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+
+ (should (progn (message "Expecting a dired buffer with no entry »a«, but
an entry »d«.")
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} d
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -12794,117 +14240,117 @@ cpio-dired-do-redisplay is not yet implemented --
expect an error."
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting catalog with first entry »d«."
- (string-match "((\"d\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"d\"]
-\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\]))
+ (should (progn (message "Expecting catalog with first entry »d«.")
+ (string-match "((¨d¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨d¨«
+\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-next-line 2)
(setq unread-command-events (listify-key-sequence "newDirectory\n"))
(cpio-dired-do-rename 4)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting an as yet unchanged archive."
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting a dired style buffer with entries »aaaa«, »aaaaa«,
»aaaaa.d« and »b« moved to »newDirectory«."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (should (progn (message "Expecting an as yet unchanged archive.")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+
+ (should (progn (message "Expecting a dired style buffer with entries
»aaaa«, »aaaaa«, »aaaaa.d« and »b« moved to »newDirectory«.")
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} d
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -12925,118 +14371,118 @@ cpio-dired-do-redisplay is not yet implemented --
expect an error."
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
-
- (should (and "Expecting a catalog with the above changes."
- (string-match "((\"d\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"d\"]
-\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory/aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 17 0
\"newDirectory/aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory/aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 18 0
\"newDirectory/aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory/aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 0
\"newDirectory/aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory/aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 21 0
\"newDirectory/aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\]))
+
+ (should (progn (message "Expecting a catalog with the above changes.")
+ (string-match "((¨d¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨d¨«
+\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨newDirectory/aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 17 0
¨newDirectory/aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨newDirectory/aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 18 0
¨newDirectory/aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨newDirectory/aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 0
¨newDirectory/aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨newDirectory/aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 21 0
¨newDirectory/aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark-entries-regexp "\\`...\\'")
(setq unread-command-events (listify-key-sequence
"newDirectory-1\n"))
(cpio-dired-do-rename 1)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting an as yet unchanged archive."
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
-
- (should (and "Expecting a dired buffer with \`...\' all under
newDirectory-1."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "Expecting an as yet unchanged archive.")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+
+ (should (progn (message "Expecting a dired buffer with \`...\' all under
newDirectory-1.")
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} d
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -13057,160 +14503,338 @@ cpio-dired-do-redisplay is not yet implemented --
expect an error."
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting a catalog with \`...\' entries in newDirectory-1."
- (string-match "((\"d\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"d\"]
-\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory/aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 17 0
\"newDirectory/aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory/aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 18 0
\"newDirectory/aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory/aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 0
\"newDirectory/aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory/aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 21 0
\"newDirectory/aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-1/bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 0
\"newDirectory-1/bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"newDirectory-1/ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 0
\"newDirectory-1/ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\]))
-" cpio-catalog-contents-after)))
- (cdmt-newc-test-save)))
+ (should (progn (message "Expecting a catalog with \`...\' entries in
newDirectory-1.")
+ (string-match "((¨d¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨d¨«
+\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨newDirectory/aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 17 0
¨newDirectory/aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨newDirectory/aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 18 0
¨newDirectory/aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨newDirectory/aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 0
¨newDirectory/aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨newDirectory/aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 21 0
¨newDirectory/aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨newDirectory-1/bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 0
¨newDirectory-1/bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨newDirectory-1/ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 19 0
¨newDirectory-1/ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«))
+" cpio-catalog-contents-after)))
+
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-newc-cpio-dired-do-rename-regexp ()
"Test cpio-dired-do-rename-regexp.
cpio-dired-do-rename-regexp is not yet implemented -- expect an error."
(should-error (cpio-dired-do-rename-regexp)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-do-search () ;HEREHERE ()
"Test cpio-dired-do-search) ;HEREHERE.
cpio-dired-do-search) ;HEREHERE is not yet implemented -- expect an error."
(should-error (cpio-dired-do-search)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-do-symlink ()
"Test cpio-dired-do-symlink.
cpio-dired-do-symlink is not yet implemented -- expect an error."
(should-error (cpio-dired-do-symlink)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-do-symlink-regexp ()
"Test cpio-dired-do-symlink-regexp.
cpio-dired-do-symlink-regexp is not yet implemented -- expect an error."
(should-error (cpio-dired-do-symlink-regexp)
- :type 'error))
+ :type 'error))
+;; MAINTENANCE Date formats age. Some of these results will fail in 6 months.
(ert-deftest cdmt-newc-cpio-dired-do-touch ()
- "Test cpio-dired-do-touch.
-cpio-dired-do-touch is not yet implemented -- expect an error."
- (should-error (cpio-dired-do-touch)
- :type 'error))
-
+ "Test cpio-dired-do-touch."
+ ;; Test this one by hand because the original mod times will change.
+ (should-error (cpio-dired-do-symlink-regexp)
+ :type 'error)
+;;;; (let ((test-name "cdmt-newc-cpio-dired-find-entry")
+;;;; (cpio-archive-buffer)
+;;;; (cpio-archive-buffer-contents)
+;;;; (cpio-dired-buffer)
+;;;; (cpio-dired-buffer-contents)
+;;;; (cpio-catalog-contents-before)
+;;;; (cpio-catalog-contents-after)
+;;;; (cpio-contents-window)
+;;;; (entry-name)
+;;;; (past-entries ())
+;;;; (time-str))
+;;;;
+;;;; (cdmt-reset 'make)
+
+;;;; (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
+;;;; (setq entry-name "aaa")
+;;;; (cpio-dired-goto-entry entry-name)
+;;;; (setq time-str "2018 Nov 1")
+;;;; (setq unread-command-events (listify-key-sequence (format "%s\n"
time-str)))
+;;;; (cpio-dired-do-touch 1)
+;;;;
+;;;; (setq cpio-archive-buffer-contents
+;;;; (cdmt-filter-archive-contents
+;;;; (with-current-buffer cpio-archive-buffer
+;;;; (buffer-substring-no-properties (point-min) (point-max)))
'keep-mtime))
+;;;; (setq cpio-dired-buffer-contents
+;;;; (with-current-buffer cpio-dired-buffer
+;;;; (buffer-substring-no-properties (point-min) (point-max))))
+;;;; (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog
'keep-mtime)))
+;;;;
+;;;; (should (progn (message "%s(): Expecting a dired buffer with »aaa«
having a modification time of »%s«." test-name time-str)
+;;;; (string-match "CPIO archive: alphabet_small.newc.cpio:
+;;;;
+;;;; -rw-r--r-- 1 1000 1000 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
+;;;; -rw-r--r-- 1 1000 1000 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
+;;;; -rw-r--r-- 1 1000 1000 6 Nov 01 00:00 aaa
+;;;; -rw-r--r-- 1 1000 1000 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaa
+;;;; -rw-r--r-- 1 1000 1000 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa
+;;;; drwxr-xr-x 2 1000 1000 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aaaaa.d
+;;;; -rw-r--r-- 1 1000 1000 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} b
+;;;; -rw-r--r-- 1 1000 1000 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bb
+;;;; -rw-r--r-- 1 1000 1000 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbb
+;;;; -rw-r--r-- 1 1000 1000 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbb
+;;;; -rw-r--r-- 1 1000 1000 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb
+;;;; drwxr-xr-x 2 1000 1000 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} bbbbb.d
+;;;; -rw-r--r-- 1 1000 1000 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} c
+;;;; -rw-r--r-- 1 1000 1000 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cc
+;;;; -rw-r--r-- 1 1000 1000 6
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccc
+;;;; -rw-r--r-- 1 1000 1000 7
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} cccc
+;;;; -rw-r--r-- 1 1000 1000 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
+;;;; drwxr-xr-x 2 1000 1000 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d\n"
+;;;; cpio-dired-buffer-contents)))
+;;;;
+;;;; ;; (should (progn (message "%s(): Expecting an archive with »aaa«
having a modification time of »%s«" test-name time-str)
+;;;; (should (string-equal "uNlIkElY" cpio-archive-buffer-contents))
+;;;;
+;;;; ;; (should (progn (message "%s: Expecting a catalog with »aaa« having
a modification time of »%s«" test-name time-str)
+;;;; (should (string-equal "uNlIkElY" cpio-catalog-contents-after))
+;;;;
+;;;; (cpio-reset 'make)
+;;;;
+;;;; (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
+;;;; (setq entry-name "b")
+;;;; (cpio-dired-goto-entry entry-name)
+;;;; (cpio-dired-mark 4)
+;;;; (setq time-str "2018 Nov 2 1:02:03")
+;;;; (setq unread-command-events (listify-key-sequence (format "%s\n"
time-str)))
+;;;; (cpio-dired-do-touch 1)
+;;;;
+;;;; (setq cpio-archive-buffer-contents
+;;;; (cdmt-filter-archive-contents
+;;;; (with-current-buffer cpio-archive-buffer
+;;;; (buffer-substring-no-properties (point-min) (point-max)))))
+;;;; (setq cpio-dired-buffer-contents
+;;;; (with-current-buffer cpio-dired-buffer
+;;;; (buffer-substring-no-properties (point-min) (point-max))))
+;;;; (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+;;;;
+;;;; ;; (should (progn (message "%s(): Expecting a dired buffer with files
starting sith »b«" test-name
+;;;; ;; (message "%s "having modification times of »2018 Nov 2 1:02:03«."
test-name
+;;;; (should (string-equal "uNlIkElY" cpio-dired-buffer-ontents))
+;;;;
+;;;; ;; (should (progn (message "%s(): Expecting an archive with »aaa«
having a modification time of »2018 Nov 2 1:02:03«" test-name)
+;;;; (should (string-equal "uNlIkElY" cpio-archive-buffer-contents))
+;;;;
+;;;; ;; (should (progn (message "%s: Expecting a catalog with »aaa« having
a modification time of »2018 Nov 2 1:02:03«" test-name)
+;;;; (should (string-equal "uNlIkElY" cpio-catalog-contents-after))
+;;;;
+;;;; (cpio-reset 'make)
+;;;;
+;;;; (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
+;;;; (setq entry-name "c")
+;;;; (cpio-dired-goto-entry entry-name)
+;;;; (cpio-dired-mark 4)
+;;;; (setq time-str "2018-11-24 05:06:07")
+;;;; (setq unread-command-events (listify-key-sequence (format "%s\n"
time-str)))
+;;;; (cpio-dired-do-touch 4)
+;;;;
+;;;; (setq cpio-archive-buffer-contents
+;;;; (cdmt-filter-archive-contents
+;;;; (with-current-buffer cpio-archive-buffer
+;;;; (buffer-substring-no-properties (point-min) (point-max)))))
+;;;; (setq cpio-dired-buffer-contents
+;;;; (with-current-buffer cpio-dired-buffer
+;;;; (buffer-substring-no-properties (point-min) (point-max))))
+;;;; (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+;;;;
+;;;; ;; (should (progn (message "%s(): Expecting a dired buffer with files
starting sith »c«" test-name
+;;;; ;; (message "%s "having modification times of »%s«." test-name
time-str)
+;;;; (should (string-equal "uNlIkElY" cpio-dired-buffer-ontents))
+;;;;
+;;;; ;; (should (progn (message "%s(): Expecting an archive with »aaa«
having a modification time of »%s«" test-name time-str)
+;;;; (should (string-equal "uNlIkElY" cpio-archive-buffer-contents))
+;;;;
+;;;; ;; (should (progn (message "%s: Expecting a catalog with »aaa« having
a modification time of »%s«" test-name time-str)
+;;;; (should (string-equal "uNlIkElY" cpio-catalog-contents-after))
+;;;;
+;;;; (cpio-reset 'make)
+;;;;
+;;;; (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
+;;;; (setq entry-name "c")
+;;;; (cpio-dired-goto-entry entry-name)
+;;;; (cpio-dired-mark-entries-regexp "\\`...\\'")
+;;;; (setq time-str "2001 january 1 1:01:01")
+;;;; (setq unread-command-events (listify-key-sequence (format "%s\n"
time-str)))
+;;;; (cpio-dired-do-touch 1)
+;;;;
+;;;; (setq cpio-archive-buffer-contents
+;;;; (cdmt-filter-archive-contents
+;;;; (with-current-buffer cpio-archive-buffer
+;;;; (buffer-substring-no-properties (point-min) (point-max)))))
+;;;; (setq cpio-dired-buffer-contents
+;;;; (with-current-buffer cpio-dired-buffer
+;;;; (buffer-substring-no-properties (point-min) (point-max))))
+;;;; (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+;;;;
+;;;; ;; (should (progn (message "%s(): Expecting a dired buffer with
3-char filenames" test-name
+;;;; ;; (message "%s "having modification times of »%s«." test-name
time-str)
+;;;; (should (string-equal "uNlIkElY" cpio-dired-buffer-ontents))
+;;;;
+;;;; ;; (should (progn (message "%s(): Expecting an archive with 3-char
filenames having a modification time of »%s«" test-name time-str)
+;;;; (should (string-equal "uNlIkElY" cpio-archive-buffer-contents))
+;;;;
+;;;; ;; (should (progn (message "%s: Expecting a catalog with 3-char
filenames having a modification time of »%s«" test-name time-str)
+;;;; (should (string-equal "uNlIkElY" cpio-catalog-contents-after))
+;;;;
+;;;; (cpio-reset 'make)
+;;;;
+;;;; (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
+;;;; (setq entry-name "c")
+;;;; (cpio-dired-goto-entry entry-name)
+;;;; (cpio-dired-mark-entries-regexp "\\`....\\'")
+;;;; (setq time-str "1/13/2018 14:15:16")
+;;;; (setq unread-command-events (listify-key-sequence (format "%s\n"
time-str)))
+;;;; (cpio-dired-do-touch 1)
+;;;;
+;;;; (setq cpio-archive-buffer-contents
+;;;; (cdmt-filter-archive-contents
+;;;; (with-current-buffer cpio-archive-buffer
+;;;; (buffer-substring-no-properties (point-min) (point-max)))))
+;;;; (setq cpio-dired-buffer-contents
+;;;; (with-current-buffer cpio-dired-buffer
+;;;; (buffer-substring-no-properties (point-min) (point-max))))
+;;;; (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+;;;;
+;;;; ;; (should (progn (message "%s(): Expecting a dired buffer with
3-char filenames" test-name
+;;;; ;; (message "%s "having modification times of »%s«." test-name
time-str)
+;;;; (should (string-equal "uNlIkElY" cpio-dired-buffer-ontents))
+;;;;
+;;;; ;; (should (progn (message "%s(): Expecting an archive with 3-char
filenames having a modification time of »%s«" test-name time-str)
+;;;; (should (string-equal "uNlIkElY" cpio-archive-buffer-contents))
+;;;;
+;;;; ;; (should (progn (message "%s: Expecting a catalog with 3-char
filenames having a modification time of »%s«" test-name time-str)
+;;;; (should (string-equal "uNlIkElY" cpio-catalog-contents-after))
+;;;;
+;;;; (cdmt-test-save *cdmt-archive-format*)))
+ )
(ert-deftest cdmt-newc-cpio-dired-downcase ()
"Test cpio-dired-downcase.
cpio-dired-downcase is not yet implemented -- expect an error."
(should-error (cpio-dired-downcase)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-extract-all ()
"Test cpio-dired-extract-all.
cpio-dired-extract-all is not yet implemented -- expect an error."
(should-error (cpio-dired-extract-all)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-extract-entries ()
"Test cpio-dired-extract-entries.
cpio-dired-extract-entries is not yet implemented -- expect an error."
(should-error (cpio-dired-extract-entries)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-find-alternate-entry ()
"Test cpio-dired-find-alternate-entry.
cpio-dired-find-alternate-entry is not yet implemented -- expect an error."
(should-error (cpio-dired-find-alternate-entry)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-find-entry () ;✓
"Test the function of M-x cpio-find-entry.
Expect errors about killed buffers.
They reflect an outstanding bug in cpio-affiliated buffers."
-
+
(let ((test-name "cdmt-newc-cpio-dired-find-entry")
(cpio-archive-buffer)
(cpio-archive-buffer-contents)
@@ -13223,9 +14847,10 @@ They reflect an outstanding bug in cpio-affiliated
buffers."
(cpio-contents-window)
(entry-name)
(past-entries ()))
- (cdmt-newc-reset 'make)
+
+ (cdmt-reset 'make)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(setq entry-name "aaa")
(cpio-dired-goto-entry entry-name)
(cpio-dired-display-entry)
@@ -13236,34 +14861,34 @@ They reflect an outstanding bug in cpio-affiliated
buffers."
(buffer-substring-no-properties (point-min) (point-max))))
(setq cpio-contents-window (get-buffer-window
cpio-contents-buffer))
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min)
(point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp
(cpio-catalog))))))
-
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog))))
+
(with-current-buffer cpio-dired-buffer
- (should (and "Expecting an untouched small archive. (14832)"
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting an untouched small dired buffer (14834)"
- (string-match *cdmt-newc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting a real entry contents buffer. (14836)"
- (not (null cpio-contents-buffer))))
- (should (and "...and expecting the entry contents buffer to be live.
(14838)"
- (buffer-live-p cpio-contents-buffer)))
- (should (and (format "Expecting that buffer to contain the contents of
[[%s]]. (14840)" entry-name)
- (string-equal cpio-contents-buffer-string (concat "\n"
entry-name "\n\n"))))
- (should (and "Expecting a live entry contents window. (14842)"
- (window-live-p cpio-contents-window)))
- (should (and "Expecting an unchanged entry contents buffer. (14844)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after))))
-
+ (should (progn (message "Expecting an untouched small archive. (14832)")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "Expecting an untouched small dired buffer
(14834)")
+ (string-match *cdmt-newc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "Expecting a real entry contents buffer.
(14836)")
+ (not (null cpio-contents-buffer))))
+ (should (progn (message "...and expecting the entry contents buffer to
be live. (14838)")
+ (buffer-live-p cpio-contents-buffer)))
+ (should (progn (message (format "Expecting that buffer to contain the
contents of [[%s]]. (14840)" entry-name))
+ (string-equal cpio-contents-buffer-string (concat "\n"
entry-name "\n\n"))))
+ (should (progn (message "Expecting a live entry contents window.
(14842)")
+ (window-live-p cpio-contents-window)))
+ (should (progn (message "Expecting an unchanged entry contents buffer.
(14844)")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after))))
+
(push entry-name past-entries)
(switch-to-buffer cpio-dired-buffer)
-
+
(progn (setq entry-name "ccc")
(cpio-dired-goto-entry entry-name)
(cpio-dired-display-entry)
@@ -13275,37 +14900,37 @@ They reflect an outstanding bug in cpio-affiliated
buffers."
(point-max))))
(setq cpio-contents-window (get-buffer-window
cpio-contents-buffer))
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min)
(point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min)
(point-max))))))
-
+
(with-current-buffer cpio-dired-buffer
- (should (and "Expecting an unchanged small archive. (14870)."
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting an untouched cpio-dired buffer (14872)"
- (string-match *cdmt-newc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "Expecting an unchanged small archive. (14870).")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "Expecting an untouched cpio-dired buffer
(14872)")
+ (string-match *cdmt-newc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
(should (not (null cpio-contents-buffer)))
(should (buffer-live-p cpio-contents-buffer))
(should (string-equal cpio-contents-buffer-string "\nccc\n\n"))
(should (window-live-p cpio-contents-window))
- (should (and "Expecting an unchanged catalog. (17957)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after))))
-
+ (should (progn (message "Expecting an unchanged catalog. (17957)")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after))))
+
;; Now make sure that any past entries are still there.
(mapc (lambda (en)
- (setq cpio-contents-buffer (get-buffer (cpio-contents-buffer-name
entry-name)))
- (setq cpio-contents-buffer-string (with-current-buffer
cpio-contents-buffer
- (buffer-substring-no-properties
(point-min)
-
(point-max))))
- (should (not (null cpio-contents-buffer)))
- (should (buffer-live-p cpio-contents-buffer))
- (should (string-equal cpio-contents-buffer-string (concat "\n"
entry-name "\n\n")))
- (should (window-live-p cpio-contents-window)))
+ (setq cpio-contents-buffer (get-buffer (cpio-contents-buffer-name
entry-name)))
+ (setq cpio-contents-buffer-string (with-current-buffer
cpio-contents-buffer
+ (buffer-substring-no-properties
(point-min)
+
(point-max))))
+ (should (not (null cpio-contents-buffer)))
+ (should (buffer-live-p cpio-contents-buffer))
+ (should (string-equal cpio-contents-buffer-string (concat "\n"
entry-name "\n\n")))
+ (should (window-live-p cpio-contents-window)))
past-entries)
-
+
;; Affiliated buffers don't get killed when the parent does yet.
(push entry-name past-entries)
(mapc (lambda (en)
@@ -13318,7 +14943,7 @@ They reflect an outstanding bug in cpio-affiliated
buffers."
"Test cpio-dired-find-entry-other-window.
cpio-dired-find-entry-other-window is not yet implemented -- expect an error."
(should-error (cpio-dired-find-entry-other-window)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-flag-auto-save-entries () ;✓
"Test the function of M-x cpio-dired-flag-auto-save-entries."
@@ -13329,27 +14954,27 @@ cpio-dired-find-entry-other-window is not yet
implemented -- expect an error."
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-newc-reset 'make)
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (cdmt-reset 'make)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(beginning-of-line)
(while (re-search-forward " \\(.\\)$" (point-max) t)
(setq unread-command-events (listify-key-sequence (concat "#"
(match-string-no-properties 1) "\n")))
(cpio-dired-do-copy 1))
(cpio-dired-flag-auto-save-entries)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting an archive with autosave entries"
- "for each single character entry."
- "(The copy used to create them must update the archive.)"
- (string-equal "070701 (( magic ))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "Expecting an archive with autosave entries")
+ (message "for each single character entry.")
+ (message "(The copy used to create them must update the
archive.)")
+ (string-equal "070701 (( magic ))
DEADBEEF (( ino ))
000081A4 (( mode ))
000003E8 (( uid ))
@@ -13720,8 +15345,9 @@ c
" cpio-archive-buffer-contents)))
- (should (and "Expecting a cpio-dired buffer with an autosave entry for
each onecharacter entry."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+
+ (should (progn (message "Expecting a cpio-dired buffer with an autosave
entry for each onecharacter entry.")
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -13745,125 +15371,126 @@ D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+
4 \\(?:a\\(?:pr\\|ug\\)\\|de
D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} #b
D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} #c
" cpio-dired-buffer-contents)))
- ;; (should (and "Expecting a catalog with autosave entries for each
one-character entry."
- (should (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"#a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"#a\"]
-\\s-+#<marker at 2197 in alphabet_small\.newc\.cpio> #<marker at 2313 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"#b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"#b\"]
-\\s-+#<marker at 2317 in alphabet_small\.newc\.cpio> #<marker at 2433 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"#c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"#c\"]
-\\s-+#<marker at 2437 in alphabet_small\.newc\.cpio> #<marker at 2553 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\]))
-" cpio-catalog-contents-after))))
+
+ (should (progn (message "Expecting a catalog with autosave entries for
each one-character entry.")
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨#a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨#a¨«
+\\s-+#<marker at 2197 in alphabet_small\.newc\.cpio> #<marker at 2313 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨#b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨#b¨«
+\\s-+#<marker at 2317 in alphabet_small\.newc\.cpio> #<marker at 2433 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨#c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨#c¨«
+\\s-+#<marker at 2437 in alphabet_small\.newc\.cpio> #<marker at 2553 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«))
+" cpio-catalog-contents-after)))))
(ert-deftest cdmt-newc-cpio-dired-flag-backup-entries ()
"Test cpio-dired-flag-backup-entries.
cpio-dired-flag-backup-entries is not yet implemented -- expect an error."
(should-error (cpio-dired-flag-backup-entries)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-flag-entries-regexp ()
"Test cpio-dired-flag-entries-regexp.
cpio-dired-flag-entries-regexp is not yet implemented -- expect an error."
(should-error (cpio-dired-flag-entries-regexp)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-flag-entry-deletion () ;✓
"Test the function of M-x cpio-flag-entry-deletion."
@@ -13874,23 +15501,24 @@ cpio-dired-flag-entries-regexp is not yet implemented
-- expect an error."
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-newc-reset 'make)
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (cdmt-reset 'make)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-flag-entry-deletion 1)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "Expecting and unchanged small archive. (15472)")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting and unchanged small archive. (15472)"
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a cpio-dired buffer with one entry flagged for
deletion."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (should (progn (message "Expecting a cpio-dired buffer with one entry
flagged for deletion.")
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -13911,25 +15539,26 @@ D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17958)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (should (progn (message "Expecting an unchanged catalog. (17958)")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(dired-next-line 2)
(cpio-dired-flag-entry-deletion 4)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting and unchanged small archive. (15510)"
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a cpio-dired buffer with another 4 entries flagged
for deletion."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "Expecting and unchanged small archive. (15510)")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "Expecting a cpio-dired buffer with another 4
entries flagged for deletion.")
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -13950,8 +15579,9 @@ D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17959)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+
+ (should (progn (message "Expecting an unchanged catalog. (17959)")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-newc-cpio-dired-flag-garbage-entries ()
"Test cpio-dired-flag-garbage-entries."
@@ -13963,8 +15593,8 @@ D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
(cpio-catalog-contents-before)
(cpio-catalog-contents-after)
(entry-name "aa"))
-
- (cdmt-newc-reset 'make)
+
+ (cdmt-reset 'make)
(progn (setq cpio-catalog-contents-before (cpio-catalog))
(cpio-dired-goto-entry entry-name)
@@ -13974,16 +15604,17 @@ D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|de
(list "aux" "bak" "dvi" "log" "orig" "rej" "toc"))
(cpio-dired-flag-garbage-entries)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
- (should (and "Expecting an archive with entries for suffixes"
- " aux bak dvi log orig reg toc."
- (string-equal "070701 (( magic ))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "Expecting an archive with entries for suffixes")
+ (message " aux bak dvi log orig reg toc.")
+ (string-equal "070701 (( magic ))
DEADBEEF (( ino ))
000081A4 (( mode ))
000003E8 (( uid ))
@@ -14426,10 +16057,11 @@ aa
\\0\\0\\0
" cpio-archive-buffer-contents)))
- (should (and "Expecting a dired-style buffer with marked entries"
- " for the suffixes"
- " aux bak dvi log orig reg toc."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+
+ (should (progn (message "Expecting a dired-style buffer with marked
entries")
+ (message " for the suffixes")
+ (message " aux bak dvi log orig reg toc.")
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -14457,159 +16089,161 @@ D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+
5 \\(?:a\\(?:pr\\|ug\\)\\|de
D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa.rej
D -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa.toc
" cpio-dired-buffer-contents)))
- (should (and "Expecting a catalog with entries with the suffixes"
- " aux bak dvi log orig reg toc."
- (string-match "((\"a\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\.d\"]
-\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\.d\" \.
-\\s-+\[\[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\.aux\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 7 0 \"aa\.aux\"]
-\\s-+#<marker at 2197 in alphabet_small\.newc\.cpio> #<marker at 2317 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\.bak\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 7 0 \"aa\.bak\"]
-\\s-+#<marker at 2325 in alphabet_small\.newc\.cpio> #<marker at 2445 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\.dvi\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 7 0 \"aa\.dvi\"]
-\\s-+#<marker at 2453 in alphabet_small\.newc\.cpio> #<marker at 2573 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\.log\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 7 0 \"aa\.log\"]
-\\s-+#<marker at 2581 in alphabet_small\.newc\.cpio> #<marker at 2701 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\.orig\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aa\.orig\"]
-\\s-+#<marker at 2709 in alphabet_small\.newc\.cpio> #<marker at 2829 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\.rej\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 7 0 \"aa\.rej\"]
-\\s-+#<marker at 2837 in alphabet_small\.newc\.cpio> #<marker at 2957 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified])
- (\"aa\.toc\" \.
-\\s-+\[\[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 7 0 \"aa\.toc\"]
-\\s-+#<marker at 2965 in alphabet_small\.newc\.cpio> #<marker at 3085 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified\]))
+
+ (should (progn (message "Expecting a catalog with entries with the
suffixes")
+ (message " aux bak dvi log orig reg toc.")
+ (string-match "((¨a¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small\.newc\.cpio> #<marker at 113 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small\.newc\.cpio> #<marker at 233 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small\.newc\.cpio> #<marker at 357 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small\.newc\.cpio> #<marker at 481 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small\.newc\.cpio> #<marker at 605 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa\.d¨«
+\\s-+#<marker at 613 in alphabet_small\.newc\.cpio> #<marker at 733 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨b¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small\.newc\.cpio> #<marker at 845 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small\.newc\.cpio> #<marker at 965 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small\.newc\.cpio> #<marker at 1089 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small\.newc\.cpio> #<marker at 1213 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small\.newc\.cpio> #<marker at 1337 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb\.d¨«
+\\s-+#<marker at 1345 in alphabet_small\.newc\.cpio> #<marker at 1465 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨c¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small\.newc\.cpio> #<marker at 1577 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small\.newc\.cpio> #<marker at 1697 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small\.newc\.cpio> #<marker at 1821 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨cccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small\.newc\.cpio> #<marker at 1945 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small\.newc\.cpio> #<marker at 2069 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc\.d¨ \.
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc\.d¨«
+\\s-+#<marker at 2077 in alphabet_small\.newc\.cpio> #<marker at 2197 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aa\.aux¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 7 0 ¨aa\.aux¨«
+\\s-+#<marker at 2197 in alphabet_small\.newc\.cpio> #<marker at 2317 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aa\.bak¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 7 0 ¨aa\.bak¨«
+\\s-+#<marker at 2325 in alphabet_small\.newc\.cpio> #<marker at 2445 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aa\.dvi¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 7 0 ¨aa\.dvi¨«
+\\s-+#<marker at 2453 in alphabet_small\.newc\.cpio> #<marker at 2573 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aa\.log¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 7 0 ¨aa\.log¨«
+\\s-+#<marker at 2581 in alphabet_small\.newc\.cpio> #<marker at 2701 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aa\.orig¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aa\.orig¨«
+\\s-+#<marker at 2709 in alphabet_small\.newc\.cpio> #<marker at 2829 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aa\.rej¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 7 0 ¨aa\.rej¨«
+\\s-+#<marker at 2837 in alphabet_small\.newc\.cpio> #<marker at 2957 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«)
+ (¨aa\.toc¨ \.
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 7 0 ¨aa\.toc¨«
+\\s-+#<marker at 2965 in alphabet_small\.newc\.cpio> #<marker at 3085 in
alphabet_small\.newc\.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (cdmt-newc-test-save)))
+
+ (cdmt-test-save *cdmt-archive-format*)))
(ert-deftest cdmt-newc-cpio-dired-goto-entry ()
"Test cpio-dired-goto-entry.
cpio-dired-goto-entry is not yet implemented -- expect an error."
(should-error (cpio-dired-goto-entry)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-hide-all ()
"Test cpio-dired-hide-all.
cpio-dired-hide-all is not yet implemented -- expect an error."
(should-error (cpio-dired-hide-all)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-hide-details-mode ()
"Test cpio-dired-hide-details-mode) ;✓ Implemented by analogue to dired, but
does nothing.
cpio-dired-hide-details-mode) ;✓ Implemented by analogue to dired, but does
nothing is not yet implemented -- expect an error."
(should-error (cpio-dired-hide-details-mode) ;✓ Implemented by analogue to
dired, but does nothing)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-hide-subdir ()
"Test cpio-dired-hide-subdir) ;.
cpio-dired-hide-subdir) ; is not yet implemented -- expect an error."
(should-error (cpio-dired-hide-subdir)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-mark () ;✓
"Test the function of M-x cpio-dired-mark."
@@ -14620,23 +16254,24 @@ cpio-dired-hide-subdir) ; is not yet implemented --
expect an error."
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-newc-reset 'make)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (cdmt-reset 'make)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark 1)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting and unchanged small archive. (16216)"
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a cpio-dired buffer with the first entry marked."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (should (progn (message "Expecting and unchanged small archive. (16216)")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "Expecting a cpio-dired buffer with the first
entry marked.")
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -14657,25 +16292,26 @@ cpio-dired-hide-subdir) ; is not yet implemented --
expect an error."
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17960)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (should (progn (message "Expecting an unchanged catalog. (17960)")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(dired-next-line 2)
(cpio-dired-mark 4)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting and unchanged small archive. (16254)"
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a cpio-dired buffer with 4 more entries marked."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "Expecting and unchanged small archive. (16254)")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "Expecting a cpio-dired buffer with 4 more entries
marked.")
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -14696,20 +16332,21 @@ cpio-dired-hide-subdir) ; is not yet implemented --
expect an error."
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17961)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+
+ (should (progn (message "Expecting an unchanged catalog. (17961)")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-newc-cpio-dired-mark-directories ()
"Test cpio-dired-mark-directories.
cpio-dired-mark-directories is not yet implemented -- expect an error."
(should-error (cpio-dired-mark-directories)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-mark-entries-containing-regexp ()
"Test cpio-dired-mark-entries-containing-regexp.
cpio-dired-mark-entries-containing-regexp is not yet implemented -- expect an
error."
(should-error (cpio-dired-mark-entries-containing-regexp)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-mark-entries-regexp () ;✓
(let ((test-name "cdmt-newc-cpio-dired-mark-entries-regexp")
@@ -14719,23 +16356,24 @@ cpio-dired-mark-entries-containing-regexp is not yet
implemented -- expect an er
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-newc-reset)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (cdmt-reset)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark-entries-regexp "\\`...\\'")
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting and unchanged small archive. (16313)"
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a cpio-dired buffer with ... marked."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "Expecting and unchanged small archive. (16313)")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "Expecting a cpio-dired buffer with ... marked.")
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -14756,32 +16394,33 @@ cpio-dired-mark-entries-containing-regexp is not yet
implemented -- expect an er
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17962)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+
+ (should (progn (message "Expecting an unchanged catalog. (17962)")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-newc-cpio-dired-mark-executables ()
"Test cpio-dired-mark-executables.
cpio-dired-mark-executables is not yet implemented -- expect an error."
(should-error (cpio-dired-mark-executables)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-mark-subdir-entries ()
"Test cpio-dired-mark-subdir-entries.
cpio-dired-mark-subdir-entries is not yet implemented -- expect an error."
(should-error (cpio-dired-mark-subdir-entries)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-mark-symlinks ()
"Test cpio-dired-mark-symlinks.
cpio-dired-mark-symlinks is not yet implemented -- expect an error."
(should-error (cpio-dired-mark-symlinks)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-mouse-find-entry-other-window ()
"Test cpio-dired-mouse-find-entry-other-window.
cpio-dired-mouse-find-entry-other-window is not yet implemented -- expect an
error."
(should-error (cpio-dired-mouse-find-entry-other-window)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-next-dirline () ;✓
"Test the function of M-x cpio-dired-next-dirline."
@@ -14793,133 +16432,134 @@ cpio-dired-mouse-find-entry-other-window is not yet
implemented -- expect an err
(cpio-catalog-contents-before)
(cpio-catalog-contents-after)
(entry-name))
- (cdmt-newc-reset 'make 'large)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (cdmt-reset 'make 'large)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-next-dirline 1)
(setq entry-name (cpio-dired-get-entry-name))
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "The current entry should be aaaaa.d"
- (string-equal "aaaaa.d" entry-name)))
- (should (and "Expecting an untouched large archive buffer."
- (string-equal *cdmt-newc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
- (should (and "The dired style buffer should be untouched."
- (string-match *cdmt-newc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog."
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "The current entry should be aaaaa.d")
+ (string-equal "aaaaa.d" entry-name)))
+ (should (progn (message "Expecting an untouched large archive buffer.")
+ (string-equal *cdmt-newc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
+ (should (progn (message "The dired style buffer should be untouched.")
+ (string-match *cdmt-newc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "Expecting an unchanged catalog.")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-next-dirline 2)
(setq entry-name (cpio-dired-get-entry-name))
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "The current entry should be ccccc.d"
- (string-equal "ccccc.d" entry-name)))
- (should (and "The archive buffer should be untouched. (1)"
- (string-equal *cdmt-newc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
- (should (and "The dired style buffer should be untouched. (1)"
- (string-match *cdmt-newc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog."
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "The current entry should be ccccc.d")
+ (string-equal "ccccc.d" entry-name)))
+ (should (progn (message "The archive buffer should be untouched. (1)")
+ (string-equal *cdmt-newc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
+ (should (progn (message "The dired style buffer should be untouched. (1)")
+ (string-match *cdmt-newc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "Expecting an unchanged catalog.")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-next-dirline 4)
(setq entry-name (cpio-dired-get-entry-name))
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "The current entry should be ggggg.d"
- (string-equal "ggggg.d" entry-name)))
- (should (and "The archive buffer should be untouched. (2)"
- (string-equal *cdmt-newc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
- (should (and "The dired style buffer shouold be untouched (2)"
- (string-match *cdmt-newc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog."
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "The current entry should be ggggg.d")
+ (string-equal "ggggg.d" entry-name)))
+ (should (progn (message "The archive buffer should be untouched. (2)")
+ (string-equal *cdmt-newc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
+ (should (progn (message "The dired style buffer shouold be untouched (2)")
+ (string-match *cdmt-newc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "Expecting an unchanged catalog.")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-next-dirline 8)
(setq entry-name (cpio-dired-get-entry-name))
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "The current entry should be ooooo.d."
- (string-equal "ooooo.d" entry-name)))
- (should (and "The archive buffer should be untouched. (3)"
- (string-equal *cdmt-newc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
- (should (and "The dired style buffer should be untouched. (3)"
- (string-match *cdmt-newc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog."
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "The current entry should be ooooo.d.")
+ (string-equal "ooooo.d" entry-name)))
+ (should (progn (message "The archive buffer should be untouched. (3)")
+ (string-equal *cdmt-newc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
+ (should (progn (message "The dired style buffer should be untouched. (3)")
+ (string-match *cdmt-newc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "Expecting an unchanged catalog.")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-next-dirline 16)
(setq entry-name (cpio-dired-get-entry-name))
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "The current entry should be zzzzz.d."
- (string-equal "zzzzz.d" entry-name)))
- (should (and "The archive buffer should be untouched. (4)"
- (string-equal *cdmt-newc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
- (should (and "The dired style buffer should be untouched. (4)"
- (string-match *cdmt-newc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog."
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "The current entry should be zzzzz.d.")
+ (string-equal "zzzzz.d" entry-name)))
+ (should (progn (message "The archive buffer should be untouched. (4)")
+ (string-equal *cdmt-newc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
+ (should (progn (message "The dired style buffer should be untouched. (4)")
+ (string-match *cdmt-newc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "Expecting an unchanged catalog.")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-next-dirline 1)
(setq entry-name (cpio-dired-get-entry-name))
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "The current entry should still be zzzzz.d."
- (string-equal "zzzzz.d" entry-name)))
- (should (and "The archive buffer should be untouched. (5)"
- (string-equal *cdmt-newc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
- (should (and "The dired style buffer should be untouched. (5)"
- (string-match *cdmt-newc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog."
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+ (should (progn (message "The current entry should still be zzzzz.d.")
+ (string-equal "zzzzz.d" entry-name)))
+ (should (progn (message "The archive buffer should be untouched. (5)")
+ (string-equal *cdmt-newc-untouched-large-archive-buffer*
cpio-archive-buffer-contents)))
+ (should (progn (message "The dired style buffer should be untouched. (5)")
+ (string-match *cdmt-newc-untouched-large-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "Expecting an unchanged catalog.")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-newc-cpio-dired-next-line () ;✓
"Test the function of M-x cpio-dired-next-line."
@@ -14931,118 +16571,119 @@ cpio-dired-mouse-find-entry-other-window is not yet
implemented -- expect an err
(cpio-catalog-contents-before)
(cpio-catalog-contents-after)
(entry-name))
- (cdmt-newc-reset 'make)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (cdmt-reset 'make)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(setq entry-name (cpio-dired-get-entry-name))
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
(should (string-equal "a" entry-name))
- (should (and "Expecting an untouched cpio-dired buffer. (16526)"
- (string-match *cdmt-newc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting and unchanged small archive. (16526)"
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17963)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (should (progn (message "Expecting an untouched cpio-dired buffer.
(16526)")
+ (string-match *cdmt-newc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "Expecting and unchanged small archive. (16526)")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "Expecting an unchanged catalog. (17963)")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-next-line 2)
(setq entry-name (cpio-dired-get-entry-name))
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
(should (string-equal "aaa" entry-name))
- (should (and "Expecting an untouched cpio-dired buffer. (16545)"
- (string-match *cdmt-newc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting and unchanged small archive. (16544)"
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (should (progn (message "Expecting an untouched cpio-dired buffer.
(16545)")
+ (string-match *cdmt-newc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "Expecting and unchanged small archive. (16544)")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-next-line 4)
(setq entry-name (cpio-dired-get-entry-name))
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
(should (string-equal "b" entry-name))
- (should (and "Expecting an untouched cpio-dired buffer. (16563)"
- (string-match *cdmt-newc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting and unchanged small archive. (16561)"
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17964)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (should (progn (message "Expecting an untouched cpio-dired buffer.
(16563)")
+ (string-match *cdmt-newc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "Expecting and unchanged small archive. (16561)")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "Expecting an unchanged catalog. (17964)")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-next-line 100)
(setq entry-name (cpio-dired-get-entry-name))
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
(should (equal nil entry-name))
- (should (and "Expecting an untouched cpio-dired buffer. (16582)"
- (string-match *cdmt-newc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting and unchanged small archive. (16579)"
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17965)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+ (should (progn (message "Expecting an untouched cpio-dired buffer.
(16582)")
+ (string-match *cdmt-newc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "Expecting and unchanged small archive. (16579)")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "Expecting an unchanged catalog. (17965)")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-newc-cpio-dired-next-marked-entry ()
"Test cpio-dired-next-marked-entry.
cpio-dired-next-marked-entry is not yet implemented -- expect an error."
(should-error (cpio-dired-next-marked-entry)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-next-marked-entry ()
"Test cpio-dired-next-marked-entry.
cpio-dired-next-marked-entry is not yet implemented -- expect an error."
(should-error (cpio-dired-next-marked-entry)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-next-subdir ()
"Test the function of M-x cpio-next-subdir."
(should-error (cpio-dired-next-marked-entry)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-prev-marked-entry ()
"Test cpio-dired-prev-marked-entry.
cpio-dired-prev-marked-entry is not yet implemented -- expect an error."
(should-error (cpio-dired-prev-marked-entry)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-prev-marked-entry ()
"Test cpio-dired-prev-marked-entry.
cpio-dired-prev-marked-entry is not yet implemented -- expect an error."
(should-error (cpio-dired-prev-marked-entry)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-prev-subdir ()
"Test the function of M-x cpio-dired-prev-subdir."
(should-error (cpio-dired-previous-line)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-previous-line () ;✓
(let ((test-name "cdmt-newc-cpio-dired-previous-line")
@@ -15053,105 +16694,106 @@ cpio-dired-prev-marked-entry is not yet implemented
-- expect an error."
(cpio-catalog-contents-before)
(cpio-catalog-contents-after)
(where))
- (cdmt-newc-reset)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (cdmt-reset)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(goto-char (point-max))
(cpio-dired-previous-line 1)
(setq where (point))
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
(should (= where 1155))
- (should (and "Expecting and unchanged small archive. (16642)"
- (string-equal *cdmt-newc-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting an untouched cpio-dired buffer. (16649)"
- (string-match *cdmt-newc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17966)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (should (progn (message "Expecting and unchanged small archive. (16642)")
+ (string-equal *cdmt-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "Expecting an untouched cpio-dired buffer.
(16649)")
+ (string-match *cdmt-newc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "Expecting an unchanged catalog. (17966)")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-previous-line 2)
(setq where (point))
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
(should (= where 1019))
- (should (string-match *cdmt-newc-small-archive*
cpio-archive-buffer-contents))
- (should (and "Expecting an untouched cpio-dired buffer. (16667)"
- (string-match *cdmt-newc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17967)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (should (string-match *cdmt-small-archive* cpio-archive-buffer-contents))
+ (should (progn (message "Expecting an untouched cpio-dired buffer.
(16667)")
+ (string-match *cdmt-newc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "Expecting an unchanged catalog. (17967)")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-previous-line 4)
(setq where (point))
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
(should (= where 774))
- (should (and "Expecting and unchanged small archive. (16677)"
- (string-equal *cdmt-newc-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting an untouched cpio-dired buffer. (16686)"
- (string-match *cdmt-newc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17968)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+ (should (progn (message "Expecting and unchanged small archive. (16677)")
+ (string-equal *cdmt-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "Expecting an untouched cpio-dired buffer.
(16686)")
+ (string-match *cdmt-newc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "Expecting an unchanged catalog. (17968)")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-newc-cpio-dired-previous-line ()
"Test cpio-dired-previous-line.
cpio-dired-previous-line is not yet implemented -- expect an error."
(should-error (cpio-dired-previous-line)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-previous-line ()
"Test cpio-dired-previous-line.
cpio-dired-previous-line is not yet implemented -- expect an error."
(should-error (cpio-dired-previous-line)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-show-entry-type ()
"Test cpio-dired-show-entry-type.
cpio-dired-show-entry-type is not yet implemented -- expect an error."
(should-error (cpio-dired-show-entry-type)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-sort-toggle-or-edit ()
"Test cpio-dired-sort-toggle-or-edit.
cpio-dired-sort-toggle-or-edit is not yet implemented -- expect an error."
(should-error (cpio-dired-sort-toggle-or-edit)
- :type 'error))
+ :type 'error))
;; I'm not sure how to test this.
;; (ert-deftest cdmt-newc-cpio-dired-summary () ;✓
;; "Test the function of M-x cpio-dired-summary."
;; (shell-command "cd test_data/alphabet ; make newc" nil nil)
;; (let ((test-name "cdmt-newc-cpio-dired-summary")
-;; (cpio-archive-buffer (find-file-noselect
*cdmt-newc-small-archive*))
+;; (cpio-archive-buffer (find-file-noselect *cdmt-small-archive*))
;; (cpio-archive-buffer-contents)
;; (cpio-dired-buffer)
;; (cpio-dired-buffer-contents)
;; )
;; (with-current-buffer cpio-archive-buffer
;; (cpio-mode))
-;; (setq cpio-dired-buffer (get-buffer-create (cpio-dired-buffer-name
*cdmt-newc-small-archive*)))
+;; (setq cpio-dired-buffer (get-buffer-create (cpio-dired-buffer-name
*cdmt-small-archive*)))
;;
;; (should (string-equal (with-output-to-string
;; (cpio-dired-summary))
@@ -15162,31 +16804,31 @@ cpio-dired-sort-toggle-or-edit is not yet implemented
-- expect an error."
"Test cpio-dired-toggle-marks.
cpio-dired-toggle-marks is not yet implemented -- expect an error."
(should-error (cpio-dired-toggle-marks)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-toggle-marks ()
"Test cpio-dired-toggle-marks.
cpio-dired-toggle-marks is not yet implemented -- expect an error."
(should-error (cpio-dired-toggle-marks)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-toggle-read-only ()
"Test cpio-dired-toggle-read-only.
cpio-dired-toggle-read-only is not yet implemented -- expect an error."
(should-error (cpio-dired-toggle-read-only)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-toggle-read-only ()
"Test cpio-dired-toggle-read-only.
cpio-dired-toggle-read-only is not yet implemented -- expect an error."
(should-error (cpio-dired-toggle-read-only)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-undo ()
"Test cpio-dired-undo.
cpio-dired-undo is not yet implemented -- expect an error."
(should-error (cpio-dired-undo)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-unmark () ;✓
"Test the function of M-x cpio-dired-unmark."
@@ -15197,24 +16839,25 @@ cpio-dired-undo is not yet implemented -- expect an
error."
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-newc-reset 'make)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (cdmt-reset 'make)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark-entries-regexp ".")
(cpio-dired-unmark 1)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting an untouched small archive."
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a dired-style buffer with every entry except the
first marked."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (should (progn (message "Expecting an untouched small archive.")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "Expecting a dired-style buffer with every entry
except the first marked.")
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15235,25 +16878,26 @@ cpio-dired-undo is not yet implemented -- expect an
error."
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
\\* drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17969)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (should (progn (message "Expecting an unchanged catalog. (17969)")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-next-line 2)
(cpio-dired-unmark 2)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
- (should (and "Expecting an untouched small archive."
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecing a dired bugger with all but two entries marked."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (should (progn (message "Expecting an untouched small archive.")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "Expecing a dired bugger with all but two entries
marked.")
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15274,25 +16918,26 @@ cpio-dired-undo is not yet implemented -- expect an
error."
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
\\* drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17970)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (should (progn (message "Expecting an unchanged catalog. (17970)")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(dired-next-line 4)
(cpio-dired-unmark 4)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting an untouched small archive."
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a dired-style buffer with another 4 entries
unmarked."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "Expecting an untouched small archive.")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "Expecting a dired-style buffer with another 4
entries unmarked.")
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15313,25 +16958,26 @@ cpio-dired-undo is not yet implemented -- expect an
error."
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
\\* drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17971)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (should (progn (message "Expecting an unchanged catalog. (17971)")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(dired-next-line 4)
(cpio-dired-unmark 4)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting an untouched archive."
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a dired-style buffer with yet the last entry
unmarked."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "Expecting an untouched archive.")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "Expecting a dired-style buffer with yet the last
entry unmarked.")
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15352,8 +16998,9 @@ cpio-dired-undo is not yet implemented -- expect an
error."
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17972)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+
+ (should (progn (message "Expecting an unchanged catalog. (17972)")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-newc-cpio-dired-unmark-all-entries ()
"Test cpio-dired-unmark-all-entries."
@@ -15364,9 +17011,10 @@ cpio-dired-undo is not yet implemented -- expect an
error."
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-newc-reset 'make)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (cdmt-reset 'make)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark-entries-regexp ".")
(cpio-dired-move-to-first-entry)
(cpio-dired-next-line 2)
@@ -15376,18 +17024,18 @@ cpio-dired-undo is not yet implemented -- expect an
error."
(cpio-dired-mark-this-entry ?E) (cpio-dired-mark-this-entry ?E)
(cpio-dired-mark-this-entry ?E)
(cpio-dired-mark-this-entry ?F) (cpio-dired-mark-this-entry ?F)
(cpio-dired-mark-this-entry ?F) (cpio-dired-mark-this-entry ?F)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting an unchanged archive buffer."
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a variety of marks in a dired-style buffer."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "Expecting an unchanged archive buffer.")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "Expecting a variety of marks in a dired-style
buffer.")
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15408,24 +17056,25 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
\\* drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17973)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (should (progn (message "Expecting an unchanged catalog. (17973)")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-unmark-all-entries "" nil)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting an unchanged archive buffer."
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a dired-style buffer with no marks."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "Expecting an unchanged archive buffer.")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "Expecting a dired-style buffer with no marks.")
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15446,10 +17095,11 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17974)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (should (progn (message "Expecting an unchanged catalog. (17974)")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark-entries-regexp ".")
(cpio-dired-move-to-first-entry)
(cpio-dired-next-line 2)
@@ -15459,18 +17109,18 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
(cpio-dired-mark-this-entry ?E) (cpio-dired-mark-this-entry ?E)
(cpio-dired-mark-this-entry ?E)
(cpio-dired-mark-this-entry ?F) (cpio-dired-mark-this-entry ?F)
(cpio-dired-mark-this-entry ?F) (cpio-dired-mark-this-entry ?F)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting an unchanged archive buffer."
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a variety of marks in a dired-style buffer."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "Expecting an unchanged archive buffer.")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "Expecting a variety of marks in a dired-style
buffer.")
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15492,24 +17142,24 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
\\* drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17975)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (should (progn (message "Expecting an unchanged catalog. (17975)")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-unmark-all-entries "B" nil)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting an unchanged archive buffer."
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a dired-style buffer with no B marks."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "Expecting an unchanged archive buffer.")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "Expecting a dired-style buffer with no B marks.")
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15530,25 +17180,25 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
\\* drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
-
- (should (and "Expecting an unchanged catalog. (17976)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+
+ (should (progn (message "Expecting an unchanged catalog. (17976)")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-unmark-all-entries "F" nil)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting an unchanged archive buffer."
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a dired-style buffer with neither B nor F marks."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "Expecting an unchanged archive buffer.")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "Expecting a dired-style buffer with neither B nor
F marks.")
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15569,8 +17219,9 @@ E -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|de
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
\\* drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17977)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+
+ (should (progn (message "Expecting an unchanged catalog. (17977)")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-newc-cpio-dired-unmark-all-marks ()
"Test cpio-dired-unmark-all-marks."
@@ -15581,9 +17232,10 @@ E -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|de
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
- (cdmt-newc-reset 'make)
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+ (cdmt-reset 'make)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark-entries-regexp ".")
(cpio-dired-move-to-first-entry)
(cpio-dired-next-line 2)
@@ -15593,18 +17245,18 @@ E -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 7
\\(?:a\\(?:pr\\|ug\\)\\|de
(cpio-dired-mark-this-entry ?E) (cpio-dired-mark-this-entry ?E)
(cpio-dired-mark-this-entry ?E)
(cpio-dired-mark-this-entry ?F) (cpio-dired-mark-this-entry ?F)
(cpio-dired-mark-this-entry ?F) (cpio-dired-mark-this-entry ?F)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting an unchanged archive buffer."
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a variety of marks in a dired-style buffer."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "Expecting an unchanged archive buffer.")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "Expecting a variety of marks in a dired-style
buffer.")
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15625,24 +17277,25 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
\\* -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
\\* drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17978)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+
+ (should (progn (message "Expecting an unchanged catalog. (17978)")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-unmark-all-marks)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting an unchanged archive buffer."
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting a dired-style buffer with no marks."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "Expecting an unchanged archive buffer.")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "Expecting a dired-style buffer with no marks.")
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -15663,8 +17316,9 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 8
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
" cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17979)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+
+ (should (progn (message "Expecting an unchanged catalog. (17979)")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-newc-cpio-dired-unmark-all-marks () ;✓
"Test the function of M-x cpio-unmark-all-marks."
@@ -15675,10 +17329,10 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
(cpio-dired-buffer-contents)
(cpio-catalog-contents-before)
(cpio-catalog-contents-after))
-
- (cdmt-newc-reset 'make)
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+
+ (cdmt-reset 'make)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-mark 2)
(cpio-dired-next-line 2)
(let ((cpio-dired-marker-char cpio-dired-del-marker))
@@ -15689,44 +17343,44 @@ F -rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|de
(cpio-dired-mark 16))
(cpio-dired-unmark-all-marks)
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting and unchanged small archive. (17253)"
- (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
- (should (and "Expecting an untouched cpio-dired buffer. (17263)"
- (string-match *cdmt-newc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
- (should (and "Expecting an unchanged catalog. (17980)"
- (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "Expecting and unchanged small archive. (17253)")
+ (string-equal *cdmt-newc-untouched-small-archive*
cpio-archive-buffer-contents)))
+ (should (progn (message "Expecting an untouched cpio-dired buffer.
(17263)")
+ (string-match *cdmt-newc-untouched-small-dired-buffer*
cpio-dired-buffer-contents)))
+ (should (progn (message "Expecting an unchanged catalog. (17980)")
+ (string-equal cpio-catalog-contents-before
cpio-catalog-contents-after)))))
(ert-deftest cdmt-newc-cpio-dired-unmark-backward ()
"Test cpio-dired-unmark-backward.
cpio-dired-unmark-backward is not yet implemented -- expect an error."
(should-error (cpio-dired-unmark-backward)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-unmark-backward ()
"Test cpio-dired-unmark-backward.
cpio-dired-unmark-backward is not yet implemented -- expect an error."
(should-error (cpio-dired-unmark-backward)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-up-directory ()
"Test cpio-dired-up-directory.
cpio-dired-up-directory is not yet implemented -- expect an error."
(should-error (cpio-dired-up-directory)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-upcase ()
"Test cpio-dired-upcase.
cpio-dired-upcase is not yet implemented -- expect an error."
(should-error (cpio-dired-upcase)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-view-archive () ;✓
"Test the function of M-x cpio-view-archive."
@@ -15739,8 +17393,9 @@ cpio-dired-upcase is not yet implemented -- expect an
error."
(cpio-catalog-contents-after)
(cpio-archive-window)
(cpio-dired-window))
- (cdmt-newc-reset 'make)
+ (cdmt-reset 'make)
+
(setq cpio-dired-window (get-buffer-window (get-buffer cpio-dired-buffer)))
(should (window-live-p cpio-dired-window))
(setq cpio-archive-window (get-buffer-window (get-buffer
cpio-archive-buffer)))
@@ -15748,15 +17403,15 @@ cpio-dired-upcase is not yet implemented -- expect an
error."
(should (eq nil cpio-archive-window))
(cpio-dired-view-archive)
-
+
(setq cpio-dired-window (get-buffer-window (get-buffer cpio-dired-buffer)))
;; (should (not (window-live-p cpio-dired-window)))
(should (eq nil cpio-dired-window))
(setq cpio-archive-window (get-buffer-window (get-buffer
cpio-archive-buffer)))
(should (window-live-p cpio-archive-window))
-
+
(cpio-view-dired-style-buffer)
-
+
(setq cpio-dired-window (get-buffer-window (get-buffer cpio-dired-buffer)))
(should (window-live-p cpio-dired-window))
(setq cpio-archive-window (get-buffer-window (get-buffer
cpio-archive-buffer)))
@@ -15767,110 +17422,136 @@ cpio-dired-upcase is not yet implemented -- expect
an error."
"Test cpio-dired-view-entry.
cpio-dired-view-entry is not yet implemented -- expect an error."
(should-error (cpio-dired-view-entry)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-epa-dired-do-decrypt ()
"Test cpio-epa-dired-do-decrypt.
cpio-epa-dired-do-decrypt is not yet implemented -- expect an error."
(should-error (cpio-epa-dired-do-decrypt)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-epa-dired-do-encrypt ()
"Test cpio-epa-dired-do-encrypt.
cpio-epa-dired-do-encrypt is not yet implemented -- expect an error."
(should-error (cpio-epa-dired-do-encrypt)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-epa-dired-do-sign ()
"Test cpio-epa-dired-do-sign.
cpio-epa-dired-do-sign is not yet implemented -- expect an error."
(should-error (cpio-epa-dired-do-sign)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-epa-dired-do-verify ()
"Test cpio-epa-dired-do-verify.
cpio-epa-dired-do-verify is not yet implemented -- expect an error."
(should-error (cpio-epa-dired-do-verify)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-image-dired-delete-tag ()
"Test cpio-image-dired-delete-tag.
cpio-image-dired-delete-tag is not yet implemented -- expect an error."
(should-error (cpio-image-dired-delete-tag)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-image-dired-dired-comment-entries ()
"Test cpio-image-dired-dired-comment-entries.
cpio-image-dired-dired-comment-entries is not yet implemented -- expect an
error."
(should-error (cpio-image-dired-dired-comment-entries)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-image-dired-dired-display-external ()
"Test cpio-image-dired-dired-display-external.
cpio-image-dired-dired-display-external is not yet implemented -- expect an
error."
(should-error (cpio-image-dired-dired-display-external)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-image-dired-dired-display-image ()
"Test cpio-image-dired-dired-display-image.
cpio-image-dired-dired-display-image is not yet implemented -- expect an
error."
(should-error (cpio-image-dired-dired-display-image)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-image-dired-dired-edit-comment-and-tags ()
"Test cpio-image-dired-dired-edit-comment-and-tags.
cpio-image-dired-dired-edit-comment-and-tags is not yet implemented -- expect
an error."
(should-error (cpio-image-dired-dired-edit-comment-and-tags)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-image-dired-dired-toggle-marked-thumbs ()
"Test cpio-image-dired-dired-toggle-marked-thumbs.
cpio-image-dired-dired-toggle-marked-thumbs is not yet implemented -- expect
an error."
(should-error (cpio-image-dired-dired-toggle-marked-thumbs)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-image-dired-display-thumb ()
"Test cpio-image-dired-display-thumb.
cpio-image-dired-display-thumb is not yet implemented -- expect an error."
(should-error (cpio-image-dired-display-thumb)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-image-dired-display-thumbs ()
"Test cpio-image-dired-display-thumbs.
cpio-image-dired-display-thumbs is not yet implemented -- expect an error."
(should-error (cpio-image-dired-display-thumbs)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-image-dired-display-thumbs-append ()
"Test cpio-image-dired-display-thumbs-append.
cpio-image-dired-display-thumbs-append is not yet implemented -- expect an
error."
(should-error (cpio-image-dired-display-thumbs-append)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-image-dired-jump-thumbnail-buffer ()
"Test cpio-image-dired-jump-thumbnail-buffer.
cpio-image-dired-jump-thumbnail-buffer is not yet implemented -- expect an
error."
(should-error (cpio-image-dired-jump-thumbnail-buffer)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-image-dired-mark-tagged-entries ()
"Test cpio-image-dired-mark-tagged-entries.
cpio-image-dired-mark-tagged-entries is not yet implemented -- expect an
error."
(should-error (cpio-image-dired-mark-tagged-entries)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-image-dired-tag-entries ()
"Test cpio-image-dired-tag-entries.
cpio-image-dired-tag-entries is not yet implemented -- expect an error."
(should-error (cpio-image-dired-tag-entries)
- :type 'error))
+ :type 'error))
+;;;;;;;; (ert-deftest cdmt-newc-cpio-quit-window () ;✓
+;;;;;;;; "Test cpio-quit-window.
+;;;;;;;; cpio-quit-window is not yet implemented -- expect an error."
+;;;;;;;; (let ((test-name "cdmt-newc-cpio-dired-quit-window")
+;;;;;;;; (cpio-archive-buffer)
+;;;;;;;; (cpio-archive-buffer-contents)
+;;;;;;;; (cpio-dired-buffer)
+;;;;;;;; (cpio-dired-buffer-contents)
+;;;;;;;; (cpio-archive-window)
+;;;;;;;; (cpio-dired-window)
+;;;;;;;; )
+;;;;;;;; (cdmt-reset 'make)
+
+;;;;;;;; (setq cpio-dired-window (get-buffer-window (get-buffer
cpio-dired-buffer)))
+;;;;;;;; (should (window-live-p cpio-dired-window))
+;;;;;;;; (setq cpio-archive-window (get-buffer-window (get-buffer
cpio-archive-buffer)))
+;;;;;;;; ;; (should (not (window-live-p cpio-dired-window)))
+;;;;;;;; (should (eq nil cpio-archive-window))
+
+;;;;;;;; This causes an error under ERT.
+;;;;;;;; (cpio-quit-window)
+
+;;;;;;;; (setq cpio-dired-window (get-buffer-window (get-buffer
cpio-dired-buffer)))
+;;;;;;;; (should (eq nil cpio-dired-window))
+;;;;;;;; (setq cpio-archive-window (get-buffer-window (get-buffer
cpio-archive-buffer)))
+;;;;;;;; (should (eq nil cpio-archive-window))))
(ert-deftest cdmt-newc-revert-buffer ()
"Test revert-buffer.
revert-buffer is not yet implemented -- expect an error."
(should-error (revert-buffer)
- :type 'error))
+ :type 'error))
(ert-deftest cdmt-newc-cpio-dired-create-directory ()
"Test cpio-dired-create-directory."
@@ -15883,22 +17564,22 @@ revert-buffer is not yet implemented -- expect an
error."
(cpio-catalog-contents-after)
(cpio-archive-window)
(cpio-dired-window))
-
- (cdmt-newc-reset 'make)
-
- (progn (setq cpio-catalog-contents-before (format "%s" (pp
(cpio-catalog))))
+
+ (cdmt-reset 'make)
+
+ (progn (setq cpio-catalog-contents-before (cdmt-tidy-up-catalog))
(cpio-dired-create-directory "newDirectory")
(setq cpio-archive-buffer-contents
- (cdmt-newc-filter-archive-contents
+ (cdmt-filter-archive-contents
(with-current-buffer cpio-archive-buffer
(buffer-substring-no-properties (point-min) (point-max)))))
(setq cpio-dired-buffer-contents
(with-current-buffer cpio-dired-buffer
(buffer-substring-no-properties (point-min) (point-max))))
- (setq cpio-catalog-contents-after (format "%s" (pp (cpio-catalog)))))
-
- (should (and "Expecting a cpio archive with newDirectory, a new directory."
- (string-equal "070701 (( magic ))
+ (setq cpio-catalog-contents-after (cdmt-tidy-up-catalog)))
+
+ (should (progn (message "Expecting a cpio archive with newDirectory, a new
directory.")
+ (string-equal "070701 (( magic ))
DEADBEEF (( ino ))
000081A4 (( mode ))
000003E8 (( uid ))
@@ -16230,8 +17911,9 @@ DEADBEEF (( rdev min ))
newDirectory (( filename ))
\\0
" cpio-archive-buffer-contents)))
- (should (and "Expecting a cpio dired buffer with newDirectory, a new
directory."
- (string-match "CPIO archive: alphabet_small.newc.cpio:
+
+ (should (progn (message "Expecting a cpio dired buffer with newDirectory,
a new directory.")
+ (string-match "CPIO archive: alphabet_small.newc.cpio:
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 4
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} a
-rw-r--r-- 1 [[:digit:]]+ [[:digit:]]+ 5
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} aa
@@ -16253,105 +17935,106 @@ newDirectory (( filename ))
drwxr-xr-x 2 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} ccccc.d
drwxr-xr-x 1 [[:digit:]]+ [[:digit:]]+ 0
\\(?:a\\(?:pr\\|ug\\)\\|dec\\|feb\\|j\\(?:an\\|u[ln]\\)\\|ma[ry]\\|nov\\|oct\\|sep\\)
[[:digit:]]\\{2\\} [[:digit:]]\\{2\\}:[[:digit:]]\\{2\\} newDirectory
" cpio-dired-buffer-contents)))
- (should (and "Expecting a catalog with a new directory called
»newDirectory«."
- (string-match "((\"newDirectory\" \\.
-\\s-+[[1 16877 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 13 0
\"newDirectory\"]
-\\s-+#<marker at 2197 in alphabet_small\\.newc\\.cpio> #<marker at 2321 in
alphabet_small\\.newc\\.cpio> cpio-mode-entry-unmodified])
- (\"a\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"a\"]
-\\s-+#<marker at 1 in alphabet_small\\.newc\\.cpio> #<marker at 113 in
alphabet_small\\.newc\\.cpio> cpio-mode-entry-unmodified])
- (\"aa\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"aa\"]
-\\s-+#<marker at 117 in alphabet_small\\.newc\\.cpio> #<marker at 233 in
alphabet_small\\.newc\\.cpio> cpio-mode-entry-unmodified])
- (\"aaa\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"aaa\"]
-\\s-+#<marker at 241 in alphabet_small\\.newc\\.cpio> #<marker at 357 in
alphabet_small\\.newc\\.cpio> cpio-mode-entry-unmodified])
- (\"aaaa\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"aaaa\"]
-\\s-+#<marker at 365 in alphabet_small\\.newc\\.cpio> #<marker at 481 in
alphabet_small\\.newc\\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"aaaaa\"]
-\\s-+#<marker at 489 in alphabet_small\\.newc\\.cpio> #<marker at 605 in
alphabet_small\\.newc\\.cpio> cpio-mode-entry-unmodified])
- (\"aaaaa\\.d\" \\.
-\\s-+[[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"aaaaa\\.d\"]
-\\s-+#<marker at 613 in alphabet_small\\.newc\\.cpio> #<marker at 733 in
alphabet_small\\.newc\\.cpio> cpio-mode-entry-unmodified])
- (\"b\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"b\"]
-\\s-+#<marker at 733 in alphabet_small\\.newc\\.cpio> #<marker at 845 in
alphabet_small\\.newc\\.cpio> cpio-mode-entry-unmodified])
- (\"bb\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"bb\"]
-\\s-+#<marker at 849 in alphabet_small\\.newc\\.cpio> #<marker at 965 in
alphabet_small\\.newc\\.cpio> cpio-mode-entry-unmodified])
- (\"bbb\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"bbb\"]
-\\s-+#<marker at 973 in alphabet_small\\.newc\\.cpio> #<marker at 1089 in
alphabet_small\\.newc\\.cpio> cpio-mode-entry-unmodified])
- (\"bbbb\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"bbbb\"]
-\\s-+#<marker at 1097 in alphabet_small\\.newc\\.cpio> #<marker at 1213 in
alphabet_small\\.newc\\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"bbbbb\"]
-\\s-+#<marker at 1221 in alphabet_small\\.newc\\.cpio> #<marker at 1337 in
alphabet_small\\.newc\\.cpio> cpio-mode-entry-unmodified])
- (\"bbbbb\\.d\" \\.
-\\s-+[[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"bbbbb\\.d\"]
-\\s-+#<marker at 1345 in alphabet_small\\.newc\\.cpio> #<marker at 1465 in
alphabet_small\\.newc\\.cpio> cpio-mode-entry-unmodified])
- (\"c\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 \"c\"]
-\\s-+#<marker at 1465 in alphabet_small\\.newc\\.cpio> #<marker at 1577 in
alphabet_small\\.newc\\.cpio> cpio-mode-entry-unmodified])
- (\"cc\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 \"cc\"]
-\\s-+#<marker at 1581 in alphabet_small\\.newc\\.cpio> #<marker at 1697 in
alphabet_small\\.newc\\.cpio> cpio-mode-entry-unmodified])
- (\"ccc\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 \"ccc\"]
-\\s-+#<marker at 1705 in alphabet_small\\.newc\\.cpio> #<marker at 1821 in
alphabet_small\\.newc\\.cpio> cpio-mode-entry-unmodified])
- (\"cccc\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 \"cccc\"]
-\\s-+#<marker at 1829 in alphabet_small\\.newc\\.cpio> #<marker at 1945 in
alphabet_small\\.newc\\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\" \\.
-\\s-+[[[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 \"ccccc\"]
-\\s-+#<marker at 1953 in alphabet_small\\.newc\\.cpio> #<marker at 2069 in
alphabet_small\\.newc\\.cpio> cpio-mode-entry-unmodified])
- (\"ccccc\\.d\" \\.
-\\s-+[[[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
-\\s-+([[:digit:]]+ [[:digit:]]+)
-\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 \"ccccc\\.d\"]
-\\s-+#<marker at 2077 in alphabet_small\\.newc\\.cpio> #<marker at 2197 in
alphabet_small\\.newc\\.cpio> cpio-mode-entry-unmodified]))
+
+ (should (progn (message "Expecting a catalog with a new directory called
»newDirectory«.")
+ (string-match "((¨newDirectory¨ .
+\\s-+»»1 16877 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 13 0 ¨newDirectory¨«
+\\s-+#<marker at 2197 in alphabet_small.newc.cpio> #<marker at 2321 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨a¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨a¨«
+\\s-+#<marker at 1 in alphabet_small.newc.cpio> #<marker at 113 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨aa¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨aa¨«
+\\s-+#<marker at 117 in alphabet_small.newc.cpio> #<marker at 233 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨aaa¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨aaa¨«
+\\s-+#<marker at 241 in alphabet_small.newc.cpio> #<marker at 357 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaa¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨aaaa¨«
+\\s-+#<marker at 365 in alphabet_small.newc.cpio> #<marker at 481 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨aaaaa¨«
+\\s-+#<marker at 489 in alphabet_small.newc.cpio> #<marker at 605 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨aaaaa.d¨ .
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨aaaaa.d¨«
+\\s-+#<marker at 613 in alphabet_small.newc.cpio> #<marker at 733 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨b¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨b¨«
+\\s-+#<marker at 733 in alphabet_small.newc.cpio> #<marker at 845 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨bb¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨bb¨«
+\\s-+#<marker at 849 in alphabet_small.newc.cpio> #<marker at 965 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨bbb¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨bbb¨«
+\\s-+#<marker at 973 in alphabet_small.newc.cpio> #<marker at 1089 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbb¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨bbbb¨«
+\\s-+#<marker at 1097 in alphabet_small.newc.cpio> #<marker at 1213 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨bbbbb¨«
+\\s-+#<marker at 1221 in alphabet_small.newc.cpio> #<marker at 1337 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨bbbbb.d¨ .
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨bbbbb.d¨«
+\\s-+#<marker at 1345 in alphabet_small.newc.cpio> #<marker at 1465 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨c¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+4 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 2 0 ¨c¨«
+\\s-+#<marker at 1465 in alphabet_small.newc.cpio> #<marker at 1577 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨cc¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+5 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 3 0 ¨cc¨«
+\\s-+#<marker at 1581 in alphabet_small.newc.cpio> #<marker at 1697 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨ccc¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+6 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 4 0 ¨ccc¨«
+\\s-+#<marker at 1705 in alphabet_small.newc.cpio> #<marker at 1821 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨cccc¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+7 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 5 0 ¨cccc¨«
+\\s-+#<marker at 1829 in alphabet_small.newc.cpio> #<marker at 1945 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc¨ .
+\\s-+»»[[:digit:]]+ 33188 [[:digit:]]+ [[:digit:]]+ 1
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+8 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 6 0 ¨ccccc¨«
+\\s-+#<marker at 1953 in alphabet_small.newc.cpio> #<marker at 2069 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«)
+ (¨ccccc.d¨ .
+\\s-+»»[[:digit:]]+ 16877 [[:digit:]]+ [[:digit:]]+ 2
+\\s-+([[:digit:]]+ [[:digit:]]+)
+\\s-+0 [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+ 8 0 ¨ccccc.d¨«
+\\s-+#<marker at 2077 in alphabet_small.newc.cpio> #<marker at 2197 in
alphabet_small.newc.cpio> cpio-mode-entry-unmodified«))
" cpio-catalog-contents-after)))
- (cdmt-newc-test-save)))
+ (cdmt-test-save *cdmt-archive-format*)))
;;
@@ -16361,4 +18044,3 @@ newDirectory (( filename ))
(ert "^cdmt-newc-cpio-")
;;; cpio-dired-test.el ends here.
-
diff --git a/cpio-dired.el b/cpio-dired.el
index 10b9a29..0fa3883 100644
--- a/cpio-dired.el
+++ b/cpio-dired.el
@@ -1,6 +1,6 @@
;; -*- coding: utf-8 -*-
;;; cpio-dired.el --- UI definition à la dired.
-; $Id: cpio-dired.el,v 1.10 2018/06/17 07:34:12 doug Exp $
+; $Id: cpio-dired.el,v 1.13 2018/11/19 21:22:43 doug Exp $
;; COPYRIGHT
@@ -98,7 +98,8 @@ Keep any preceding comments."
;;
;; Dependencies
;;
-(require 'dired-aux)
+(eval-when-compile
+ (require 'dired-aux))
;;
@@ -673,16 +674,6 @@ Important: the match ends just after the marker.")
(if (looking-at *cpio-dired-entry-regexp*)
(match-string-no-properties *cpio-dired-name-idx*))))))
-(defun cpio-contents-buffer-name (name)
- "Return the name of the buffer that would/does hold the contents of entry
NAME.
-CAVEAT: Yes, there's a possibility of a collision here.
-However, that would mean that you're editing
-more than one archive, each containing entries of the same name
-more than one of whose contents you are currently editing.
-Run more than one instance of emacs to avoid such collisions."
- (let ((fname "cpio-contents-buffer-name"))
- (format "%s (in cpio archive %s)" name (file-name-nondirectory
(buffer-file-name *cab-parent*)))))
-
(defun cpio-dired-hide-details-update-invisibility-spec ()
"Toggle cpio-dired-hide-details-mode."
(let ((fname "cpio-dired-hide-details-update-invisibility-spec"))
@@ -697,7 +688,7 @@ Run more than one instance of emacs to avoid such
collisions."
'cpio-dired-hide-details-information)
(funcall (if (and cpio-dired-hide-details-mode
cpio-dired-hide-details-hide-symlink-targets
- (not (derived-mode-p 'wcpio-dired-mode)))
+ (not (derived-mode-p 'cpio-dired-mode)))
'add-to-invisibility-spec
'remove-from-invisibility-spec)
'cpio-dired-hide-details-link)))
@@ -741,9 +732,8 @@ CONTRACT: You're in that archive's buffer."
(setq start-marker (aref (cdr entry-info) 1)) ;HEREHERE Shouldn't this
have an abstraction?
(setq end-marker (1+ (cg-round-up (1- (+ (aref (cdr entry-info) 2)
(cpio-entry-size (cpio-entry-attrs
entry-name)))) *cpio-padding-modulus*)))
- (setq buffer-read-only nil)
- (delete-region start-marker end-marker)
- (setq buffer-read-only t)
+ (with-writable-buffer
+ (delete-region start-marker end-marker))
(setq *cpio-catalog* (delete (assoc entry-name *cpio-catalog*)
*cpio-catalog*)))))
(defun cpio-dired-marked-entries (char arg)
@@ -790,17 +780,14 @@ then use that to mark the new entry."
(cpio-delete-trailer)
(setq header-string (cpio-make-header-string attrs contents))
- (setq buffer-read-only nil)
-
- (setq header-start-marker (point-max-marker))
- (goto-char (point-max))
- (insert header-string)
+ (with-writable-buffer
+ (setq header-start-marker (point-max-marker))
+ (goto-char (point-max))
+ (insert header-string)
- (setq contents-start-marker (point-max-marker))
- (goto-char (point-max))
- (cpio-insert-padded-contents contents)
-
- (setq buffer-read-only t)
+ (setq contents-start-marker (point-max-marker))
+ (goto-char (point-max))
+ (cpio-insert-padded-contents contents))
(aset new-catalog-entry *cpio-catalog-entry-attrs-idx* attrs)
(aset new-catalog-entry *cpio-catalog-entry-header-start-idx*
header-start-marker)
@@ -814,9 +801,8 @@ then use that to mark the new entry."
(with-current-buffer cpio-dired-buffer
(save-excursion
(goto-char (point-max))
- (setq buffer-read-only nil)
- (insert (cpio-dired-format-entry attrs mark) "\n")
- (setq buffer-read-only t))))))
+ (with-writable-buffer
+ (insert (cpio-dired-format-entry attrs mark) "\n")))))))
(defun cpio-dired-get-marked-entries (&optional arg) ;✓
"Return a list of the marked entries in the current cpio-dired buffer."
@@ -868,15 +854,15 @@ CONTRACT:
(save-excursion
(cpio-dired-goto-entry entry-name)
- (setq buffer-read-only nil)
- (delete-region (line-beginning-position) (line-end-position))
- ;; (cpio-dired-goto-entry) needs entry-name in the catalog,
- ;; so don't update it until after.
- (cpio-set-entry-name attrs target)
- (with-current-buffer *cab-parent*
- (setcar (assoc entry-name *cpio-catalog*) target))
- (insert (cpio-dired-format-entry attrs mark))
- (setq buffer-read-only t))
+ (with-writable-buffer
+ (delete-region (line-beginning-position) (line-end-position)))
+ ;; (cpio-dired-goto-entry) needs entry-name in the catalog,
+ ;; so don't update it until after.
+ (cpio-set-entry-name attrs target)
+ (with-current-buffer *cab-parent*
+ (setcar (assoc entry-name *cpio-catalog*) target))
+ (with-writable-buffer
+ (insert (cpio-dired-format-entry attrs mark))))
(cpio-dired-move-to-entry-name)))
(defun cpio-dired-mark-read-regexp (operation)
@@ -913,9 +899,8 @@ CONTRACT: You're on the line to be replaced."
(cpio-move-to-entry entry-name)
(setq mark (cpio-dired-get-mark))
(cpio-dired-delete-dired-line entry-name)
- (setq buffer-read-only nil)
- (insert (cpio-dired-format-entry attrs mark))
- (setq buffer-read-only t))))
+ (with-writable-buffer
+ (insert (cpio-dired-format-entry attrs mark))))))
(defun cpio-dired-delete-dired-line (entry-name)
"Delete the line of ENTRY-NAME not including the new line."
@@ -923,9 +908,8 @@ CONTRACT: You're on the line to be replaced."
(unless (eq major-mode 'cpio-dired-mode)
(error "%s(): You're not in a cpio-dired-buffer." fname))
(cpio-move-to-entry entry-name)
- (setq buffer-read-only nil)
- (delete-region (line-beginning-position) (line-end-position))
- (setq buffer-read-only t)))
+ (with-writable-buffer
+ (delete-region (line-beginning-position) (line-end-position)))))
(defun cpio-dired-buffer-name (archive-name)
"Return the name of the dired-style buffer for ARCHIVE-NAME."
@@ -939,20 +923,24 @@ This returns the buffer created."
(archive-name (with-current-buffer archive-buffer
(file-name-nondirectory (buffer-file-name))))
(buffer-name (cpio-dired-buffer-name archive-name))
- (buffer (get-buffer-create buffer-name)) ;Is this not archive-buffer?
+ (buffer (get-buffer-create buffer-name))
(entry-string)
(catalog (cpio-catalog)))
(with-current-buffer buffer
(setq *cpio-catalog* catalog)
- (setq buffer-read-only nil)
- (erase-buffer)
- (insert "CPIO archive: " archive-name ":\n\n")
- (mapc (lambda (e)
- (let ((line (cpio-dired-format-entry (aref (cdr e) 0))))
- (insert (concat line "\n"))))
- (cpio-sort-catalog))
- (setq buffer-read-only t)
+ (with-writable-buffer
+ (erase-buffer)
+ (insert "CPIO archive: " archive-name ":\n\n")
+ (mapc (lambda (e)
+ (let ((line (cpio-dired-format-entry (aref (cdr e) 0))))
+ (insert (concat line "\n"))))
+ (cpio-sort-catalog)))
(cpio-dired-mode))
+
+ (if cab-clear-cab-info-buffer
+ (with-current-buffer *cab-info-buffer*
+ (erase-buffer)))
+
;; No, I do not yet understand why this must be done
;; every time the presentation is updated.
@@ -1065,25 +1053,21 @@ then use the current buffer."
(cpio-delete-trailer)
(setq header-string (cpio-make-header-string entry-attrs))
- (setq buffer-read-only nil)
+ (with-writable-buffer
+ (setq header-start-marker (point-max-marker))
+ (goto-char (point-max))
+ (insert header-string)
- (setq header-start-marker (point-max-marker))
- (goto-char (point-max))
- (insert header-string)
+ (setq contents-start-marker (point-max-marker))
+ (goto-char (point-max))
+ (insert-file-contents filename)
- (setq contents-start-marker (point-max-marker))
- (goto-char (point-max))
- (insert-file-contents filename)
-
- (goto-char (point-max))
- (cpio-insert-trailer)
-
- (setq buffer-read-only t)
+ (goto-char (point-max))
+ (cpio-insert-trailer))
(with-current-buffer cpio-dired-buffer
- (setq buffer-read-only nil)
- (delete-region (line-beginning-position) (1+ (line-end-position)))
- (setq buffer-read-only t))))))
+ (with-writable-buffer
+ (delete-region (line-beginning-position) (1+
(line-end-position)))))))))
;; * c dired-change-marks
(defun cpio-dired-change-marks (old new) ;✓✓
@@ -1100,13 +1084,12 @@ OLD and NEW are both characters used to mark entries."
(save-excursion
(cpio-dired-move-to-first-entry)
(beginning-of-line)
- (setq buffer-read-only nil)
- (while (< (point) (point-max))
- (when (looking-at-p old)
- (delete-char 1)
- (insert new))
- (forward-line 1))
- (setq buffer-read-only t))))
+ (with-writable-buffer
+ (while (< (point) (point-max))
+ (when (looking-at-p old)
+ (delete-char 1)
+ (insert new))
+ (forward-line 1))))))
;; - negative-argument
;; . dired-clean-directory
@@ -1171,9 +1154,8 @@ This respects umask(1) as available through
(default-file-modes)."
(cpio-dired-create-directory directory))
(save-excursion
(goto-char (point-max))
- (setq buffer-read-only nil)
- (insert (concat (cpio-dired-format-entry (cpio-entry-attrs
directory)) "\n"))
- (setq buffer-read-only t))
+ (with-writable-buffer
+ (insert (concat (cpio-dired-format-entry (cpio-entry-attrs
directory)) "\n"))))
(cpio-dired-set-modified))
(t
(unless (eq major-mode 'cpio-mode)
@@ -1187,13 +1169,13 @@ This respects umask(1) as available through
(default-file-modes)."
(setq namesize (1+ (length directory)))
(setq attrs (cpio-create-faux-directory-attrs directory))
(cpio-set-mode attrs (logior s-ifdir (default-file-modes)))
- (cpio-delete-trailer)
- (setq header-start (point-max-marker))
- (setq header-string (cpio-make-header-string attrs))
- (goto-char (point-max))
- (setq buffer-read-only nil)
- (insert header-string)
- (setq buffer-read-only t)
+ (with-writable-buffer
+ (cpio-delete-trailer)
+ (setq header-start (point-max-marker))
+ (setq header-string (cpio-make-header-string attrs))
+ (goto-char (point-max))
+ (insert header-string)
+ (setq buffer-read-only t))
(setq contents-start (point-max-marker))
(push (cons directory
(vector attrs
@@ -1260,12 +1242,14 @@ the string of command switches for the third argument
of `diff'."
;; C-o dired-display-file
(defun cpio-dired-display-entry () ;✓
- "In a cpio UI buffer, display the entry on the current line in another
window."
+ "In a cpio UI buffer, display the entry on the current line in another
window.
+Return the buffer containing the entry's contents."
(interactive)
(let ((fname "cpio-dired-display-entry")
(target-buffer (cpio-dired-find-entry)))
(with-current-buffer target-buffer
- (setq buffer-read-only t))))
+ (setq buffer-read-only t))
+ target-buffer))
;; % Prefix Command
;; & dired-do-async-shell-command
@@ -1361,11 +1345,10 @@ in the buffer containing the archive."
(save-excursion
(cpio-dired-goto-entry en)
(setq mark (cpio-dired-get-mark))
- (setq buffer-read-only nil)
- (delete-region (line-beginning-position)
- (line-end-position))
- (insert (cpio-dired-format-entry attrs mark))
- (setq buffer-read-only t))))
+ (with-writable-buffer
+ (delete-region (line-beginning-position)
+ (line-end-position))
+ (insert (cpio-dired-format-entry attrs mark))))))
entry-names)
(cpio-dired-set-modified)))))
@@ -1481,11 +1464,10 @@ into the minibuffer."
(save-excursion
(cpio-dired-goto-entry en)
(setq mark (cpio-dired-get-mark))
- (setq buffer-read-only nil)
- (delete-region (line-beginning-position)
- (line-end-position))
- (insert (cpio-dired-format-entry attrs mark))
- (setq buffer-read-only t))))
+ (with-writable-buffer
+ (delete-region (line-beginning-position)
+ (line-end-position))
+ (insert (cpio-dired-format-entry attrs mark))))))
entry-names)
(cpio-dired-set-modified)))))
@@ -1565,9 +1547,8 @@ Marks win over ARG."
(mapc (lambda (en)
(save-excursion
(cpio-dired-goto-entry en)
- (setq buffer-read-only nil)
- (delete-region (line-beginning-position) (1+ (line-end-position)))
- (setq buffer-read-only t)
+ (with-writable-buffer
+ (delete-region (line-beginning-position) (1+
(line-end-position))))
(cpio-internal-do-deletion en)))
entries)
@@ -1592,10 +1573,9 @@ non-empty directories is allowed."
(mapc (lambda (en)
(save-excursion
(cond ((cpio-dired-goto-entry en)
- (setq buffer-read-only nil)
- (delete-region (line-beginning-position)
- (1+ (line-end-position)))
- (setq buffer-read-only t))
+ (with-writable-buffer
+ (delete-region (line-beginning-position)
+ (1+ (line-end-position)))))
(t t)))
(cpio-internal-do-deletion en))
entries)
@@ -1907,14 +1887,45 @@ See function `dired-do-rename-regexp' for more info."
(error "%s() is not yet implemented" fname)))
;; T dired-do-touch
-(defun cpio-dired-do-touch (arg) ;×
- "Change the timestamp of the marked (or next ARG) entries.
-Type M-n to pull the entry attributes of the entry at point
-into the minibuffer."
+(defun cpio-dired-do-touch (arg) ;✓
+ "Change the timestamp of the marked (or next ARG) entries."
+ ;; HEREHERE To be done:
+ ;; Type M-n to pull the entry attributes of the entry at point
+ ;; into the minibuffer."
(interactive "p")
(let ((fname "cpio-dired-do-touch")
- (names (cpio-dired-get-marked-entries arg)))
- (error "%s() is not yet implemented" fname)
+ (entries (cpio-dired-get-marked-entries arg))
+ (prompt)
+ (human-timestamp)
+ (timestamp (current-time))
+ (time-re)
+ (human-time)
+ (time)
+ (entry-name)
+ )
+ ;; (error "%s() is not yet implemented" fname)
+ (cond ((= (length entries) 0)
+ (error "%s(): No cpio archive entries found." fname))
+ ((or (> arg 1)
+ (> (length entries) 1))
+ (setq prompt (format "Change timestamp of %d files to when? [now]? "
(length entries))))
+ ((= arg 1)
+ (setq prompt (format "Change timestamp of %s to when? [now]? " (car
entries))))
+ (t
+ (error "%s(): Impossible situation." fname)))
+ (setq human-timestamp (read-from-minibuffer prompt))
+ (while human-timestamp
+ (if (string-equal human-timestamp "")
+ (setq time (current-time))
+ (setq time (encode-human-time human-timestamp)))
+ (cond (time
+ (dolist (entry entries)
+ (cpio-set-mtime (cpio-entry-attrs entry) time)
+ (cpio-dired-replace-dired-line entry))
+ (setq human-timestamp nil))
+ ((y-or-n-p (format "[[%s]] looks ambiguous. Try again?"))
+ (setq human-timestamp (read-from-minibuffer prompt)))
+ (t (setq human-timestamp nil))))
(cpio-dired-set-modified)))
;; % l dired-downcase
@@ -1967,10 +1978,14 @@ Return the buffer containing those contents."
(interactive)
(let ((fname "cpio-dired-find-entry")
(find-file-run-dired t)
- (local-entry-name (cpio-dired-get-entry-name)))
+ (local-entry-name (cpio-dired-get-entry-name))
+ (entry-buf))
(cond ((null local-entry-name)
(message "%s(): Could not get entry name." fname))
- (t (cpio-find-entry local-entry-name)))))
+ (t
+ (with-current-buffer (setq entry-buf (cpio-find-entry
local-entry-name))
+ (cpio-entry-contents-mode))
+ (pop-to-buffer entry-buf)))))
;; n dired-next-line
;; o dired-find-file-other-window
@@ -2261,10 +2276,9 @@ CONTRACT: You must be allowed to operate on that entry."
(unless char (setq char cpio-dired-marker-char))
(let ((fname "cpio-dired-mark-this-entry"))
(beginning-of-line)
- (setq buffer-read-only nil)
- (delete-char 1)
- (insert (char-to-string char))
- (setq buffer-read-only t)
+ (with-writable-buffer
+ (delete-char 1)
+ (insert (char-to-string char)))
(cpio-dired-next-line 1)))
(defun cpio-dired-marker-regexp ()
@@ -2429,52 +2443,50 @@ one. If non-nil, reset `quit-restore' parameter to
nil."
(cpio-dired-set-unmodified))
(t
(cpio-delete-trailer)
- (setq buffer-read-only nil)
- (mapc (lambda (cen) ;(cons name entry-contents)
- (let* ((entry-info (cdr cen))
- (attrs (aref entry-info
*cpio-catalog-entry-attrs-idx*))
- (header-start (marker-position
- (aref entry-info 1)))
- (header-end (marker-position
- (aref entry-info 2)))
- (header-string (cpio-make-header-string
- attrs)))
- (goto-char header-start)
- (delete-region header-start header-end)
- (set-marker (aref entry-info 1) (point)) ;Redundant?
- (insert header-string)
- (goto-char (+ (aref entry-info 1)
- (length header-string)))
- (set-marker (aref entry-info 2) (point))
- (forward-char (cpio-entry-size attrs))
- (while (looking-at-p "\0")
- (delete-char 1))))
- ;; Do the adjustments backwards to ensure that the resulting
markers are correct.
- (reverse *cpio-catalog*))
- ;; Adjust all the entry padding.
- (mapc (lambda (cen)
- (let* ((entry (cdr cen))
- (attrs (aref entry
*cpio-catalog-entry-attrs-idx*))
- (header-start (marker-position (aref entry
*cpio-catalog-entry-header-start-idx*)))
- (entry-start (marker-position (aref entry
*cpio-catalog-entry-contents-start-idx*)))
- (cpio-set-entry-unmodified entry)
- (header-string (cpio-make-header-string attrs))
- (local-where)
- (padding-length))
- (goto-char (+ entry-start (cpio-entry-size attrs)))
- (setq local-where (mod (1- (point))
- *cpio-padding-modulus*))
- (cond ((= 0 local-where)
- (setq padding-length 0))
- (t
- (setq padding-length (- *cpio-padding-modulus*
local-where))))
- (insert (make-string padding-length ?\0))))
- *cpio-catalog*)
- (cpio-adjust-trailer)
- (setq buffer-read-only t)
+ (with-writable-buffer
+ (mapc (lambda (cen) ;(cons name entry-contents)
+ (let* ((entry-info (cdr cen))
+ (attrs (aref entry-info
*cpio-catalog-entry-attrs-idx*))
+ (header-start (marker-position
+ (aref entry-info 1)))
+ (header-end (marker-position
+ (aref entry-info 2)))
+ (header-string (cpio-make-header-string
+ attrs)))
+ (goto-char header-start)
+ (delete-region header-start header-end)
+ (set-marker (aref entry-info 1) (point)) ;Redundant?
+ (insert header-string)
+ (goto-char (+ (aref entry-info 1)
+ (length header-string)))
+ (set-marker (aref entry-info 2) (point))
+ (forward-char (cpio-entry-size attrs))
+ (while (looking-at-p "\0")
+ (delete-char 1))))
+ ;; Do the adjustments backwards to ensure that the resulting
markers are correct.
+ (reverse *cpio-catalog*))
+ ;; Adjust all the entry padding.
+ (mapc (lambda (cen)
+ (let* ((entry (cdr cen))
+ (attrs (aref entry
*cpio-catalog-entry-attrs-idx*))
+ (header-start (marker-position (aref entry
*cpio-catalog-entry-header-start-idx*)))
+ (entry-start (marker-position (aref entry
*cpio-catalog-entry-contents-start-idx*)))
+ (cpio-set-entry-unmodified entry)
+ (header-string (cpio-make-header-string attrs))
+ (local-where)
+ (padding-length))
+ (goto-char (+ entry-start (cpio-entry-size attrs)))
+ (setq local-where (mod (1- (point))
+ *cpio-padding-modulus*))
+ (cond ((= 0 local-where)
+ (setq padding-length 0))
+ (t
+ (setq padding-length (- *cpio-padding-modulus*
local-where))))
+ (insert (make-string padding-length ?\0))))
+ *cpio-catalog*)
+ (cpio-adjust-trailer))
(basic-save-buffer)))))
-
;; y dired-show-file-type
(defun cpio-dired-show-entry-type (entry &optional deref-symlinks) ;×
"Print the type of ENTRY, according to the `entry' command.
@@ -2589,20 +2601,19 @@ Type C-h at that time for help."
(save-excursion
(cpio-dired-move-to-first-entry)
(beginning-of-line)
- (setq buffer-read-only nil)
(while (< (point) (point-max))
(setq entry (cpio-dired-get-entry-name))
(beginning-of-line)
(if (looking-at-p mark)
- (cond ((and arg
- (y-or-n-p (format "Unmark entry `%s'? " entry)))
- (delete-char 1)
- (insert " "))
- (t
- (delete-char 1)
- (insert " "))))
- (cpio-dired-next-line 1))
- (setq buffer-read-only t))))))
+ (with-writable-buffer
+ (cond ((and arg
+ (y-or-n-p (format "Unmark entry `%s'? " entry)))
+ (delete-char 1)
+ (insert " "))
+ (t
+ (delete-char 1)
+ (insert " "))))
+ (cpio-dired-next-line 1))))))))
;; * ! dired-unmark-all-marks
;; U dired-unmark-all-marks
@@ -2614,13 +2625,12 @@ Type C-h at that time for help."
(error "%s(): You're not in a cpio-dired buffer." fname))
(save-excursion
(cpio-dired-move-to-first-entry)
- (setq buffer-read-only nil)
- (while (< (point) (point-max))
- (beginning-of-line)
- (delete-char 1)
- (insert " ")
- (cpio-dired-next-line 1))
- (setq buffer-read-only t))))
+ (with-writable-buffer
+ (while (< (point) (point-max))
+ (beginning-of-line)
+ (delete-char 1)
+ (insert " ")
+ (cpio-dired-next-line 1))))))
;; DEL dired-unmark-backward
;; * DEL dired-unmark-backward
diff --git a/cpio-entry-contents-mode.el b/cpio-entry-contents-mode.el
index e4acbe3..bd9f29d 100644
--- a/cpio-entry-contents-mode.el
+++ b/cpio-entry-contents-mode.el
@@ -1,6 +1,6 @@
;; -*- coding: utf-8 -*-
;;; cpio-entry-contents-mode.el --- minor mode for editing a cpio-entry's
contents.
-; $Id: cpio-entry-contents-mode.el,v 1.6 2018/06/17 07:34:12 doug Exp $
+; $Id: cpio-entry-contents-mode.el,v 1.8 2018/11/19 21:25:38 doug Exp $
;; COPYRIGHT
;;
;; Copyright © 2017, 2018 Douglas Lewan, address@hidden
@@ -129,6 +129,7 @@ If NAME is not given, then use 'aa'."
;; Library
;;
+
;;
;; Commands
@@ -142,13 +143,11 @@ If NAME is not given, then use 'aa'."
(attrs (cpio-entry-attrs cpio-entry-name))
(header-string)
(size (buffer-size))
- (new-contents (buffer-string)))
- (unless (catch 'minor-mode-check
- (mapc (lambda (m)
- (if (eq m 'cpio-entry-contents-mode)
- (throw 'minor-mode-check t)))
- minor-mode-list))
+ (new-contents (buffer-string))
+ (dired-buffer-name))
+ (unless (cpio-entry-contents-buffer-p)
(error "%s(): You're not in a cpio entry contents buffer." fname))
+
(with-current-buffer *cab-parent*
;; 1. Delete the entry's head and contents (plus padding) in the parent
buffer.
(cpio-delete-archive-entry entry)
@@ -161,17 +160,32 @@ If NAME is not given, then use 'aa'."
(setq header-string (cpio-make-header-string attrs))
;; 5. Write the header in the archive buffer (plus padding).
(goto-char (cpio-entry-header-start entry))
- (setq buffer-read-only nil)
- (insert header-string)
- (setq buffer-read-only t)
- (aset entry *cpio-catalog-entry-contents-start-idx* (point-marker)))
+ (with-writable-buffer
+ (insert header-string))
+ (aset entry *cpio-catalog-entry-contents-start-idx* (point-marker))
+
+ (setq dired-buffer-name (cpio-dired-buffer-name (buffer-file-name))))
;; 6. Mark the contents buffer as unmodified.
(set-buffer-modified-p nil)
;; 6a. But mark the entry in the archive modified.
(cpio-set-entry-modified entry)
;; 7. Update the dired-like interface.
- (with-current-buffer *cab-parent*
- (cpio-present-ala-dired (current-buffer)))))
+ (with-current-buffer dired-buffer-name
+ (save-excursion
+ (cpio-dired-goto-entry name)
+ (with-writable-buffer
+ (delete-region (line-beginning-position) (line-end-position))
+ (insert (cpio-dired-format-entry attrs)))))
+ (message "Saved into cpio archive buffer `%s'. Be sure to save that
buffer!"
+ (file-name-nondirectory (buffer-file-name *cab-parent*)))))
+
+(defun cpio-entry-contents-buffer-p ()
+ "Return non-NIL if the current buffer is an entry contents buffer."
+ (let ((fname "cpio-entry-contents-buffer-p")
+ )
+ ;; (error "%s() is not yet implemented" fname)
+ (member 'cpio-entry-contents-mode (current-minor-modes))
+ ))
(defun cpio-entry-contents-kill (&optional buffer-or-name)
"Kill the buffer specified by BUFFER-OR-NAME.
@@ -186,6 +200,21 @@ A name denotes the name of an entry in the cpio archive."
(yes-or-no-p "Buffer is modified. Really kill? "))
(kill-buffer buffer))))
+(defun cpio-entry-contents-revert-buffer ()
+ "Discard any changes to the current CPIO archive entry and
+reload the [current] entry contents."
+ (interactive)
+ (let ((fname "cpio-entry-contents-revert-buffer")
+ )
+ ;; (error "%s() is not yet implemented" fname)
+ (unless (cpio-entry-contents-buffer-p)
+ (error "%s(): You're not in an entry contetnts buffer." fname))
+ (with-writable-buffer
+ (erase-buffer)
+ (cpio-find-entry cpio-entry-name)
+ (set-auto-mode 'keep-mode-if-same))
+ ))
+
;;
;; Mode definition (IF APPROPRIATE)
@@ -198,6 +227,7 @@ A name denotes the name of an entry in the cpio archive."
(let ((fname "cpio-entry-contents-make-keymap"))
(define-key *cpio-entry-contents-mode-map* "\C-x\C-s"
'cpio-entry-contents-save)
(define-key *cpio-entry-contents-mode-map* "\C-x\C-k"
'cpio-entry-contents-kill)
+ ;; HEREHERE Does the following make sense any more?
(define-key *cpio-entry-contents-mode-map* "\M-,"
'cpio-tags-loop-continue)))
(define-minor-mode cpio-entry-contents-mode
@@ -206,7 +236,30 @@ This mode is automatically invoked when the contents of a
cpio entry are
prepared for editing."
nil
" entry contents"
- :keymap *cpio-entry-contents-mode-map* :global nil)
+ :keymap *cpio-entry-contents-mode-map*
+ :global nil
+ :lighter "(cpio entry)"
+ ;; Major modes kill local variables.
+ ;; Keep the ones we need for cpio entry contents.
+ (let ((cab-parent *cab-parent*)
+ (entry-name cpio-entry-name)
+ (attrs (cpio-entry-attrs cpio-entry-name))
+ (local-buffer-file-name buffer-file-name)
+ )
+ ;; For some reason (decode-coding-region) seems to need a writable buffer.
+ ;; (with-writable-buffer
+ ;; (decode-coding-region (cpio-entry-contents-start (cpio-entry
entry-name))
+ ;; (cpio-entry-contents-end (cpio-entry
entry-name))
+ ;; nil)))
+ ;; (point-min) (point-max) nil)
+ ;; (set-buffer-file-coding-system last-coding-system-used t)
+
+ ;; (normal-mode)
+ (set-auto-mode 'keep-mode-if-same)
+ (setq *cab-parent* cab-parent)
+ (setq cpio-entry-name entry-name)
+ (setq buffer-file-name local-buffer-file-name)
+ (setq cpio-entry-contents-mode t)))
(cpio-entry-contents-make-keymap)
diff --git a/cpio-generic.el b/cpio-generic.el
index 0332103..3e83f5b 100644
--- a/cpio-generic.el
+++ b/cpio-generic.el
@@ -1,6 +1,6 @@
;; -*- coding: utf-8 -*-
;;; cpio-generic.el --- generically useful functions created in support of
CPIO mode.
-; $Id: cpio-generic.el,v 1.7 2018/06/17 07:34:12 doug Exp $
+; $Id: cpio-generic.el,v 1.9 2018/11/19 21:25:38 doug Exp $
;; COPYRIGHT
;;
@@ -215,6 +215,497 @@ CAVEAT: This deletes any buffer holding /etc/group."
(string-to-number gid))
(t nil))))
+(defmacro with-writable-buffer (&rest body)
+ "Run body with the current buffer writable.
+Reset the buffer's read-only (or not) status after execution."
+ `(let ((bro-before buffer-read-only))
+ (setq buffer-read-only nil)
+ ,@body
+ (setq buffer-read-only bro-before)))
+
+(defun current-minor-modes ()
+ "Return a list of currently active minor modes.
+The contents are symbols.
+The definition of \"currently active\" comes
+from the code for \(describe-mode\)."
+ (let ((fname "current-minor-modes")
+ (mode)
+ (result))
+ ;; (error "%s() is not yet implemented." fname)
+ (dolist (mode minor-mode-list result)
+ (let ((fmode (or (get mode :minor-mode-function) mode)))
+ (if (and (boundp mode) (symbol-value mode) (fboundp fmode))
+ (push mode result))))
+ result))
+
+(defun encode-human-time (human-time)
+ "Return an emacs time from a HUMAN-TIME.
+HUMAN-TIME may be any of many time formats typically used by humans.
+If I've missed one, please let me know.
+Star dates, really, star dates.
+Besides that, with general relativity can we really be sure?
+CAVEAT: This function attampts to handle multiple forms of dates in English.
+Other languages are not yet implemented."
+ (let ((fname "encode-human-time")
+ (year nil) ;We'll use this to test for success.
+ (month 0)
+ (day 0)
+ (hour 0)
+ (minute 0)
+ (second 0)
+ (year-re (concat "\\("
+ "[[:digit:]]\\{4\\}"
+ "\\)"))
+ (mon-re (concat "\\("
+ "jan"
+ "\\|"
+ "feb"
+ "\\|"
+ "mar"
+ "\\|"
+ "apr"
+ "\\|"
+ "may"
+ "\\|"
+ "jun"
+ "\\|"
+ "jul"
+ "\\|"
+ "aug"
+ "\\|"
+ "sep"
+ "\\|"
+ "oct"
+ "\\|"
+ "nov"
+ "\\|"
+ "dec"
+ "\\)"))
+ (month-re (concat "\\("
+ "january"
+ "\\|"
+ "february"
+ "\\|"
+ "march"
+ "\\|"
+ "april"
+ "\\|"
+ "may"
+ "\\|"
+ "june"
+ "\\|"
+ "july"
+ "\\|"
+ "august"
+ "\\|"
+ "september"
+ "\\|"
+ "october"
+ "\\|"
+ "november"
+ "\\|"
+ "december"
+ "\\)"))
+ (mm-re "\\(0?[[:digit:]]\\|1[012]\\)")
+ (day-re "\\([012]?[[:digit:]]\\|3[01]\\)")
+ (time-re (concat "\\("
+ "\\([012]?[[:digit:]]\\)"
+ ":"
+ "\\([012345][[:digit:]]\\)"
+ "\\("
+ ":"
+ "\\([0123456][[:digit:]]\\)"
+ "\\)?"
+ "\\)"))
+ )
+ ;; (error "%s() is not yet implemented" fname)
+ (save-match-data
+ (cond
+ ((string-match (concat "\\`"
+ year-re
+ "[-/ ]+"
+ month-re
+ "[-/ ]+"
+ day-re
+ "[- ]*"
+ time-re
+ "?\\'"
+ )
+ human-time)
+ (setq year (string-to-number (match-string-no-properties 1
human-time)))
+ (setq month (month-to-number (match-string-no-properties 2
human-time)))
+ (setq day (string-to-number (match-string-no-properties 3
human-time)))
+
+ (setq hour (string-to-number (or (match-string-no-properties 5
human-time) "0")))
+ (setq minute (string-to-number (or (match-string-no-properties 6
human-time) "0")))
+ (setq second (string-to-number (or (match-string-no-properties 8
human-time) "0"))))
+
+ ((string-match (concat "\\`"
+ year-re
+ "[-/ ]+"
+ mon-re
+ "[-/ ]+"
+ day-re
+ "[- ]*"
+ time-re
+ "?\\'"
+ )
+ human-time)
+ (setq year (string-to-number (match-string-no-properties 1
human-time)))
+ (setq month (month-to-number (match-string-no-properties 2
human-time)))
+ (setq day (string-to-number (match-string-no-properties 3
human-time)))
+
+ (setq hour (string-to-number (or (match-string-no-properties 5
human-time) "0")))
+ (setq minute (string-to-number (or (match-string-no-properties 6
human-time) "0")))
+ (setq second (string-to-number (or (match-string-no-properties 8
human-time) "0"))))
+
+ ((string-match (concat "\\`"
+ month-re
+ "[-/ ]+"
+ day-re
+ "[,]?\\s-+"
+ year-re
+ "[-/ ]*"
+ time-re
+ "?\\'")
+ human-time)
+ (setq year (string-to-number (match-string-no-properties 3
human-time)))
+ (setq month (month-to-number (match-string-no-properties 1
human-time)))
+ (setq day (string-to-number (match-string-no-properties 2
human-time)))
+
+ (setq hour (string-to-number (or (match-string-no-properties 5
human-time) "0")))
+ (setq minute (string-to-number (or (match-string-no-properties 6
human-time) "0")))
+ (setq second (string-to-number (or (match-string-no-properties 8
human-time) "0"))))
+
+ ((string-match (concat "\\`"
+ mon-re
+ "[-/ ]+"
+ day-re
+ "[,]?\\s-*"
+ year-re
+ "[-/ ]*"
+ time-re
+ "?\\'")
+ human-time)
+ (setq year (string-to-number (match-string-no-properties 3
human-time)))
+ (setq month (month-to-number (match-string-no-properties 1
human-time)))
+ (setq day (string-to-number (match-string-no-properties 2
human-time)))
+
+ (setq hour (string-to-number (or (match-string-no-properties 5
human-time) "0")))
+ (setq minute (string-to-number (or (match-string-no-properties 6
human-time) "0")))
+ (setq second (string-to-number (or (match-string-no-properties 8
human-time) "0")))
+
+ (message "Format: [[Month dd, YYYY hh:mm:ss]]")
+ "[[Month dd, YYYY hh:mm:ss]]")
+
+ ;; Some date forms are ambiguous. Avoid them.
+ ((or (and (string-match (concat "\\`"
+ year-re
+ "[-/ ]+"
+ mm-re
+ "[-/ ]+"
+ day-re
+ "[-/ ]*"
+ time-re
+ "?\\'")
+ human-time)
+ (string-match (concat "\\`"
+ year-re
+ "[-/ ]+"
+ day-re
+ "[-/ ]+"
+ mm-re
+ "[-/ ]*"
+ time-re
+ "?\\'")
+ human-time))
+ (and (string-match (concat "\\`"
+ mm-re
+ "[-/ ]+"
+ day-re
+ "[-/ ]+"
+ year-re
+ "[-/ ]*"
+ time-re
+ "?\\'")
+ human-time)
+ (string-match (concat "\\`"
+ day-re
+ "[-/ ]+"
+ mm-re
+ "[-/ ]+"
+ year-re
+ "[-/ ]*"
+ time-re
+ "?\\'")
+ human-time)))
+ nil)
+ ((string-match (concat "\\`"
+ year-re
+ "[-/ ]+"
+ mm-re
+ "[-/ ]+"
+ day-re
+ "[-/ ]*"
+ time-re
+ "?\\'")
+ human-time)
+ (setq year (string-to-number (match-string-no-properties 1
human-time)))
+ (setq month (string-to-number (match-string-no-properties 2
human-time)))
+ (setq day (string-to-number (match-string-no-properties 3
human-time)))
+
+ (setq hour (string-to-number (or (match-string-no-properties 5
human-time) "0")))
+ (setq minute (string-to-number (or (match-string-no-properties 6
human-time) "0")))
+ (setq second (string-to-number (or (match-string-no-properties 8
human-time) "0"))))
+
+ ((string-match (concat "\\`"
+ mm-re
+ "[-/ ]+"
+ day-re
+ "[-/ ]+"
+ year-re
+ "[-/ ]*"
+ time-re
+ "?\\'")
+ human-time)
+ (setq year (string-to-number (match-string-no-properties 3
human-time)))
+ (setq month (string-to-number (match-string-no-properties 1
human-time)))
+ (setq day (string-to-number (match-string-no-properties 2
human-time)))
+
+ (setq hour (string-to-number (or (match-string-no-properties 5
human-time) "0")))
+ (setq minute (string-to-number (or (match-string-no-properties 6
human-time) "0")))
+ (setq second (string-to-number (or (match-string-no-properties 8
human-time) "0"))))
+
+ ((string-match (concat "\\`"
+ year-re
+ "[-/ ]+"
+ mm-re
+ "[-/ ]+"
+ day-re
+ "[-/ ]*"
+ time-re
+ "?\\'")
+ human-time)
+
+ (setq year (string-to-number (match-string-no-properties 1
human-time)))
+ (setq month (string-to-number (match-string-no-properties 2
human-time)))
+ (setq day (string-to-number (match-string-no-properties 3
human-time)))
+
+ (setq hour (string-to-number (or (match-string-no-properties 5
human-time) "0")))
+ (setq minute (string-to-number (or (match-string-no-properties 6
human-time) "0")))
+ (setq second (string-to-number (or (match-string-no-properties 8
human-time) "0"))))
+
+ (t (message "Unknown format.")
+ nil)))
+ (if year
+ (encode-time second minute hour day month year)
+ nil)
+ ))
+
+(defun month-to-number (month-name)
+ "Convert The MONTH-NAME to a number (1..12)."
+ (let ((fname "month-to-number")
+ )
+ ;; (error "%s() is not yet implemented" fname)
+ (save-match-data
+ (cond ((string-match "jan" (substring month-name 0 3))
+ 1)
+ ((string-match "feb" (substring month-name 0 3))
+ 2)
+ ((string-match "mar" (substring month-name 0 3))
+ 3)
+ ((string-match "apr" (substring month-name 0 3))
+ 4)
+ ((string-match "may" (substring month-name 0 3))
+ 5)
+ ((string-match "jun" (substring month-name 0 3))
+ 6)
+ ((string-match "jul" (substring month-name 0 3))
+ 7)
+ ((string-match "aug" (substring month-name 0 3))
+ 8)
+ ((string-match "sep" (substring month-name 0 3))
+ 9)
+ ((string-match "oct" (substring month-name 0 3))
+ 10)
+ ((string-match "nov" (substring month-name 0 3))
+ 11)
+ ((string-match "dec" (substring month-name 0 3))
+ 12)
+ (t (message "%s(): Unknown month [[%s]]." fname month-name))))))
+
+(defun test-encode-human-time ()
+ "Test (encode-human-time)."
+ (interactive)
+ (let ((fname "test-encode-human-time")
+ (results-buf (get-buffer-create "*Human time results*"))
+ (time-in)
+ (emacs-time)
+ (time-out)
+ (format "")
+ (test-dates (list
+ "2018 Nov 9"
+ "2018 Nov 9 9:53"
+ "2018 Nov 9 09:53"
+ "2018 Nov 9 9:53:23"
+ "2018 Nov 9 09:53:23"
+
+ "2018 Nov 09"
+ "2018 Nov 09 9:53"
+ "2018 Nov 09 09:53"
+ "2018 Nov 09 9:53:23"
+ "2018 Nov 09 09:53:23"
+
+ "2018 Nov 19"
+ "2018 Nov 19 9:53"
+ "2018 Nov 19 09:53"
+ "2018 Nov 19 9:53:23"
+ "2018 Nov 19 09:53:23"
+
+ "2018-Nov-29"
+ "2018-Nov-29 9:53"
+ "2018-Nov-29 09:53"
+ "2018-Nov-29 9:53:23"
+ "2018-Nov-29 09:53:23"
+
+ "2018/Nov/19"
+ "2018/Nov/19 9:53"
+ "2018/Nov/19 09:53"
+ "2018/Nov/19 9:53:23"
+ "2018/Nov/19 09:53:23"
+
+
+
+ "2018 November 9"
+ "2018 November 9 9:53"
+ "2018 November 9 09:53"
+ "2018 November 9 9:53:23"
+ "2018 November 9 09:53:23"
+
+ "2018 November 09"
+ "2018 November 09 9:53"
+ "2018 November 09 09:53"
+ "2018 November 09 9:53:23"
+ "2018 November 09 09:53:23"
+
+ "2018 November 19"
+ "2018 November 19 9:53"
+ "2018 November 19 09:53"
+ "2018 November 19 9:53:23"
+ "2018 November 19 09:53:23"
+
+ "2018-November-29"
+ "2018-November-29 9:53"
+ "2018-November-29 09:53"
+ "2018-November-29 9:53:23"
+ "2018-November-29 09:53:23"
+
+ "2018/November/19"
+ "2018/November/19 9:53"
+ "2018/November/19 09:53"
+ "2018/November/19 9:53:23"
+ "2018/November/19 09:53:23"
+
+
+
+
+
+ "11 09 2018"
+ "11 09 2018 9:53"
+ "11 09 2018 09:53"
+ "11 09 2018 9:53:23"
+ "11 09 2018 09:53:23"
+
+ "11 19 2018"
+ "11 19 2018 9:53"
+ "11 19 2018 09:53"
+ "11 19 2018 9:53:23"
+ "11 19 2018 09:53:23"
+
+ "11-29-2018"
+ "11-29-2018 9:53"
+ "11-29-2018 09:53"
+ "11-29-2018 9:53:23"
+ "11-29-2018 09:53:23"
+
+ "11/19/2018"
+ "11/19/2018 9:53"
+ "11/19/2018 09:53"
+ "11/19/2018 9:53:23"
+ "11/19/2018 09:53:23"
+
+ "2018 11 9"
+ "2018 11 9 9:53"
+ "2018 11 9 09:53"
+ "2018 11 9 9:53:23"
+ "2018 11 9 09:53:23"
+
+ "2018 11 09"
+ "2018 11 09 9:53"
+ "2018 11 09 09:53"
+ "2018 11 09 9:53:23"
+ "2018 11 09 09:53:23"
+
+ "2018 11 19"
+ "2018 11 19 9:53"
+ "2018 11 19 09:53"
+ "2018 11 19 9:53:23"
+ "2018 11 19 09:53:23"
+
+ "2018-11-29"
+ "2018-11-29 9:53"
+ "2018-11-29 09:53"
+ "2018-11-29 9:53:23"
+ "2018-11-29 09:53:23"
+
+ "2018/11/19"
+ "2018/11/19 9:53"
+ "2018/11/19 09:53"
+ "2018/11/19 9:53:23"
+ "2018/11/19 09:53:23"
+
+ "11 09 2018"
+ "11 09 2018 9:53"
+ "11 09 2018 09:53"
+ "11 09 2018 9:53:23"
+ "11 09 2018 09:53:23"
+
+ "11 19 2018"
+ "11 19 2018 9:53"
+ "11 19 2018 09:53"
+ "11 19 2018 9:53:23"
+ "11 19 2018 09:53:23"
+
+ "11-29-2018"
+ "11-29-2018 9:53"
+ "11-29-2018 09:53"
+ "11-29-2018 9:53:23"
+ "11-29-2018 09:53:23"
+
+ "11/19/2018"
+ "11/19/2018 9:53"
+ "11/19/2018 09:53"
+ "11/19/2018 9:53:23"
+ "11/19/2018 09:53:23"
+ ))
+ )
+
+ ;; (error "%s() is not yet implemented" fname)
+ (with-current-buffer results-buf (erase-buffer))
+
+ (mapc (lambda (str)
+ (with-current-buffer results-buf
+ (setq time-in str)
+ (if (setq emacs-time (encode-human-time str))
+ (setq time-out (current-time-string emacs-time))
+ (setq time-out (format "(encode-human-time \"%s\") returned
NIL." str)))
+ (goto-char (point-max))
+ (insert (format "%s\t-->\t%s\t-->\t%s\n" time-in emacs-time
time-out))))
+ test-dates)
+ (pop-to-buffer results-buf)
+ (goto-char (point-min))
+ ))
+
;;
;; Commands
@@ -275,52 +766,6 @@ This function respects narrowing."
(let ((fname "remove-all-debuggers"))
(while (remove-debugger))))
-;;
-;; Hacks
-;;
-(defun create-general-cpio-mode-function ()
- "Create a general cpio-mode function set to the next cpio-newc function.
-Well, that's the intent, but, really, it's a hack."
- (interactive)
- (let ((fname "create-general-cpio-mode-function")
- (cpio-newc-function-name)
- (cpio-function-definition)
- (start -1)
- (end -1)
- (defun-end -1))
-
- (cond ((re-search-forward " \\(cpio-newc\\(-[-[:alnum:]]+\\)\\)"
(point-max))
- (setq cpio-newc-function-name (match-string-no-properties 1))
- (setq cpio-function-definition
- (format "(setq cpio%s-function %s)\n"
(match-string-no-properties 2)
- cpio-newc-function-name))
- (end-of-defun)
- (insert cpio-function-definition))
- (t nil))))
-
-(defun bbb-newc (header-string)
- "Return a crudely parsed newc header from the given HEADER-STRING."
- (let* ((fname "bbb-newc")
- (lengths (list 6 8 8 8 8 8 8 8 8 8 8 8 8 8 8))
- (stops (let ((i 0)
- (j 0)
- (n 0))
- (mapcar (lambda (l)
- (prog1
- n
- (setq n (+ n (nth i lengths)))
- (setq i (1+ i))))
- lengths)))
- (i 0)
- (j 1))
- (setq header-string (cg-strip-right "\0" header-string t))
- (mapcar (lambda (s)
- (prog1 (substring header-string (nth i stops) (nth j stops))
- (setq i j)
- (setq j (1+ j))))
- stops)))
-
-
(provide 'cpio-generic)
;;; cpio-generic.el ends here
diff --git a/cpio-modes-test.el b/cpio-modes-test.el
index 908c0c5..0fdb8a0 100644
--- a/cpio-modes-test.el
+++ b/cpio-modes-test.el
@@ -1,6 +1,6 @@
;; -*- coding: utf-8 -*-
;;; cpio-modes-test.el --- tests of the code in cpio-modes.el.
-; $Id: cpio-modes-test.el,v 1.3 2018/06/16 18:01:36 doug Exp $
+; $Id: cpio-modes-test.el,v 1.4 2018/06/26 15:57:50 doug Exp $
;; COPYRIGHT
;;
@@ -39,7 +39,8 @@
;; Dependencies
;;
-(require 'ert)
+(eval-when-compile
+ (require 'ert))
(load (concat default-directory "cpio-modes.el"))
diff --git a/cpio-modes.el b/cpio-modes.el
index 21b0ae1..8dde9f9 100644
--- a/cpio-modes.el
+++ b/cpio-modes.el
@@ -1,6 +1,6 @@
;; -*- coding: utf-8 -*-
;;; cpio-modes.el --- handle modes.
-; $Id: cpio-modes.el,v 1.8 2018/06/17 07:34:12 doug Exp $
+; $Id: cpio-modes.el,v 1.9 2018/06/26 15:57:50 doug Exp $
;; COPYRIGHT
;;
@@ -37,7 +37,8 @@
;;
;; Dependencies
;;
-(require 'cl)
+(eval-when-compile
+ (require 'cl))
;;;;;;;;;;;;;;;;
;; Things to make the byte compiler happy.
diff --git a/cpio-newc.el b/cpio-newc.el
index dcf0ff7..d687cb2 100644
--- a/cpio-newc.el
+++ b/cpio-newc.el
@@ -1,6 +1,6 @@
;; -*- coding: utf-8 -*-
;;; cpio-newc.el --- handle portable SVR4 cpio entry header formats.
-; $Id: cpio-newc.el,v 1.11 2018/06/17 07:34:12 doug Exp $
+; $Id: cpio-newc.el,v 1.14 2018/11/19 21:25:38 doug Exp $
;; COPYRIGHT
;;
@@ -723,6 +723,8 @@ CAVEAT: This respects neither narrowing nor the point."
(goto-char contents-end))
(t t)))
(nreverse catalog)))
+ ;; catalog))
+
(defun cpio-newc-start-of-trailer ()
"Return the character position of the (ostensible) start of the trailer
@@ -755,14 +757,13 @@ once the TRAILER is written and padded."
(base-len (length base-trailer))
(len))
;; ...and insert the new trailer...
- (setq buffer-read-only nil)
- (insert base-trailer)
- (goto-char (point-max))
- ;; ...with padding.
- (setq len (cg-round-up (1- (point)) *cpio-newc-blocksize*))
- (setq len (1+ (- len (point))))
- (insert (make-string len ?\0))
- (setq buffer-read-only t)))
+ (with-writable-buffer
+ (insert base-trailer)
+ (goto-char (point-max))
+ ;; ...with padding.
+ (setq len (cg-round-up (1- (point)) *cpio-newc-blocksize*))
+ (setq len (1+ (- len (point))))
+ (insert (make-string len ?\0)))))
(defun cpio-newc-delete-trailer ()
"Delete the trailer in the current cpio newc archive."
@@ -781,9 +782,8 @@ once the TRAILER is written and padded."
(skip-chars-forward "\0")))
*cpio-catalog*)
;; Next, delete what's left...
- (setq buffer-read-only nil)
- (delete-region (point) (point-max))
- (setq buffer-read-only t)))
+ (with-writable-buffer
+ (delete-region (point) (point-max)))))
(defun cpio-newc-make-chksum-for-file (filename)
"Return the checksum for FILENAME."
@@ -797,7 +797,8 @@ once the TRAILER is written and padded."
;; Test and other development assistance.
;;
-(require 'cl) ;For (mapcar*)
+(eval-when-compile
+ (require 'cl)) ;For (mapcar*)
(defun cpio-newc-present-header (header-string)
"Parse the HEADER-STRING and present its fields nicely.
That is show their names and octal and decimal values."
diff --git a/cpio-odc.el b/cpio-odc.el
index 05ccc27..b294b5a 100644
--- a/cpio-odc.el
+++ b/cpio-odc.el
@@ -1,6 +1,6 @@
;; -*- coding: utf-8 -*-
;;; cpio-odc.el --- handle old portable cpio entry header format
-; $Id: cpio-odc.el,v 1.9 2018/06/17 07:34:12 doug Exp $
+; $Id: cpio-odc.el,v 1.10 2018/06/26 14:19:23 doug Exp $
;; COPYRIGHT
;;
@@ -661,14 +661,13 @@ once the TRAILER is written and padded."
(base-len (length base-trailer))
(len))
;; ...and insert the new trailer...
- (setq buffer-read-only nil)
- (insert base-trailer)
- (goto-char (point-max))
- ;; ...with padding.
- (setq len (cg-round-up (1- (point)) *cpio-odc-blocksize*))
- (setq len (1+ (- len (point))))
- (insert (make-string len ?\0))
- (setq buffer-read-only t)))
+ (with-writable-buffer
+ (insert base-trailer)
+ (goto-char (point-max))
+ ;; ...with padding.
+ (setq len (cg-round-up (1- (point)) *cpio-odc-blocksize*))
+ (setq len (1+ (- len (point))))
+ (insert (make-string len ?\0)))))
(defun cpio-odc-delete-trailer ()
"Delete the trailer in the current cpio odc archive."
@@ -687,9 +686,8 @@ once the TRAILER is written and padded."
(skip-chars-forward "\0")))
*cpio-catalog*)
;; Next, delete what's left...
- (setq buffer-read-only nil)
- (delete-region (point) (point-max))
- (setq buffer-read-only t)))
+ (with-writable-buffer
+ (delete-region (point) (point-max)))))
;;
diff --git a/cpio.el b/cpio.el
index c209ea5..5c343a0 100644
--- a/cpio.el
+++ b/cpio.el
@@ -1,6 +1,6 @@
;; -*- coding: utf-8 -*-
;;; cpio.el --- cpio-mode for emacs
-; $Id: cpio.el,v 1.13 2018/06/17 07:34:12 doug Exp $
+; $Id: cpio.el,v 1.16 2018/11/19 21:25:38 doug Exp $
;; COPYRIGHT 2015, 2017, 2018 Douglas Lewan, address@hidden
@@ -60,8 +60,11 @@
;; Early development was done under emacs 24.2
;; on the Fedora 18 distribution of 64 bit GNU/Linux.
;;
-;; Current development is happening under emacs 24.5
-;; on Linux Mint, Linux kernel 4.4.0.
+;; Later development happened under emacs 24.5
+;; on GNU/Linux Mint, Linux kernel 4.4.0.
+;;
+;; Current development is happening on emacs 24.5
+;; on GNU/Linux Trisquel, Linux Kernel 4.4.0.
;;
;; RETURN CODE:
;;
@@ -223,51 +226,12 @@
;; Dependencies
;;
-;;;;;;;;;;;;;;;;
-;; Things to make the byte compiler happy.
-(defvar *cpio-catalog-entry-attrs-idx*)
-(defvar *cpio-catalog-entry-contents-start-idx*)
-(defvar *cpio-catalog-entry-header-start-idx*)
-(defvar *cpio-catalog-entry-length*)
-(defvar *cpio-catalog-entry-modified-flag-idx*)
-(defvar *cpio-chksum-parsed-idx*)
-(defvar *cpio-crc-header-re*)
-(defvar *cpio-crc-padding-char*)
-(defvar *cpio-crc-padding-modulus*)
-(defvar *cpio-crc-padding-str*)
-(defvar *cpio-dev-maj-parsed-idx*)
-(defvar *cpio-dev-min-parsed-idx*)
-(defvar *cpio-entry-size-parsed-idx*)
-(defvar *cpio-gid-parsed-idx*)
-(defvar *cpio-ino-parsed-idx*)
-(defvar *cpio-mode-parsed-idx*)
-(defvar *cpio-mtime-parsed-idx*)
-(defvar *cpio-name-parsed-idx*)
-(defvar *cpio-namesize-parsed-idx*)
-(defvar *cpio-nlink-parsed-idx*)
-(defvar *cpio-odc-header-re*)
-(defvar *cpio-odc-padding-char*)
-(defvar *cpio-odc-padding-modulus*)
-(defvar *cpio-odc-padding-str*)
-(defvar *cpio-parsed-header-length*)
-(defvar *cpio-rdev-maj-parsed-idx*)
-(defvar *cpio-rdev-min-parsed-idx*)
-(defvar *cpio-uid-parsed-idx*)
-(defvar cpio-entry-name)
-(defvar cpio-try-names)
-(declare-function cpio-contents-buffer-name "cpio-dired.el")
-(declare-function cpio-entry-contents-mode "cpio-entry-contents-mode.el")
-(declare-function cpio-dired-move-to-first-entry "cpio-dired.el")
-(declare-function cpio-dired-next-line "cpio-dired.el")
-(declare-function cpio-dired-buffer-name "cpio-dired.el")
-(declare-function cpio-present-ala-dired "cpio-dired.el")
-;; EO things for the byte compiler.
-;;;;;;;;;;;;;;;;
;; During development I need access to local files.
(setq load-path (add-to-list 'load-path (substring default-directory -1)))
-(require 'dired)
+(eval-when-compile
+ (require 'dired))
;; (require 'cpio-generic)
(if (file-exists-p (concat default-directory "cpio-generic.elc"))
@@ -290,6 +254,12 @@
(load (concat default-directory "cpio-bin.elc"))
(load (concat default-directory "cpio-bin.el")))
(message "Loaded cpion")
+;; newc has to precede crc.
+;; (require 'cpio-newc)
+(if (file-exists-p (concat default-directory "cpio-newc.elc"))
+ (load (concat default-directory "cpio-newc.elc"))
+ (load (concat default-directory "cpio-newc.el")))
+(message "Loaded cpio-newc.")
;; (require 'cpio-crc)
(if (file-exists-p (concat default-directory "cpio-crc.elc"))
(load (concat default-directory "cpio-crc.elc"))
@@ -305,11 +275,6 @@
(load (concat default-directory "cpio-hpodc.elc"))
(load (concat default-directory "cpio-hpodc.el")))
(message "Loaded cpio-hpodl")
-;; (require 'cpio-newc)
-(if (file-exists-p (concat default-directory "cpio-newc.elc"))
- (load (concat default-directory "cpio-newc.elc"))
- (load (concat default-directory "cpio-newc.el")))
-(message "Loaded cpio-newc.")
;; (require 'cpio-odc)
(if (file-exists-p (concat default-directory "cpio-odc.elc"))
(load (concat default-directory "cpio-odc.elc"))
@@ -334,6 +299,51 @@
(load (concat default-directory "cpio-entry-contents-mode.el")))
(message "Loaded cpio-entry-contents-mode.")
+;;;;;;;;;;;;;;;;
+;; Things to make the byte compiler happy.
+(defvar *cpio-catalog-entry-attrs-idx*)
+(defvar *cpio-catalog-entry-contents-start-idx*)
+(defvar *cpio-catalog-entry-header-start-idx*)
+(defvar *cpio-catalog-entry-length*)
+(defvar *cpio-catalog-entry-modified-flag-idx*)
+(defvar *cpio-chksum-parsed-idx*)
+(defvar *cpio-crc-header-re*)
+(defvar *cpio-crc-padding-char*)
+(defvar *cpio-crc-padding-modulus*)
+(defvar *cpio-crc-padding-str*)
+(defvar *cpio-dev-maj-parsed-idx*)
+(defvar *cpio-dev-min-parsed-idx*)
+(defvar *cpio-entry-size-parsed-idx*)
+(defvar *cpio-gid-parsed-idx*)
+(defvar *cpio-ino-parsed-idx*)
+(defvar *cpio-mode-parsed-idx*)
+(defvar *cpio-mtime-parsed-idx*)
+(defvar *cpio-name-parsed-idx*)
+(defvar *cpio-namesize-parsed-idx*)
+(defvar *cpio-newc-header-re*)
+(defvar *cpio-newc-padding-char*)
+(defvar *cpio-newc-padding-modulus*)
+(defvar *cpio-newc-padding-str*)
+(defvar *cpio-nlink-parsed-idx*)
+(defvar *cpio-odc-header-re*)
+(defvar *cpio-odc-padding-char*)
+(defvar *cpio-odc-padding-modulus*)
+(defvar *cpio-odc-padding-str*)
+(defvar *cpio-parsed-header-length*)
+(defvar *cpio-rdev-maj-parsed-idx*)
+(defvar *cpio-rdev-min-parsed-idx*)
+(defvar *cpio-uid-parsed-idx*)
+(defvar cpio-entry-name)
+(defvar cpio-try-names)
+(declare-function cpio-contents-buffer-name "cpio-dired.el")
+(declare-function cpio-dired-buffer-name "cpio-dired.el")
+(declare-function cpio-dired-move-to-first-entry "cpio-dired.el")
+(declare-function cpio-dired-next-line "cpio-dired.el")
+(declare-function cpio-entry-contents-mode "cpio-entry-contents-mode.el")
+(declare-function cpio-present-ala-dired "cpio-dired.el")
+;; EO things for the byte compiler.
+;;;;;;;;;;;;;;;;
+
;;
;; Vars
@@ -804,7 +814,7 @@ CAVEAT: See `cpio-magic'."
(if *cab-parent*
(with-current-buffer *cab-parent*
(cpio-entry-attrs entry-name))
- (aref (cpio-entry entry-name) 0))))
+ (aref (cpio-entry entry-name) *cpio-catalog-entry-attrs-idx*))))
(defun cpio-entry-header-start (entry)
"Return the start of the entry specified in ENTRY."
@@ -816,6 +826,17 @@ CAVEAT: See `cpio-magic'."
(let ((fname "cpio-entry-start"))
(aref entry *cpio-catalog-entry-contents-start-idx*)))
+(defun cpio-entry-contents-end (entry)
+ "Return the end of the contents of the entry specified in ENTRY."
+ (let* ((fname "cpio-entry-contents-end")
+ (attrs (aref entry *cpio-catalog-entry-attrs-idx*))
+ (entry-name (cpio-entry-name attrs))
+ )
+ ;; (error "%s() is not yet implemented" fname)
+ (+ (cpio-entry-contents-start entry)
+ (cpio-entry-size attrs))
+ ))
+
(defun cpio-set-header-start (entry where)
"Set the header start marker in ENTRY to the location WHERE."
(let ((fname "cpio-set-header-start")
@@ -848,17 +869,19 @@ WHERE can be an integer or marker."
(*cab-parent*
(with-current-buffer *cab-parent*
(cpio-contents entry-name)))
- (t
+ ((eq major-mode 'cpio-mode)
(let* ((entry-attrs (cpio-entry-attrs entry-name))
(contents-start (cpio-contents-start entry-name))
(contents-size (cpio-entry-size entry-attrs))
- (contents-end (+ contents-start contents-size -1))
+ (contents-end (+ contents-start contents-size))
(result))
(if (null entry-attrs)
(error "%s(): Could not get entry attributes for [[%s]]."
fname entry-name))
(goto-char contents-start)
(forward-char contents-size)
- (setq result (buffer-substring-no-properties contents-start
(point))))))))
+ (setq result (buffer-substring-no-properties contents-start
contents-end))))
+ (t
+ (error "%s(): Could not find the archive buffer." fname)))))
(defun cpio-catalog ()
"Return the catalog relevant to the current buffer."
@@ -1139,7 +1162,7 @@ with one with the correct size fot its contents."
(funcall cpio-delete-trailer-func))
(funcall cpio-delete-trailer-func))))
-(defun cpio-delete-archive-entry (entry)
+0(defun cpio-delete-archive-entry (entry)
"Delete the entry in the cpio archive specified by ENTRY.
ENTRY is a catalog entry."
(let ((fname "cpio-delete-archive-entry"))
@@ -1153,9 +1176,8 @@ ENTRY is a catalog entry."
(entry-end (1+ (cg-round-up (+ (1- contents-start)
(cpio-entry-size attrs))
*cpio-padding-modulus*))))
- (setq buffer-read-only nil)
- (delete-region entry-start entry-end)
- (setq buffer-read-only t)))))
+ (with-writable-buffer
+ (delete-region entry-start entry-end))))))
(defun cpio-insert-padded-header (header-string)
"Insert an appropriately padded version of HEADER-STRING.
@@ -1165,9 +1187,8 @@ CONTRACT: You're at the point of insertion."
(if *cab-parent*
(with-current-buffer *cab-parent*
(cpio-insert-padded-header header-string))
- (setq buffer-read-only nil)
- (insert (cpio-padded header-string *cpio-padding-modulus*
*cpio-padding-char*))
- (setq buffer-read-only t))))
+ (with-writable-buffer
+ (insert (cpio-padded header-string *cpio-padding-modulus*
*cpio-padding-char*))))))
(defun cpio-insert-padded-contents (contents) ;HEREHERE Generic
"Insert an appropriately padded version of CONTENTS into the archive buffer.
@@ -1176,11 +1197,9 @@ CONTRACT: Point is at the point of insertion."
(if *cab-parent*
(with-current-buffer *cab-parent*
(cpio-insert-padded-contents contents))
- (setq buffer-read-only nil)
- ;; (cpio-set-contents-start (point))
- (insert (cpio-padded contents *cpio-padding-modulus*
*cpio-padding-char*))
- (setq buffer-read-only t))))
-
+ (with-writable-buffer
+ ;; (cpio-set-contents-start (point))
+ (insert (cpio-padded contents *cpio-padding-modulus*
*cpio-padding-char*))))))
(defun cpio-sort-catalog ()
"Return a copy of the catalog sorted by entry name (car cpio-catalog-entry)."
@@ -1253,23 +1272,59 @@ a UNIX/GNU/Linux time as an integer."
(defun cpio-find-entry (entry-name)
"Find the given ENTRY-NAME and return the buffer holding its contents."
(let ((fname "cpio-find-entry")
- (target-buffer))
- (if (null (setq target-buffer (get-buffer-create
(cpio-contents-buffer-name entry-name))))
- (error "%s(): Could not get a buffer for entry [[%s]]." fname
entry-name))
- (cab-register target-buffer *cab-parent*)
+ (target-buffer (get-file-buffer entry-name))
+ (just-created nil)
+ (local-parent *cab-parent*)
+ )
+;; (if (null (setq target-buffer (get-buffer-create
(cpio-contents-buffer-name entry-name))))
+;; (error "%s(): Could not get a buffer for entry [[%s]]." fname
entry-name))
+ (unless target-buffer
+ (setq just-created t)
+ (with-current-buffer (setq target-buffer (get-buffer-create entry-name))
+ (cab-register target-buffer local-parent)
+ (setq buffer-file-name entry-name)
+ (setq buffer-file-truename (abbreviate-file-name
+ (concat (cpio-archive-name) "/"
+ buffer-file-name)))
+ (set (make-local-variable 'cpio-entry-name) entry-name))
+ )
(with-current-buffer target-buffer
- (cond ((or (/= 0 (1- (point)))
- (= 0 (length (buffer-string))))
- (erase-buffer) ;This should not be necessary.
- (insert (cpio-contents entry-name))
- ;; (setq buffer-read-only t)
+ (cond ((and just-created
+ (= 0 (buffer-size)))
+ ;; I can't seem to get coding right.
+ ;; (cpio-set-auto-coding (setq contents (cpio-contents
entry-name)))
+ (with-writable-buffer
+ (insert (cpio-contents entry-name)))
(goto-char (point-min)))
(t t))
- (make-local-variable 'cpio-entry-name)
- (setq cpio-entry-name entry-name)
- (set-buffer-modified-p nil)
- (cpio-entry-contents-mode))
- (pop-to-buffer target-buffer)))
+ (set-buffer-modified-p nil))
+ target-buffer))
+
+(defun cpio-archive-name ()
+ "Return [the full path to] the cpio archive associated with the current
buffer."
+ (let ((fname "cpio-archive-name")
+ )
+ ;; (error "%s() is not yet implemented" fname)
+ (unless (or *cab-parent*
+ (eq major-mode 'cpio-mode))
+ (error "%s(): You're not in a cpio-archive affiliated buffer." fname))
+
+ (if *cab-parent*
+ (buffer-file-name *cab-parent*)
+ (buffer-file-name))))
+
+(defun cpio-contents-buffer-name (name)
+ "Return the name of the buffer that would/does hold the contents of entry
NAME.
+CAVEAT: Yes, there's a possibility of a collision here.
+However, that would mean that you're editing
+more than one archive, each containing entries of the same name
+more than one of whose contents you are currently editing.
+Run more than one instance of emacs to avoid such collisions."
+ (let ((fname "cpio-contents-buffer-name"))
+ ;; (format "%s (in cpio archive %s)" name (file-name-nondirectory
(buffer-file-name *cab-parent*)))))
+ name))
+;; (expand-file-name
+;; (concat name "!"))))
(defun cpio-create-entry-attrs (filename)
"Create an entry attribute structure based on the given FILENAME."
@@ -1437,6 +1492,160 @@ Signal an error if it isn't."
;; The modified flag may not be set yet, so ignore it.
))
+;; A few functions for a failed attempt at supporting different encodings.
+
+;; Modified from (set-auto-coding) ∈ mule.el.
+(defun cpio-set-auto-coding (contents)
+ "Return coding system for the current buffer.
+See `cpio-find-auto-coding' for how the coding system is found.
+Return nil if an invalid coding system is found.
+
+The variable `set-auto-coding-function' (which see) is set to this
+function by default."
+ (let ((found (cpio-find-auto-coding cpio-entry-name contents)))
+ (if (and found (coding-system-p (car found)))
+ (car found))))
+
+;; Modified from (find-auto-coding) ∈ mule.el.
+(defun cpio-find-auto-coding (entry-name contents)
+ "Find a coding system for an archive entry ENTRY-NAME.
+
+The function checks ENTRY-NAME against the variable `auto-coding-alist'.
+If ENTRY-NAME doesn't match any entries in the variable, it checks the
+contents of the current buffer following point against
+`auto-coding-regexp-alist'. If no match is found, it checks for a
+`coding:' tag in the first one or two lines following point. If no
+`coding:' tag is found, it checks any local variables list in the last
+3K bytes out of the SIZE bytes. Finally, if none of these methods
+succeed, it checks to see if any function in `auto-coding-functions'
+gives a match.
+
+If a coding system is specified, the return value is a cons
+\(CODING . SOURCE), where CODING is the specified coding system and
+SOURCE is a symbol `auto-coding-alist', `auto-coding-regexp-alist',
+`:coding', or `auto-coding-functions' indicating by what CODING is
+specified. Note that the validity of CODING is not checked;
+it's the caller's responsibility to check it.
+
+If nothing is specified, the return value is nil."
+ (error "%s() is not yet implemented" "cpio-find-auto-coding")
+ (or (let ((coding-system (auto-coding-alist-lookup entry-name)))
+ (if coding-system
+ (cons coding-system 'auto-coding-alist)))
+ ;; Try using `auto-coding-regexp-alist'.
+ (let ((coding-system (cpio-auto-coding-regexp-alist-lookup contents)))
+ (if coding-system
+ (cons coding-system 'auto-coding-regexp-alist)))
+ (let* ((case-fold-search t)
+ (size (length contents))
+ (head-start 0)
+ (head-end (+ head-start (min size 1024)))
+ (head (substring contents head-start head-end))
+ coding-system head-found tail-found char-trans)
+ ;; Try a short cut by searching for the string "coding:"
+ ;; and for "unibyte:".
+ (setq head-found (or (string-match "coding:" contents)
+ (string-match "unibyte:" contents)
+ (string-match "enable-character-translation:"
contents)))
+
+ ;; At first check the head.
+ (when head-found
+ ;; (goto-char head-start)
+ ;; (setq head-end (set-auto-mode-1))
+ ;; (setq head-start (point))
+ (when (and head-end (< head-found head-end))
+ (goto-char head-start)
+ (when (and set-auto-coding-for-load
+ (string-match
+ "\\(.*;\\)?[ \t]*unibyte:[ \t]*\\([^ ;]+\\)"
+ contents))
+ (display-warning 'mule
+ (format "\"unibyte: t\" (in %s) is obsolete; \
+use \"coding: 'raw-text\" instead."
+ (file-relative-name entry-name))
+ :warning)
+ (setq coding-system 'raw-text))
+ (when (and (not coding-system)
+ (string-match
+ "\\(.*;\\)?[ \t]*coding:[ \t]*\\([^ ;]+\\)"
+ contents)
+ (setq coding-system (intern (match-string 2 contents))))
+ (when (string-match
+ "\\(.*;\\)?[ \t]*enable-character-translation:[ \t]*\\([^
;]+\\)"
+ contents)
+ (setq char-trans (match-string 2 contents)))))
+
+ (if coding-system
+ ;; If the coding-system name ends with "!", remove it and
+ ;; set char-trans to "nil".
+ (let ((name (symbol-name coding-system)))
+ (if (= (aref name (1- (length name))) ?!)
+ (setq coding-system (intern (substring name 0 -1))
+ char-trans "nil"))))
+ (when (and char-trans
+ (not (setq char-trans (intern char-trans))))
+ (make-local-variable 'enable-character-translation)
+ (setq enable-character-translation nil))
+ (if coding-system
+ (cons coding-system :coding))))
+ ;; Finally, try all the `auto-coding-functions'.
+ (let ((funcs auto-coding-functions)
+ (coding-system nil))
+ (while (and funcs (not coding-system))
+ (setq coding-system (ignore-errors
+ (save-excursion
+ (goto-char (point-min))
+ (funcall (pop funcs) size)))))
+ (if coding-system
+ (cons coding-system 'auto-coding-functions)))))
+
+(defun cpio-auto-coding-regexp-alist-lookup (contents)
+ "Lookup `auto-coding-regexp-alist' for CONTENTS.
+The value is a coding system is specified for the CONTENTS
+or nil."
+ (let ((fname "cpio-auto-coding-regexp-alist-lookup")
+ (alist auto-coding-regexp-alist)
+ (coding-system))
+ (error "%s() is not yet implemented" fname)
+ (while (and alist (not coding-system))
+ (let ((regexp (car (car alist))))
+ (if enable-multibyte-characters
+ (setq regexp (string-to-multibyte regexp)))
+ (if (string-match regexp contents)
+ (setq coding-system (cdr (car alist)))
+ (setq alist (cdr alist)))))
+ coding-system))
+
+(defun cpio-set-coding-system (entry-name)
+ "Set the coding system for the current buffer based on the contents of the
entry-ENTRY-NAME."
+ (let ((fname "cpio-set-coding-system")
+ )
+ (error "%s() is not yet implemented" fname)
+ (if *cab-parent*
+ (with-current-buffer *cab-parent*
+ (cpio-set-coding-system entry-name))
+ ;; (setq last-coding-system-used
+ ;; (car (find-coding-systems-region (cpio-contents-start
entry-name)
+ ;; (cpio-contents-end
entry-name))))
+ (set-buffer-file-coding-system last-coding-system-used 'force 'nomodify))
+ ))
+
+(defun cpio-not-modified ()
+ "Mark the current cpio-dired-style and archive buffersfas unmodified."
+ (let ((fname "cpio-not-modified")
+ )
+ ;; (error "%s() is not yet implemented" fname)
+ (message "%s(): called in %s." fname (current-buffer))
+ (cond (*cab-parent*
+ (not-modified)
+ (with-current-buffer *cab-parent* (not-modified)))
+ (t
+ (not-modified)
+ (mapc (lambda (b)
+ (if (buffer-live-p b)
+ (with-current-buffer b
+ (not-modified))))
+ *cab-subordinates*)))))
;;
;; Commands
diff --git a/test-generic.el b/test-generic.el
new file mode 100644
index 0000000..e350b2b
--- /dev/null
+++ b/test-generic.el
@@ -0,0 +1,654 @@
+; $Id: test-generic.el,v 1.2 2018/11/19 21:25:38 doug Exp $
+
+
+;;
+;; Vars
+;;
+
+(defvar *cdmt-header-re* ()
+ "Variable to hold the format-specific RE to match a header.")
+;; These indexes don't seem to be used.
+;; (defvar *cpio-magic-re-idx* ())
+;; (defvar *cpio-mode-re-idx* ())
+;; (defvar *cpio-uid-re-idx* ())
+;; (defvar *cpio-gid-re-idx* ())
+;; (defvar *cpio-nlink-re-idx* ())
+;; (defvar *cpio-filesize-re-idx* ())
+;; (defvar *cpio-namesize-re-idx* ())
+;; (defvar *cpio-chksum-re-idx* ())
+;; (defvar *cpio-filename-re-idx* ())
+
+(defvar *cdmt-archive-format* ())
+
+
+(defun cdmt-filter-archive-contents (archive-contents)
+ "Make the given ARCHIVE-CONTENTS fully printable and readable."
+ (let ((fname "cdmt-filter-archive-contents")
+ (char-map (list (cons "\0" "\\0"))))
+ (setq archive-contents (cdmt-reformat-headers archive-contents))
+ (mapc (lambda (cm)
+ (let ((from (car cm))
+ (to (cdr cm)))
+ (setq archive-contents (cdmt-global-sub from to
archive-contents))))
+ char-map)
+ archive-contents))
+
+(defun cdmt-reset (&optional make large)
+ "Reset the current cpio-dired environment.
+If MAKE is non-nil, then run 'make FORMAT' as part of the reset."
+ (let ((fname "cdmt-reset")
+ (archive-name)
+ (archive-names (list *cdmt-small-archive*
+ *cdmt-large-archive*)))
+ (cd run-dir)
+
+ (mapc (lambda (b)
+ (if (and (buffer-live-p b)
+ (with-current-buffer b
+ buffer-file-name)
+ (with-current-buffer b
+ (or (eq major-mode 'cpio-mode)
+ (eq major-mode 'cpio-dired-mode)
+ (member 'cpio-entry-contents-mode
(current-minor-modes)))))
+ (with-current-buffer b
+ (cpio-not-modified))))
+ (buffer-list))
+
+ (mapc (lambda (b)
+ (if (and (buffer-live-p b)
+ (with-current-buffer b
+ buffer-file-name)
+ (with-current-buffer b
+ (or (eq major-mode 'cpio-mode)
+ (eq major-mode 'cpio-dired-mode)
+ (member 'cpio-entry-contents-mode
(current-minor-modes)))))
+ (with-current-buffer b
+ (kill-buffer b))))
+ (buffer-list))
+
+
+ (cd run-dir)
+
+ (if make
+ (shell-command (format "cd test_data/alphabet ; make clean %s"
*cdmt-archive-format*) nil nil))
+
+ (setq archive-name (if large
+ *cdmt-large-archive*
+ *cdmt-small-archive*))
+
+ (delete-other-windows)
+ (with-current-buffer (setq cpio-archive-buffer (find-file-noselect
archive-name))
+ (if (string-match "/test_data/.+/test_data/" (buffer-file-name))
+ (error "Bogus archive!"))
+ (cpio-mode))
+ (setq cpio-dired-buffer (switch-to-buffer (cpio-dired-buffer-name
archive-name)))))
+
+(defun cdmt-reformat-headers (archive-contents)
+ "Reformat the cpio entry headers in the given hex ARCHIVE-CONTENTS
+so that they are human readable.
+The hex archive formats are newc and crc.
+CAVEATS: \(1\) If ARCHIVE-CONTENTS contains entries that contain entry headers,
+ then those will also be reformatted.
+ \(2\) The entry names are taken to be a sequence of printable
characters.
+ So, if NULLs have been converted to printable characters,
+ then the entry names will be incorrect."
+ (let ((fname "cdmt-reformat-headers"))
+ (while (string-match *cdmt-header-re* archive-contents)
+ (setq archive-contents (concat (substring archive-contents 0
(match-beginning 0))
+ (concat (match-string-no-properties
*cpio-magic-re-idx* archive-contents) "\t(( magic ))\n")
+ (concat "DEADBEEF"
"\t(( ino ))\n")
+ (concat (match-string-no-properties
*cpio-mode-re-idx* archive-contents) "\t(( mode ))\n")
+ (concat (match-string-no-properties
*cpio-uid-re-idx* archive-contents) "\t(( uid ))\n")
+ (concat (match-string-no-properties
*cpio-gid-re-idx* archive-contents) "\t(( gid ))\n")
+ (concat (match-string-no-properties
*cpio-nlink-re-idx* archive-contents) "\t(( nlink ))\n")
+ (concat "DEADBEEF"
"\t(( mtime ))\n")
+ (concat (match-string-no-properties
*cpio-filesize-re-idx* archive-contents) "\t(( filesize ))\n")
+ (concat "DEADBEEF"
"\t(( dev maj ))\n")
+ (concat "DEADBEEF"
"\t(( dev min ))\n")
+ (concat "DEADBEEF"
"\t(( rdev maj ))\n")
+ (concat "DEADBEEF"
"\t(( rdev min ))\n")
+ (concat (match-string-no-properties
*cpio-namesize-re-idx* archive-contents) "\t(( namesize ))\n")
+ (concat (match-string-no-properties
*cpio-chksum-re-idx* archive-contents) "\t(( chksum ))\n")
+ (concat (match-string-no-properties
*cpio-filename-re-idx* archive-contents) "\t(( filename ))\n")
+ (substring archive-contents (match-end
0)))))
+ (concat archive-contents "\n")))
+
+;; The following few functions can be refactored with a FORMAT arg.
+;; cdmt-unfinished-command
+;; cdmt-finished-command
+;; cdmt-finished-command
+;; cdmt-all-finished-commands
+
+;;
+;; The contents of these tests were generated
+;; from the dired-mode-map definition
+;; (where commands are tagged as done).
+;; A few keyboard macros modified those results.
+;; The following commands were used to create the skeletons below
+
+(defun cdmt-unfinished-command () ;It doesn't look like FORMAT is needed.
+ "Create a stub test for the next unfinished command."
+ (interactive)
+ (let ((fname "cdmt-unfinished-command")
+ (test-declaration-string "cdmt-")
+ (defined-command-regexp ".+) ;✓$")
+ (command-name)
+ (where))
+ (cond ((catch 'found-it
+ (while (search-forward test-declaration-string (point-max) t)
+ (setq where (match-end 0))
+ (unless (looking-at-p defined-command-regexp)
+ (setq command-name (buffer-substring-no-properties where (1-
(line-end-position))))
+ (throw 'found-it t)))
+ nil)
+ (goto-char (1- (line-end-position)))
+ (delete-char 1)
+ (insert " ()\n")
+ (insert (format " \"Test %s.\n" command-name))
+ (insert (format "%s is not yet implemented -- expect an error.\"\n"
command-name))
+ (insert (format " (should-error (%s)\n" command-name))
+ (insert " :type 'error))\n")
+ t)
+ (t nil))))
+
+(defun cdmt-all-unfinished-commands () ; FORMAT isn't needed.
+ "Write stub tests for all unfinished commands following point."
+ (interactive)
+ (let ((fname "cdmt-all-unfinished-commands"))
+ (while (cdmt-unfinished-command))))
+
+(defun cdmt-finished-command (archive-format)
+ "Write a stub test for a finished command for the given FORMAT."
+ (interactive)
+ (let ((fname "cdmt-finished-command")
+ (finished-command-regexp ") ;✓$")
+ (command-name)
+ (where))
+ (cond ((re-search-forward finished-command-regexp (point-max) t)
+ (beginning-of-line)
+ (re-search-forward "cdmt-" (line-end-position))
+ (setq where (match-end 0))
+ (end-of-line)
+ (backward-char 4)
+ (setq command-name (buffer-substring-no-properties where (point)))
+
+ (insert " (")
+ (end-of-line)
+ (insert "\n")
+ (insert (format " \"Test the function M-x cpio-%s-%s.\"\n" format
command-name))
+ (insert " (shell-command (format \"cd test_data/alphabet ;
make %s\" nil nil)\n" archive-format)
+ (insert (format " (let ((test-name \"cdmt-%s\")\n" command-name))
+ (insert " (cpio-archive-buffer)\n")
+ (insert " (cpio-archive-buffer-contents)\n")
+ (insert " (cpio-dired-buffer)\n")
+ (insert " (cpio-dired-buffer-contents)\n")
+ (insert " )\n")
+ (insert " (cdmt-reset)\n")
+ (insert "\n")
+ (insert (format " (%s)\n" command-name))
+ (insert "PREPARATION\n")
+ (insert "\n")
+ (insert " (setq cpio-archive-buffer-contents\n")
+ (insert " (cdmt-filter-archive-contents\n")
+ (insert " (with-current-buffer
cpio-archive-buffer\n")
+ (insert " (buffer-substring-no-properties
(point-min) (point-max))))\n")
+ (insert " (should (string-match \"\"
cpio-archive-buffer-contents))\n")
+ (insert " (setq cpio-dired-buffer-contents\n")
+ (insert " (with-current-buffer cpio-dired-buffer\n")
+ (insert " (buffer-substring-no-properties
(point-min) (point-max))))\n")
+ (insert " (should (string-equal
cpio-dired-buffer-contents \"\"))\n")
+ (insert "\n")
+ (insert " (kill-buffer cpio-dired-buffer) ; This should
kill the archive buffer too.\n")
+ (insert " ))\n")
+ t)
+ (t nil))))
+
+(defun cdmt-all-finished-commands (archive-format)
+ "Build stub tests for all the finished commands."
+ (interactive)
+ (let ((fname "cdmt-all-finished-commands"))
+ (while (cdmt-finished-command archive-format))))
+
+
+;; The following functions are already generic (Check that!):
+;; cdmt-sweep
+;; cdmt-do-cpio-id
+;; cdmt-sweep-ids
+;; cdmt-sweep-times
+;; cm-setup
+;; cdmt-sweep-catalog -- will require picking the right version.
+;; cdmt-tidy-up-catalog -- Also look for (pp ...).
+;; cdmt-test-save -- will require picking the right version.
+
+(defun cdmt-tidy-up-catalog ()
+ "Remove [ and ] from the pretty printed catalog and replace them with » and
« respectively.
+Return the new string."
+ (let ((fname "cdmt-bin-tidy-up-catalog")
+ (catalog-string (pp (cpio-catalog)))
+ (substitutions (list (cons "\\[" "»")
+ (cons "\\]" "«")
+ (cons "\\\"" "¨"))))
+ ;; (error "%s() is not yet implemented" fname)
+ (mapc (lambda (si)
+ (let ((match (car si))
+ (replacement (cdr si)))
+ (while (string-match match catalog-string)
+ (setq catalog-string (replace-match replacement nil t
catalog-string)))))
+ substitutions)
+ catalog-string
+ ))
+
+(defun cdmt-test-save (format &optional large)
+ "A generic test to run at the end of every test
+to check that the saved archive seems sane.
+FORMAT is a string denoting the cpio-format of the archive.
+The default archive is the small archive.
+However, if LARGE is not NIL, then save the large archive."
+ (cd run-dir)
+ (let* ((fname "cdmt-test-save")
+ (alphabet-dir (concat default-directory "test_data/alphabet"))
+ (test-buffer-dir (concat alphabet-dir "/asdfasdf"))
+ (test-buffer)
+ (directory default-directory)
+ (dired-buffer (current-buffer))
+ (archive (if large (format "../alphabet.%s.cpio" format)
+ (format "../alphabet_small.%s.cpio" format))))
+ (unless (eq major-mode 'cpio-dired-mode)
+ (error "%s(): You're not in a cpio-dired buffer." fname))
+
+ (if (file-exists-p test-buffer-dir)
+ (call-process "rm" nil nil nil "-rf" test-buffer-dir))
+ (if (file-exists-p test-buffer-dir)
+ (error "%s(): Removing %s failed." fname test-buffer-dir))
+ (with-current-buffer cpio-archive-buffer
+ (cpio-dired-save-archive))
+ (make-directory test-buffer-dir 'parents)
+
+ (cd test-buffer-dir)
+ (with-current-buffer (find-file-noselect test-buffer-dir)
+ (call-process "cpio" archive nil nil "-id")
+ (mapc (lambda (en)
+ ;; No, this isn't bullet proof or even correct.
+ ;; It's just a sanity check; it's certainly not complete.
+ (should (file-exists-p (car en))))
+ (with-current-buffer cpio-archive-buffer
+ (cpio-catalog))))
+ (cd directory)))
+
+(defun cdmt-global-sub (from-str to-str string)
+ "Globally substitute TO-STR for FROM-STR in STRING and return the new string.
+In principal, FROM-STR can be a regular expression."
+ (let ((fname "cdmt-global-sub"))
+ (while (string-match from-str string)
+ (setq string (replace-match to-str nil t string 0)))
+ string))
+
+;; Search for »hex« to carry this function through.
+(defun cdmt-sweep-hex ()
+ "Convert the hex fields to octal fields."
+ (interactive)
+ (let ((fname "cdmt-sweep-hex")
+ (value)
+ (replacement))
+ (save-excursion
+ (goto-char (point-min))
+ (while (re-search-forward "[[:xdigit:]]\\{8\\}" (point-max) t)
+ (setq value (string-to-number (match-string 0) 16))
+ (setq replacement (format "%06o" value))
+ (replace-match replacement)))))
+
+(defun compare-results ()
+ "Between the buffers »expected« and »actual« compare the results on the
current ilne."
+ (interactive)
+ (let ((fname "compare-results")
+ (expected-buf (get-buffer-create "expected"))
+ (expected-value)
+ (actual-buf (get-buffer-create "actual"))
+ (actual-value)
+ (line-no (1+ (count-lines (point-min) (point))))
+ )
+ ;; (error "%s() is not yet implemented" fname)
+ (cond ((eq (current-buffer) expected-buf)
+ (setq expected-value (buffer-substring (line-beginning-position)
(line-end-position)))
+ (set-buffer actual-buf)
+ (goto-line line-no)
+ (setq actual-value (buffer-substring (line-beginning-position)
(line-end-position))))
+ ((eq (current-buffer) actual-buf)
+ (setq actual-value (buffer-substring (line-beginning-position)
(line-end-position)))
+ (with-current-buffer expected-buf
+ (goto-line line-no)
+ (setq expected-value (buffer-substring (line-beginning-position)
(line-end-position)))))
+ (t
+ (error "%s(): You're not in either results buffer." fname)))
+ (while (string-match "\\\\\\\\" expected-value)
+ (setq expected-value (concat (substring expected-value 0
(match-beginning 0))
+ "\\"
+ (substring expected-value (match-end 0)))))
+ ;; N.B. You're now in actual-buf.
+ (cond ((string-match expected-value actual-value)
+ (message "Life is good.")
+ t)
+ (t
+ ;; Really let the user know about this failure.
+ (error "Mismatch at line %d." line-no)
+ ;; This is a failure. Return it.
+ nil))
+ (sit-for 1.0)
+ ))
+
+;;
+;; Hacks
+;;
+(defun create-general-cpio-mode-function ()
+ "Create a general cpio-mode function set to the next cpio-newc function.
+Well, that's the intent, but, really, it's a hack."
+ (interactive)
+ (let ((fname "create-general-cpio-mode-function")
+ (cpio-function-name)
+ (cpio-function-definition)
+ (start -1)
+ (end -1)
+ (defun-end -1))
+
+ (cond ((re-search-forward " \\(cpio-newc\\(-[-[:alnum:]]+\\)\\)"
(point-max))
+ (setq cpio-function-name (match-string-no-properties 1))
+ (setq cpio-function-definition
+ (format "(setq cpio%s-function %s)\n"
(match-string-no-properties 2)
+ cpio-function-name))
+ (end-of-defun)
+ (insert cpio-function-definition))
+ (t nil))))
+
+(defun bbb-newc (header-string)
+ "Return a crudely parsed newc header from the given HEADER-STRING."
+ (let* ((fname "bbb-newc")
+ (lengths (list 6 8 8 8 8 8 8 8 8 8 8 8 8 8 8))
+ (stops (let ((i 0)
+ (j 0)
+ (n 0))
+ (mapcar (lambda (l)
+ (prog1
+ n
+ (setq n (+ n (nth i lengths)))
+ (setq i (1+ i))))
+ lengths)))
+ (i 0)
+ (j 1))
+ (setq header-string (cg-strip-right "\0" header-string t))
+ (mapcar (lambda (s)
+ (prog1 (substring header-string (nth i stops) (nth j stops))
+ (setq i j)
+ (setq j (1+ j))))
+ stops)))
+
+(defun fix-next-writable ()
+ "Prepare the next (with-writable-buffer) form."
+ (interactive)
+ (let ((fname "aaa")
+ (start)
+ (end))
+ ;; (next-error 2)
+ (cond ((search-forward "buffer-read-only nil" (point-max) t)
+ (beginning-of-line)
+ (setq start (point))
+ (setq end (save-excursion
+ (end-of-defun)
+ (point)))
+
+ (delete-region (line-beginning-position) (line-end-position))
+ (insert "(with-writable-buffer")
+ (indent-for-tab-command)
+ (search-forward "buffer-read-only t" end t)
+ (end-of-line)
+ (skip-chars-backward ")")
+ (delete-region (line-beginning-position) (point))
+ (delete-indentation)
+ (goto-char start)
+ (indent-pp-sexp))
+ (t nil))))
+
+(defun update-checks ()
+ "(should (progn (message \"...\"))) --> (should (progn (message \"%s: ...\"
test-name)))"
+ (interactive)
+ (let ((fname "update-checks")
+ (fill-pos (make-marker))
+ )
+ ;; (error "%s() is not yet implemented" fname)
+ (while (re-search-forward "^\\s-+(should\\s-+(progn (message \""
(point-max) t)
+ (set-marker fill-pos (match-end 0))
+ (cond ((search-forward "\")" (line-end-position) t)
+ (goto-char (1- (match-end 0)))
+ (insert " test-name")
+ (goto-char fill-pos)
+ (insert "%s: "))
+ (t
+ (warn "%s(): Line %d ends oddly." fname (count-lines (point-min)
+ (point))))))))
+(defun grab-temps ()
+ "Grab all the temporary buffer/file uses and
+put them in a buffer called temp.el.
+
+CAUTION: This is a HACK. It was modified
+to grab temp- references in sub-directories."
+ (interactive)
+ (let ((fname "grab-temps")
+ (temp-uses-buffer (find-file-noselect "temp.el"))
+ (dir)
+ (func-text)
+ (grep-parts)
+ (file)
+ (file-buf)
+ (line)
+ )
+ ;; (error "%s() is not yet implemented" fname)
+ ;; (with-current-buffer temp-uses-buffer (erase-buffer))
+ (mapc (lambda (d)
+ (setq dir (concat "~/src/3rdParty/GNU/emacs/emacs-24.5/lisp/" d
"/"))
+
+ (lgrep "with-temp" "*.el" dir)
+ (with-current-buffer "*grep*"
+ (while (re-search-forward "^[^:]+:" (point-max) t)
+
+ ;; (next-error)
+
+ (setq grep-parts (split-string (buffer-substring-no-properties
+ (line-beginning-position)
+ (line-end-position))
+ ":")))
+ (setq file (concat dir
+ (nth 0 grep-parts)))
+ (setq line (string-to-number (nth 1 grep-parts)))
+ (setq file-buf (find-file file))
+ (with-current-buffer file-buf
+ (goto-line line)
+ (mark-defun)
+ (setq func-text (buffer-substring (point) (mark))))
+ (with-current-buffer temp-uses-buffer
+ (goto-char (point-max))
+ (insert func-text)))
+ )
+ (list
+ "calc"
+ "celendar"
+ "cedet"
+ "emacs-lisp"
+ "emacs-parallel"
+ "emulation"
+ "erc"
+ "eshell"
+ "gnus"
+ "international"
+ "language"
+ "leim"
+ "mail"
+ "mh-e"
+ "net"
+ "nxml"
+ ;; "obsolete"
+ "org"
+ "play"
+ "progmodes"
+ "term"
+ "textmodes"
+ "url"
+ "vc"))
+ ))
+
+;;
+;; Hacks
+;;
+(defvar cdmt-generic-vars (list
+ "cdmt-small-archive"
+ "cdmt-large-archive"
+ "cdmt-header-re"
+
+ "cpio-magic-re-idx"
+ "cpio-mode-re-idx"
+ "cpio-uid-re-idx"
+ "cpio-gid-re-idx"
+ "cpio-nlink-re-idx"
+ "cpio-filesize-re-idx"
+ "cpio-namesize-re-idx"
+ "cpio-chksum-re-idx"
+ "cpio-filename-re-idx"
+ "cdmt-archive-format"))
+
+(defun cdmt-convert-vars (format)
+ "Convert all the uses of FORMAT specific vars to their generic counterparts.
+FORMAT is a string.
+
+NOTE: Only use this after the definitions of the generic variables."
+
+ (interactive "sFormat? ")
+ (let* ((fname "cdmt-convert-vars")
+ (formats (list
+ "bin"
+ "crc"
+ "newc"
+ "odc"))
+ (beginning)
+ (end)
+ (format-specific-name)
+ )
+ ;; (error "%s() is not yet implemented" fname)
+ (unless (string-match (regexp-opt formats) format)
+ (error "%s(): Uknown format [[%s]]." fname format))
+
+ (widen)
+ (mapc (lambda (v-name)
+ (string-match "-" v-name)
+ (setq beginning (substring v-name 0 (match-end 0)))
+ (setq end (substring v-name 0 (match-end 0)))
+ (setq format-specific-name (concat beginning format "-" end))
+
+ ;; Get past the vars under change.
+ (goto-char (point-min))
+ (search-forward "Vars" (point-max) nil) ;Error out if the buffer
doesn't have a Vars page.
+ (re-search-forward page-delimiter (point-max) nil) ;Or if it's not
actually a page.
+ ;; Now replace every thing else.
+ (while (search-forward format-specific-name (point-max) t)
+ (replace-match v-name nil nil format-specific-name)))
+ cdmt-generic-vars)
+ ))
+
+(defvar cdmt-generic-funcs (list
+ "cdmt-filter-archive-contents"
+ "cdmt-reset"
+ "cdmt-reformat-headers"
+ "cdmt-unfinished-command"
+ "cdmt-all-unfinished-commands"
+ "cdmt-finished-command"
+ "cdmt-all-finished-commands"
+ "cdmt-tidy-up-catalog"
+ "cdmt-test-save"
+ "cdmt-global-sub"
+ "cdmt-sweep-hex"))
+(setq cdmt-generic-funcs (list
+ "cdmt-filter-archive-contents"
+ "cdmt-reset"
+ "cdmt-reformat-headers"
+ "cdmt-unfinished-command"
+ "cdmt-all-unfinished-commands"
+ "cdmt-finished-command"
+ "cdmt-all-finished-commands"
+ "cdmt-tidy-up-catalog"
+ "cdmt-test-save"
+ "cdmt-global-sub"
+ "cdmt-sweep-hex"
+ "cdmt-filter-archive-contents"))
+
+(defun convert-to-generic-funcs (format)
+ ""
+ (interactive "sFormat? ")
+ (let ((fname "convert-to-generic-funcs")
+ (formats (list
+ "bin"
+ "crc"
+ "newc"
+ "odc"))
+ (beginning)
+ (end)
+ (format-specific-name)
+ )
+ ;; (error "%s() is not yet implemented" fname)
+ (unless (string-match (regexp-opt formats) format)
+ (error "%s(): Uknown format [[%s]]." fname format))
+
+ (widen)
+ (mapc (lambda (f-name)
+ (string-match "-" f-name)
+ (setq beginning (substring f-name 0 (match-end 0)))
+ (setq end (substring f-name (match-end 0)))
+ (setq format-specific-name (concat beginning format "-" end))
+
+ ;; Get past the vars under change.
+ (goto-char (point-min))
+ (search-forward "Vars" (point-max) nil) ;Error out if the buffer
doesn't have a Vars page.
+ (re-search-forward page-delimiter (point-max) nil) ;Or if it's not
actually a page.
+ ;; Now replace every thing else.
+ (while (search-forward format-specific-name (point-max) t)
+ (replace-match f-name)))
+ cdmt-generic-funcs)
+ ))
+
+(defun cdmt-ediff-results ()
+ "Compare the results of a (string-match) on the current line in a buffer of
ERT results.
+The results are always presented as (string-match EXPECTED-RE ACTUAL) on that
line."
+ (interactive)
+ (let ((fname "cdmt-ediff-results")
+ (expected)
+ (actual)
+ (start))
+ (beginning-of-line)
+ (re-search-forward "string-\\(match\\|equal\\) " (line-end-position))
+
+ (setq start (1+ (point)))
+ (forward-sexp)
+ (setq expected (buffer-substring-no-properties start (1- (point))))
+
+ (forward-char 1)
+
+ (setq start (1+ (point)))
+ (forward-sexp)
+ (setq actual (buffer-substring-no-properties start (1- (point))))
+
+ (with-current-buffer (get-buffer-create "expected")
+ (erase-buffer)
+ (insert expected)
+ (goto-char (point-min))
+ (while (search-forward "\\n" (point-max) t)
+ (replace-match "\n\n"))
+ (goto-char (point-min)))
+
+ (with-current-buffer (get-buffer-create "actual")
+ (erase-buffer)
+ (insert actual)
+ (goto-char (point-min))
+ (while (search-forward "\\n" (point-max) t)
+ (replace-match "\n\n"))
+ (goto-char (point-min)))
+
+ ;; (pop-to-buffer "expected")
+ ;; (switch-to-buffer "actual")
+
+ (ediff-buffers "actual" "expected")))
- [elpa] externals/cpio-mode 12e550e 58/61: Version 0.14β, (continued)
- [elpa] externals/cpio-mode 12e550e 58/61: Version 0.14β, Stefan Monnier, 2019/01/11
- [elpa] externals/cpio-mode f2bad29 60/61: Moved to cpio-mode.el., Stefan Monnier, 2019/01/11
- [elpa] externals/cpio-mode 38a59a6 59/61: Renamed from cpio.el., Stefan Monnier, 2019/01/11
- [elpa] externals/cpio-mode 90f1236 61/61: New version with copyright assigned to the FSF., Stefan Monnier, 2019/01/11
- [elpa] externals/cpio-mode 6c0fa51 38/61: version 0.04, Stefan Monnier, 2019/01/11
- [elpa] externals/cpio-mode f4a1a89 44/61: Version 0.08, Stefan Monnier, 2019/01/11
- [elpa] externals/cpio-mode 4cc60b1 51/61: Version: 0.13β, Stefan Monnier, 2019/01/11
- [elpa] externals/cpio-mode 86b255b 46/61: Version 0.09 -- a little polish, Stefan Monnier, 2019/01/11
- [elpa] externals/cpio-mode 8047799 42/61: Version 0.07 -- fontification, Stefan Monnier, 2019/01/11
- [elpa] externals/cpio-mode 2a01909 34/61: Add files via upload, Stefan Monnier, 2019/01/11
- [elpa] externals/cpio-mode 5a87960 47/61: Version 0.10,
Stefan Monnier <=
- [elpa] externals/cpio-mode 889e8fe 41/61: Version 0.06, Stefan Monnier, 2019/01/16