mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-23 14:30:46 +02:00
fuse integration: run autoreconf and configure before building pjdfstest
A fresh pjdfstest clone is autotools-based and has no Makefile, so the Go-side setup fallback always failed and the suite silently skipped.
This commit is contained in:
1 parent
0a4bfa0ca7
commit
4324f0b436
1 file changed
+12
-4
@@ -289,10 +289,18 @@ func (s *ExternalPOSIXTestSuite) setupPjdFsTest(targetDir string) error {
|
||||
return fmt.Errorf("failed to clone pjdfstest: %w", err)
|
||||
}
|
||||
|
||||
// Build pjdfstest
|
||||
cmd = exec.Command("make", "-C", targetDir)
|
||||
if err := cmd.Run(); err != nil {
|
||||
return fmt.Errorf("failed to build pjdfstest: %w", err)
|
||||
// pjdfstest is autotools-based: the fresh clone has no Makefile until
|
||||
// configure runs
|
||||
for _, step := range [][]string{
|
||||
{"autoreconf", "-ifs"},
|
||||
{"./configure"},
|
||||
{"make"},
|
||||
} {
|
||||
cmd = exec.Command(step[0], step[1:]...)
|
||||
cmd.Dir = targetDir
|
||||
if out, err := cmd.CombinedOutput(); err != nil {
|
||||
return fmt.Errorf("pjdfstest %s: %w: %s", step[0], err, out)
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user