From 5103d37c1e1ea7fe89a03756b2813467228a6aa7 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 6 Aug 2024 11:02:06 -0300 Subject: Run in parallel slow tests --- tests/gobang.go | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) (limited to 'tests/gobang.go') diff --git a/tests/gobang.go b/tests/gobang.go index 324a155..f071f53 100644 --- a/tests/gobang.go +++ b/tests/gobang.go @@ -514,10 +514,19 @@ func TestSetLoggerOutput() { // fmt.Println(e) } -func MainTest() { +func t1() { test__PBKDF() +} + +func t2() { test_scrypt() +} + +func t3() { test_Hash() +} + +func t4() { test_Random() test_Salt() test_newUUIDFrom() @@ -525,3 +534,26 @@ func MainTest() { test_UUIDString() test_ParseUUID() } + +func MainTest() { + arg := "" + if len(os.Args) > 1 { + arg = os.Args[1] + } + + switch arg { + case "1": + t1() + case "2": + t2() + case "3": + t3() + case "4": + t4() + default: + t1() + t2() + t3() + t4() + } +} -- cgit v1.2.3