History log of /freebsd-current/usr.bin/file/tests/file_test.sh
Revision Date Author Comments
# 8f75390c 09-Oct-2023 Xin LI <delphij@FreeBSD.org>

file: Support testing multiple magic files.

This is based on upstream b74150490be904801378b2712fe0d532e1700124
but adapted to ATF.

Reviewed by: jlduran@gmail.com, markj, vangyzen
Differential Revision: https://reviews.freebsd.org/D42129


# 0d3a8756 06-Oct-2023 Jose Luis Duran <jlduran@gmail.com>

file_test: Fix file test

Trimming of the line feed is no longer necessary after
https://github.com/file/file/commit/d993c6b0db20711b2c4cb9d2bee8c7f2e59b0a43

Currently the tests:

- bcachefs2
- gpkg-1-zst
- multiple

are failing, but a fix will be committed upstream.

This also reverts c5e957ad4 "file: fix test case for gpkg by removing the extra \n."

MFC after: 3 days


# 1581ec9a 16-Feb-2022 Eric van Gyzen <vangyzen@FreeBSD.org>

Integrate contrib/file/tests with kyua/atf

This could be done better by making each test a separate ATF test case.
This exercise is left for the reader.

Reviewed by: delphij (earlier version)
MFC after: 1 week
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D34303