Skip to content
Snippets Groups Projects
Commit 0e7b5d2d authored by Martin Stiemerling's avatar Martin Stiemerling :speech_balloon:
Browse files

pkg testing instead of main.go

parent d37febee
Branches
No related tags found
1 merge request!9First working draft version
...@@ -7,13 +7,16 @@ import ( ...@@ -7,13 +7,16 @@ import (
"flag" "flag"
"log" "log"
"net" "net"
"testing"
"time" "time"
"code.fbi.h-da.de/m.stiemerling/proto-kms/kms" "code.fbi.h-da.de/m.stiemerling/proto-kms/kms"
"github.com/google/uuid" "github.com/google/uuid"
) )
func main() { //func main() {
func TestMain(m *testing.M) {
// run a self-test if set to yes // run a self-test if set to yes
var selfTesting bool var selfTesting bool
// my own Name // my own Name
...@@ -26,7 +29,7 @@ func main() { ...@@ -26,7 +29,7 @@ func main() {
// quantumlayer so generated keys can be fetched. This is mainly to simplify // quantumlayer so generated keys can be fetched. This is mainly to simplify
// the initial setup process. // the initial setup process.
flag.BoolVar(&selfTesting, "selftesting", false, flag.BoolVar(&selfTesting, "selftesting", true,
"Will perform self-testing with second quantum link if set to true") "Will perform self-testing with second quantum link if set to true")
flag.StringVar(&udpQL1AddrString, "my-address", "[::1]:50900", flag.StringVar(&udpQL1AddrString, "my-address", "[::1]:50900",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment