math-optim/run_test.go
leo 7585bd4889
All checks were successful
continuous-integration/drone/push Build is passing
go(run): add flags to allow algorithm selection
* jDE runs by default
* errors out if none of the algorithms is chosen
* also increase test timeout
2023-01-21 17:26:01 +01:00

24 lines
408 B
Go

// Copyright 2023 wanderer <a_mirre at utb dot cz>
// SPDX-License-Identifier: GPL-3.0-or-later
package main
import (
"flag"
"testing"
)
func TestRun(t *testing.T) {
t.Log("call run() (TODO: improve this test)")
timeout := "1m10s"
t.Log("increase test timeout to", timeout)
if err := flag.Set("test.timeout", timeout); err != nil {
t.Errorf("failed to set timeout to %s", timeout)
}
run()
}