litonlylzma: add allowTestsToExecOtherPrograms

This commit is contained in:
Nigel Tao committed 2023-11-25 11:16:52 +11:00
1 parent 4f45ddcb0c
commit 42d3b4d692
2 files changed
+13 -1

No files matched your search

+8
View File
@@ -68,6 +68,14 @@ func TestRoundTripPiTxt(tt *testing.T) { testRoundTrip(tt, "pi.txt")
func TestRoundTripRomeoTxt(tt *testing.T) { testRoundTrip(tt, "romeo.txt") }
func TestUsrBinFoocatCompat(tt *testing.T) {
// Set "allowTestsToExecOtherPrograms = true" for more test coverage,
// checking compatibility with third-party decompression tools that are
// often available (at a well known location) on Linux.
const allowTestsToExecOtherPrograms = false
if !allowTestsToExecOtherPrograms {
tt.Skip("not configured to exec third-party programs")
}
testCases := [...]struct {
fileFormat FileFormat
command string