[schilytools] running compression tests

Robert Clausecker fuz at fuz.su
Sat Oct 1 15:37:02 CEST 2022


Hi Dennis,

Thank you for the report!

The background is as follows: star tries to call compressors without
arguments and decompressors with just -d as an argument.  While this
works for most compressors I tried, it fails for some of the weirder
ones like lzma(1).  It appears that those require a different syntax
to work.

I would like to understand if these decompressors used to work on some
platforms or if the code just never worked in the first place.  Then,
I may be able to rewrite the code such that it works both on current and
more exotic platforms.

You can run the decompressor tests yourself: install star from the
schilytools distribution, then enter the directory star/tests/compress
in current schilytools and run compress.sh.  Please report any failures
you see.  You might need to install additional compression programs.
If possible and you have the time, please do so from the official or
most common source of third party software for your system.

Please report results on various platforms either here or on Codeberg:

    https://codeberg.org/schilytools/schilytools/issues/34

Yours,
Robert Clausecker

Am Sat, Oct 01, 2022 at 09:10:33AM -0400 schrieb Dennis Clarke via schilytools:
> 
> As requested I am running star/tests/compress/compress.sh on as many
> systems as I can. Thus far there is nothing interesting to report other
> than the need for LD_LIBRARY_PATH to located libdeflt.so.1.0 in one
> case. This is only because I did not run the smake install.
> 
> rv64$ cd ./star/tests/compress/
> rv64$ uname -apKU
> FreeBSD ump.daveg.ca 14.0-CURRENT FreeBSD 14.0-CURRENT #1 
> main-n258227-6622e299ac73-dirty: Wed Sep 28 15:00:56 EDT 2022 
> root at ump.daveg.ca:/usr/obj/usr/src/riscv.riscv64/sys/GENERIC riscv 
> riscv64 1400071 1400071
> rv64$ ./compress.sh
> COMP-pack...FAIL ./compress.sh COMP-pack: 
> "../../OBJ/riscv64-freebsd-clang/star -t f=tar.tar.z" Expected exit code 
> 0, got 1
> Error message: ld-elf.so.1: Shared object "libdeflt.so.1.0" not found, 
> required by "star"
> rv64$
> 
> rv64$
> rv64$ file ../../OBJ/riscv64-freebsd-clang/star
> ../../OBJ/riscv64-freebsd-clang/star: ELF 64-bit LSB executable, UCB 
> RISC-V, RVC, double-float ABI, version 1 (SYSV), dynamically linked, 
> interpreter /libexec/ld-elf.so.1, for FreeBSD 14.0 (1400071), 
> FreeBSD-style, with debug_info, not stripped
> rv64$
> rv64$ readelf -delV ../../OBJ/riscv64-freebsd-clang/star | grep -E 
> 'NEED|NAME|PATH'
>   0x000000000000001d RUNPATH              Library runpath: [/opt/schily/lib]
>   0x0000000000000001 NEEDED               Shared library: [libdeflt.so.1.0]
>   0x0000000000000001 NEEDED               Shared library: [librmt.so.1.0]
>   0x0000000000000001 NEEDED               Shared library: [libfind.so.4.0]
>   0x0000000000000001 NEEDED               Shared library: [libschily.so.2.0]
>   0x0000000000000001 NEEDED               Shared library: [libiconv.so.2]
>   0x0000000000000001 NEEDED               Shared library: [libintl.so.8]
>   0x0000000000000001 NEEDED               Shared library: [libc.so.7]
>   0x000000006ffffffe VERNEED              0x11b84
>   0x000000006fffffff VERNEEDNUM           1
> rv64$
> 
> rv64$
> rv64$ 
> LD_LIBRARY_PATH=/home/dclarke/schily-2022-09-18/libs/riscv64-freebsd-clang/pic 
> ./compress.sh
> COMP-pack...passed
> COMP-pack-prtype...passed
> COMP-gzip...passed
> COMP-gzip-prtype...passed
> COMP-lzw-compress...passed
> COMP-lzw-prtype...passed
> COMP-bzip2...passed
> COMP-bzip2-prtype...passed
> lzop: not found
> lzop missing: Skipping related compression tests
> p7zip: not found
> p7zip missing: Skipping related compression tests
> COMP-xz...passed
> COMP-xz-prtype...passed
> lzip: not found
> lzip missing: Skipping related compression tests
> COMP-zstd...passed
> COMP-zstd-prtype...passed
> COMP-lzma...passed
> COMP-lzma-prtype...passed
> freeze: not found
> lzma missing: Skipping related compression tests
> 
> All tests in ./compress.sh have completed
> PASS ./compress.sh
> rv64$
> 
> 
> I will make up a single txt file report and attach it later.
> 
> -- 
> Dennis Clarke
> RISC-V/SPARC/PPC/ARM/CISC
> UNIX and Linux spoken
> GreyBeard and suspenders optional
> -- 
> schilytools mailing list
> schilytools at mlists.in-berlin.de
> https://mlists.in-berlin.de/mailman/listinfo/schilytools-mlists.in-berlin.de

-- 
()  ascii ribbon campaign - for an 8-bit clean world 
/\  - against html email  - against proprietary attachments


More information about the schilytools mailing list