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
No related branches found
No related tags found
1 merge request!9First working draft version
......@@ -7,13 +7,16 @@ import (
"flag"
"log"
"net"
"testing"
"time"
"code.fbi.h-da.de/m.stiemerling/proto-kms/kms"
"github.com/google/uuid"
)
func main() {
//func main() {
func TestMain(m *testing.M) {
// run a self-test if set to yes
var selfTesting bool
// my own Name
......@@ -26,7 +29,7 @@ func main() {
// quantumlayer so generated keys can be fetched. This is mainly to simplify
// 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")
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