]> git.ipfire.org Git - thirdparty/libarchive.git/commit
7zip reader: add test for POWERPC filter support for LZMA compressor (#2460)
authorMostyn Bramley-Moore <mostyn@antipode.se>
Fri, 9 May 2025 11:40:56 +0000 (13:40 +0200)
committerGitHub <noreply@github.com>
Fri, 9 May 2025 11:40:56 +0000 (13:40 +0200)
commit5d2a788e418fa2d05d4488ec1bcd2fcd122abd9a
tree538b432f6e878c49eef265373ed6cf52e8b26a67
parent16fd043f51d911b106f2a7834ad8f08f65051977
7zip reader: add test for POWERPC filter support for LZMA compressor (#2460)

This new test archive contains a C hello world executable built like so
on a ubuntu 24.04 machine:
```
int main(int argc, char *argv[]) {
  printf("hello, world\n");
  return 0;
}
```

`powerpc-linux-gnu-gcc hw.c -o hw-powerpc -Wall`

The test archive that contains this executable was created like so,
using 7-Zip 24.08: `7zz a -t7z -m0=lzma2 -mf=ppc
libarchive/test/test_read_format_7zip_lzma2_powerpc.7z hw-powerpc`

The new test archive is required because the powerpc filter for lzma is
implemented in liblzma rather than in libarchive.
Makefile.am
libarchive/test/test_read_format_7zip.c
libarchive/test/test_read_format_7zip_lzma2_powerpc.7z.uu [new file with mode: 0644]