mirror of
https://github.com/rclone/rclone.git
synced 2025-01-21 13:49:13 +01:00
build: add -race flag to integration tester test_all
This commit is contained in:
parent
95e18bdc6f
commit
9e60a065b4
@ -286,6 +286,9 @@ func (r *Run) MakeTestBinary() {
|
|||||||
binaryName := r.BinaryName()
|
binaryName := r.BinaryName()
|
||||||
log.Printf("%s: Making test binary %q", r.Path, binaryName)
|
log.Printf("%s: Making test binary %q", r.Path, binaryName)
|
||||||
CmdLine := []string{"go", "test", "-c"}
|
CmdLine := []string{"go", "test", "-c"}
|
||||||
|
if *race {
|
||||||
|
CmdLine = append(CmdLine, "-race")
|
||||||
|
}
|
||||||
if *dryRun {
|
if *dryRun {
|
||||||
log.Printf("Not executing: %v", CmdLine)
|
log.Printf("Not executing: %v", CmdLine)
|
||||||
return
|
return
|
||||||
|
@ -35,6 +35,7 @@ var (
|
|||||||
clean = flag.Bool("clean", false, "Instead of testing, clean all left over test directories")
|
clean = flag.Bool("clean", false, "Instead of testing, clean all left over test directories")
|
||||||
runOnly = flag.String("run", "", "Run only those tests matching the regexp supplied")
|
runOnly = flag.String("run", "", "Run only those tests matching the regexp supplied")
|
||||||
timeout = flag.Duration("timeout", 60*time.Minute, "Maximum time to run each test for before giving up")
|
timeout = flag.Duration("timeout", 60*time.Minute, "Maximum time to run each test for before giving up")
|
||||||
|
race = flag.Bool("race", false, "If set run the tests under the race detector")
|
||||||
configFile = flag.String("config", "fstest/test_all/config.yaml", "Path to config file")
|
configFile = flag.String("config", "fstest/test_all/config.yaml", "Path to config file")
|
||||||
outputDir = flag.String("output", path.Join(os.TempDir(), "rclone-integration-tests"), "Place to store results")
|
outputDir = flag.String("output", path.Join(os.TempDir(), "rclone-integration-tests"), "Place to store results")
|
||||||
emailReport = flag.String("email", "", "Set to email the report to the address supplied")
|
emailReport = flag.String("email", "", "Set to email the report to the address supplied")
|
||||||
|
Loading…
Reference in New Issue
Block a user