From 03acfd8deb2b975dc0ca4d817e895b5ced35319a Mon Sep 17 00:00:00 2001 From: Christian Zangl Date: Mon, 21 Oct 2024 19:39:46 +0000 Subject: [PATCH] test hidden --- scripts/run_test.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/scripts/run_test.go b/scripts/run_test.go index bd378dd..eb049ad 100644 --- a/scripts/run_test.go +++ b/scripts/run_test.go @@ -260,6 +260,21 @@ func TestRoot(t *testing.T) { checkOut(t, sout, "- 0 file hashes were added") checkOut(t, sout, "- 1 file hash was updated") }) + + // ignore hidden + t.Run("ignore-hidden", func(t *testing.T) { + + genFiles(filepath.Join(root, "way/.hidden"), 99) + genFile(filepath.Join(root, "time/.ignored"), 999) + + cmd := exec.Command(tool, "-u", root) + out, err := cmd.Output() + if err != nil { + t.Fatalf("failed with '%s'\n", err) + } + sout := string(out) + checkOut(t, sout, "Processed 295 files") + }) } func TestDMG(t *testing.T) {