From 385fb783ec77d952a9edad7aba61f8a316d0e5ba Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Sat, 30 Sep 2023 18:30:10 +0200 Subject: [PATCH] posixtest: run tests against normal filesystem Change-Id: I4c61fa0f522fa07d0c02d8c7261a6c82ab6756a8 --- posixtest/posixtest_test.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 posixtest/posixtest_test.go diff --git a/posixtest/posixtest_test.go b/posixtest/posixtest_test.go new file mode 100644 index 000000000..2dc739be6 --- /dev/null +++ b/posixtest/posixtest_test.go @@ -0,0 +1,20 @@ +// Copyright 2023 the Go-FUSE Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package posixtest + +import "testing" + +func TestAll(t *testing.T) { + for k, fn := range All { + if k == "FcntlFlockLocksFile" { + // TODO - fix this test. + continue + } + t.Run(k, func(t *testing.T) { + dir := t.TempDir() + fn(t, dir) + }) + } +}