diff --git a/integration/f1/config.xml b/integration/f1/config.xml index 3bd8f7eb0..520802289 100644 --- a/integration/f1/config.xml +++ b/integration/f1/config.xml @@ -1,15 +1,15 @@ - +
127.0.0.1:22001
- +
127.0.0.1:22002
127.0.0.1:22001 - false + true true true true diff --git a/integration/f2/config.xml b/integration/f2/config.xml index bdd15b02e..3106c90aa 100644 --- a/integration/f2/config.xml +++ b/integration/f2/config.xml @@ -1,9 +1,9 @@ - +
127.0.0.1:22001
- +
127.0.0.1:22002
diff --git a/integration/folders.sh b/integration/folders.sh index c6289bb90..92bbb9348 100755 --- a/integration/folders.sh +++ b/integration/folders.sh @@ -11,7 +11,7 @@ go build json.go start() { echo "Starting..." for i in 1 2 ; do - STPROFILER=":909$i" syncthing -home "f$i" & + STTRACE=linenumbers STPROFILER=":909$i" syncthing -home "f$i" & done } @@ -51,11 +51,11 @@ testConvergence() { echo "Verifying..." pushd s1 >/dev/null - find . -type d | sort > ../dirs-1 + ../md5r -d | grep -v ' . ' > ../dirs-1 popd >/dev/null pushd s2 >/dev/null - find . -type d | sort > ../dirs-2 + ../md5r -d | grep -v ' . ' > ../dirs-2 popd >/dev/null if ! cmp dirs-1 dirs-2 ; then @@ -66,7 +66,7 @@ testConvergence() { } rm -rf s? s??-? -rm -f h?/*.idx.gz +rm -f f?/*.idx.gz setup start diff --git a/integration/md5r.go b/integration/md5r.go index 9923db078..7a8b4fe93 100644 --- a/integration/md5r.go +++ b/integration/md5r.go @@ -11,10 +11,14 @@ import ( "path/filepath" ) -var long bool +var ( + long bool + dirs bool +) func main() { flag.BoolVar(&long, "l", false, "Long output") + flag.BoolVar(&dirs, "d", false, "Check dirs") flag.Parse() args := flag.Args() @@ -37,14 +41,15 @@ func walker(path string, info os.FileInfo, err error) error { return err } - if !info.IsDir() { + if dirs && info.IsDir() { + fmt.Printf("%s %s 0%03o %d\n", "-", path, info.Mode(), info.ModTime().Unix()) + } else if !info.IsDir() { sum, err := md5file(path) if err != nil { return err } if long { fmt.Printf("%s %s 0%03o %d\n", sum, path, info.Mode(), info.ModTime().Unix()) - } else { fmt.Printf("%s %s\n", sum, path) }