# package the test script etc
cd qa-regression-testing/
./scripts/make-test-tarball ./scripts/test-squashfs-tools.py
# run the test with the current unpatched version
cd /tmp
tar xf qrt-test-squashfs-tools.tar.gz
cd qrt-test-squashfs-tools/
sudo ./test-squashfs-tools.py
Skipping private tests
F.
======================================================================
FAIL: test_mksquashfs_unsquashfs (__main__.SquashfsToolsTest)
Test mksquashfs/unsquashfs - root
----------------------------------------------------------------------
Traceback (most recent call last):
File "./test-squashfs-tools.py", line 254, in test_mksquashfs_unsquashfs
self._verify_unsquashfs(numeric_uid, fn, listing)
File "./test-squashfs-tools.py", line 218, in _verify_unsquashfs
(raw, entries) = self._get_comparable_unsquashfs(numeric_uid, fn)
File "./test-squashfs-tools.py", line 171, in _get_comparable_unsquashfs
"unsquashfs " + switch + " failed: %s" % report)
AssertionError: unsquashfs -lln failed: SYNTAX: unsquashfs [options] filesystem [directories or files to extract]
-v[ersion] print version, licence and copyright information
-d[est] <pathname> unsquash to <pathname>, default "squashfs-root"
-n[o-progress] don't display the progress bar
-no[-xattrs] don't extract xattrs in file system
-x[attrs] extract xattrs in file system (default)
-u[ser-xattrs] only extract user xattrs in file system.
Enables extracting xattrs
-p[rocessors] <number> use <number> processors. By default will use
number of processors available
-i[nfo] print files as they are unsquashed
-li[nfo] print files as they are unsquashed with file
attributes (like ls -l output)
-l[s] list filesystem, but don't unsquash
-ll[s] list filesystem with file attributes (like
ls -l output), but don't unsquash
-f[orce] if file already exists then overwrite
-s[tat] display filesystem superblock information
-fstime display filesystem superblock time
-e[f] <extract file> list of directories or files to extract.
One per line
-da[ta-queue] <size> Set data queue to <size> Mbytes. Default 256
Mbytes
-fr[ag-queue] <size> Set fragment queue to <size> Mbytes. Default
256 Mbytes
-r[egex] treat extract names as POSIX regular expressions
rather than use the default shell wildcard
expansion (globbing)
Decompressors available:
gzip
lzma
lzo
lz4
xz
----------------------------------------------------------------------
Ran 2 tests in 2.152s
# re-run test
sudo ./test-squashfs-tools.py
Skipping private tests
..
----------------------------------------------------------------------
Ran 2 tests in 2.648s
OK
# also test manually
snap download core
unsquashfs -lln core_11081.snap
Parallel unsquashfs: Using 1 processor
11395 inodes (12946 blocks) to write
I tested the update in -proposed as follows:
# enable -proposed in a fresh 18.04 LTS install sources. list.d/ ubuntu- $(lsb_release -cs)-proposed.list archive. ubuntu. com/ubuntu/ $(lsb_release -cs)-proposed restricted main multiverse universe
cat <<EOF | sudo tee /etc/apt/
# Enable Ubuntu proposed archive
deb http://
EOF
cat <<EOF | sudo tee /etc/apt/ preferences. d/proposed- updates
# Configure apt to allow selective installs of packages from proposed
Package: *
Pin: release a=$(lsb_release -cs)-proposed
Pin-Priority: 400
EOF
# get the test script from qa-regression- testing /git.launchpad. net/qa- regression- testing
sudo apt install git python-minimal
git clone https:/
# package the test script etc testing/ make-test- tarball ./scripts/ test-squashfs- tools.py
cd qa-regression-
./scripts/
# run the test with the current unpatched version squashfs- tools.tar. gz squashfs- tools/ squashfs- tools.py ======= ======= ======= ======= ======= ======= ======= ======= ======= _unsquashfs (__main_ _.SquashfsTools Test) unsquashfs - root ------- ------- ------- ------- ------- ------- ------- ------- ------- squashfs- tools.py" , line 254, in test_mksquashfs _unsquashfs _verify_ unsquashfs( numeric_ uid, fn, listing) squashfs- tools.py" , line 218, in _verify_unsquashfs comparable_ unsquashfs( numeric_ uid, fn) squashfs- tools.py" , line 171, in _get_comparable _unsquashfs
cd /tmp
tar xf qrt-test-
cd qrt-test-
sudo ./test-
Skipping private tests
F.
=======
FAIL: test_mksquashfs
Test mksquashfs/
-------
Traceback (most recent call last):
File "./test-
self.
File "./test-
(raw, entries) = self._get_
File "./test-
"unsquashfs " + switch + " failed: %s" % report)
AssertionError: unsquashfs -lln failed: SYNTAX: unsquashfs [options] filesystem [directories or files to extract]
-v[ersion] print version, licence and copyright information
-d[est] <pathname> unsquash to <pathname>, default "squashfs-root"
-n[o-progress] don't display the progress bar
-no[-xattrs] don't extract xattrs in file system
-x[attrs] extract xattrs in file system (default)
-u[ser-xattrs] only extract user xattrs in file system.
Enables extracting xattrs
-p[rocessors] <number> use <number> processors. By default will use
number of processors available
-i[nfo] print files as they are unsquashed
-li[nfo] print files as they are unsquashed with file
attributes (like ls -l output)
-l[s] list filesystem, but don't unsquash
-ll[s] list filesystem with file attributes (like
ls -l output), but don't unsquash
-f[orce] if file already exists then overwrite
-s[tat] display filesystem superblock information
-fstime display filesystem superblock time
-e[f] <extract file> list of directories or files to extract.
One per line
-da[ta-queue] <size> Set data queue to <size> Mbytes. Default 256
Mbytes
-fr[ag-queue] <size> Set fragment queue to <size> Mbytes. Default
256 Mbytes
-r[egex] treat extract names as POSIX regular expressions
rather than use the default shell wildcard
expansion (globbing)
Decompressors available:
gzip
lzma
lzo
lz4
xz
------- ------- ------- ------- ------- ------- ------- ------- ------- -------
Ran 2 tests in 2.152s
FAILED (failures=1)
# update squashfs-tools from -proposed tools/bionic- proposed
sudo apt update
sudo apt install squashfs-
# re-run test squashfs- tools.py ------- ------- ------- ------- ------- ------- ------- ------- -------
sudo ./test-
Skipping private tests
..
-------
Ran 2 tests in 2.648s
OK
# also test manually
snap download core
unsquashfs -lln core_11081.snap
Parallel unsquashfs: Using 1 processor
11395 inodes (12946 blocks) to write
drwxr-xr-x 0/0 333 2021-04-28 17:53 squashfs-root root/bin/ bash root/bin/ bunzip2 root/bin/ bzcat root/bin/ bzcmp -> bzdiff root/bin/ bzdiff
drwxr-xr-x 0/0 1975 2021-04-28 17:53 squashfs-root/bin
-rwxr-xr-x 0/0 1037528 2019-07-13 04:56 squashfs-
-rwxr-xr-x 0/0 31352 2019-07-04 22:06 squashfs-
-rwxr-xr-x 0/0 31352 2019-07-04 22:06 squashfs-
lrwxrwxrwx 0/0 6 2019-07-04 22:06 squashfs-
-rwxr-xr-x 0/0 2140 2019-07-04 22:06 squashfs-
...