diff options
author | Simon Frei <freisim93@gmail.com> | 2020-06-16 14:33:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-16 14:33:17 +0200 |
commit | dbacef35c4559ce1cb8055279679ac2a449edb0b (patch) | |
tree | 7de99fecf640d4def5683291f6edb37d955580e4 /test | |
parent | f310bbaaacaa40fdb8895e05a868c4ac5d8c48d7 (diff) | |
download | syncthing-dbacef35c4559ce1cb8055279679ac2a449edb0b.tar.gz syncthing-dbacef35c4559ce1cb8055279679ac2a449edb0b.zip |
build: Update integration tests and add to build.go (#6744)
Diffstat (limited to 'test')
-rw-r--r-- | test/h1/config.xml | 12 | ||||
-rw-r--r-- | test/h2/config.xml | 13 | ||||
-rw-r--r-- | test/h3/config.xml | 12 | ||||
-rw-r--r-- | test/usage_windows.go | 4 |
4 files changed, 34 insertions, 7 deletions
diff --git a/test/h1/config.xml b/test/h1/config.xml index 3875c1697..94ec05b6e 100644 --- a/test/h1/config.xml +++ b/test/h1/config.xml @@ -1,4 +1,4 @@ -<configuration version="29"> +<configuration version="31"> <folder id="default" label="" path="s1/" type="sendreceive" rescanIntervalS="10" fsWatcherEnabled="false" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true"> <filesystemType>basic</filesystemType> <device id="I6KAH76-66SLLLB-5PFXSOA-UFJCDZC-YAOMLEK-CP2GB32-BV5RQST-3PSROAU" introducedBy=""></device> @@ -22,6 +22,9 @@ <markerName>.stfolder</markerName> <copyOwnershipFromParent>false</copyOwnershipFromParent> <modTimeWindowS>0</modTimeWindowS> + <maxConcurrentWrites>0</maxConcurrentWrites> + <disableFsync>false</disableFsync> + <blockPullOrder>standard</blockPullOrder> </folder> <folder id="¯\_(ツ)_/¯ Räksmörgås 动作 Адрес" label="" path="s12-1/" type="sendreceive" rescanIntervalS="10" fsWatcherEnabled="false" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true"> <filesystemType>basic</filesystemType> @@ -44,6 +47,9 @@ <markerName>.stfolder</markerName> <copyOwnershipFromParent>false</copyOwnershipFromParent> <modTimeWindowS>0</modTimeWindowS> + <maxConcurrentWrites>0</maxConcurrentWrites> + <disableFsync>false</disableFsync> + <blockPullOrder>standard</blockPullOrder> </folder> <device id="EJHMPAQ-OGCVORE-ISB4IS3-SYYVJXF-TKJGLTU-66DIQPF-GJ5D2GX-GQ3OWQK" name="s4" compression="metadata" introducer="false" skipIntroductionRemovals="false" introducedBy=""> <address>tcp://127.0.0.1:22004</address> @@ -130,11 +136,13 @@ <trafficClass>0</trafficClass> <defaultFolderPath>~</defaultFolderPath> <setLowPriority>true</setLowPriority> - <maxConcurrentScans>0</maxConcurrentScans> + <maxFolderConcurrency>0</maxFolderConcurrency> <crashReportingURL>https://crash.syncthing.net/newcrash</crashReportingURL> <crashReportingEnabled>true</crashReportingEnabled> <stunKeepaliveStartS>180</stunKeepaliveStartS> <stunKeepaliveMinS>20</stunKeepaliveMinS> <stunServer>default</stunServer> + <databaseTuning>auto</databaseTuning> + <maxConcurrentIncomingRequestKiB>0</maxConcurrentIncomingRequestKiB> </options> </configuration> diff --git a/test/h2/config.xml b/test/h2/config.xml index afa1821bb..cefafaea9 100644 --- a/test/h2/config.xml +++ b/test/h2/config.xml @@ -21,6 +21,9 @@ <markerName>.stfolder</markerName> <copyOwnershipFromParent>false</copyOwnershipFromParent> <modTimeWindowS>0</modTimeWindowS> + <maxConcurrentWrites>0</maxConcurrentWrites> + <disableFsync>false</disableFsync> + <blockPullOrder>standard</blockPullOrder> </folder> <folder id="s23" label="" path="s23-2" type="sendreceive" rescanIntervalS="15" fsWatcherEnabled="false" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true"> <filesystemType>basic</filesystemType> @@ -43,6 +46,9 @@ <markerName>.stfolder</markerName> <copyOwnershipFromParent>false</copyOwnershipFromParent> <modTimeWindowS>0</modTimeWindowS> + <maxConcurrentWrites>0</maxConcurrentWrites> + <disableFsync>false</disableFsync> + <blockPullOrder>standard</blockPullOrder> </folder> <folder id="¯\_(ツ)_/¯ Räksmörgås 动作 Адрес" label="" path="s12-2" type="sendreceive" rescanIntervalS="15" fsWatcherEnabled="false" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true"> <filesystemType>basic</filesystemType> @@ -65,6 +71,9 @@ <markerName>.stfolder</markerName> <copyOwnershipFromParent>false</copyOwnershipFromParent> <modTimeWindowS>0</modTimeWindowS> + <maxConcurrentWrites>0</maxConcurrentWrites> + <disableFsync>false</disableFsync> + <blockPullOrder>standard</blockPullOrder> </folder> <device id="I6KAH76-66SLLLB-5PFXSOA-UFJCDZC-YAOMLEK-CP2GB32-BV5RQST-3PSROAU" name="s1" compression="metadata" introducer="false" skipIntroductionRemovals="false" introducedBy=""> <address>tcp://127.0.0.1:22001</address> @@ -134,11 +143,13 @@ <trafficClass>0</trafficClass> <defaultFolderPath>~</defaultFolderPath> <setLowPriority>true</setLowPriority> - <maxConcurrentScans>0</maxConcurrentScans> + <maxFolderConcurrency>0</maxFolderConcurrency> <crashReportingURL>https://crash.syncthing.net/newcrash</crashReportingURL> <crashReportingEnabled>true</crashReportingEnabled> <stunKeepaliveStartS>180</stunKeepaliveStartS> <stunKeepaliveMinS>20</stunKeepaliveMinS> <stunServer>default</stunServer> + <databaseTuning>auto</databaseTuning> + <maxConcurrentIncomingRequestKiB>0</maxConcurrentIncomingRequestKiB> </options> </configuration> diff --git a/test/h3/config.xml b/test/h3/config.xml index 7d2acfe46..8c711d94e 100644 --- a/test/h3/config.xml +++ b/test/h3/config.xml @@ -1,4 +1,4 @@ -<configuration version="29"> +<configuration version="31"> <folder id="default" label="" path="s3" type="sendreceive" rescanIntervalS="20" fsWatcherEnabled="false" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true"> <filesystemType>basic</filesystemType> <device id="I6KAH76-66SLLLB-5PFXSOA-UFJCDZC-YAOMLEK-CP2GB32-BV5RQST-3PSROAU" introducedBy=""></device> @@ -23,6 +23,9 @@ <markerName>.stfolder</markerName> <copyOwnershipFromParent>false</copyOwnershipFromParent> <modTimeWindowS>0</modTimeWindowS> + <maxConcurrentWrites>0</maxConcurrentWrites> + <disableFsync>false</disableFsync> + <blockPullOrder>standard</blockPullOrder> </folder> <folder id="s23" label="" path="s23-3" type="sendreceive" rescanIntervalS="20" fsWatcherEnabled="false" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true"> <filesystemType>basic</filesystemType> @@ -45,6 +48,9 @@ <markerName>.stfolder</markerName> <copyOwnershipFromParent>false</copyOwnershipFromParent> <modTimeWindowS>0</modTimeWindowS> + <maxConcurrentWrites>0</maxConcurrentWrites> + <disableFsync>false</disableFsync> + <blockPullOrder>standard</blockPullOrder> </folder> <device id="I6KAH76-66SLLLB-5PFXSOA-UFJCDZC-YAOMLEK-CP2GB32-BV5RQST-3PSROAU" name="s1" compression="metadata" introducer="false" skipIntroductionRemovals="false" introducedBy=""> <address>tcp://127.0.0.1:22001</address> @@ -114,11 +120,13 @@ <trafficClass>0</trafficClass> <defaultFolderPath>~</defaultFolderPath> <setLowPriority>true</setLowPriority> - <maxConcurrentScans>0</maxConcurrentScans> + <maxFolderConcurrency>0</maxFolderConcurrency> <crashReportingURL>https://crash.syncthing.net/newcrash</crashReportingURL> <crashReportingEnabled>true</crashReportingEnabled> <stunKeepaliveStartS>180</stunKeepaliveStartS> <stunKeepaliveMinS>20</stunKeepaliveMinS> <stunServer>default</stunServer> + <databaseTuning>auto</databaseTuning> + <maxConcurrentIncomingRequestKiB>0</maxConcurrentIncomingRequestKiB> </options> </configuration> diff --git a/test/usage_windows.go b/test/usage_windows.go index 728a387f9..52e24baac 100644 --- a/test/usage_windows.go +++ b/test/usage_windows.go @@ -23,7 +23,7 @@ func ftToDuration(ft *syscall.Filetime) time.Duration { func printUsage(name string, proc *os.ProcessState, total int64) { if rusage, ok := proc.SysUsage().(*syscall.Rusage); ok { mib := total / 1024 / 1024 - log.Printf("%s: Utime: %s / MiB", name, time.Duration(&rusage.UserTime/mib)) - log.Printf("%s: Stime: %s / MiB", name, time.Duration(&rusage.KernelTime/mib)) + log.Printf("%s: Utime: %s / MiB", name, time.Duration(rusage.UserTime.Nanoseconds()/mib)) + log.Printf("%s: Stime: %s / MiB", name, time.Duration(rusage.KernelTime.Nanoseconds()/mib)) } } |