diff --git a/Makefile b/Makefile index 0778eb7..a9a3a51 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ SHELL := /bin/bash install: - $(shell mkdir /etc/p2p-rendering && chmod +r /etc/p2p-rendering && touch /etc/p2p-rendering/ip_table.json) + go build . + ./p2p-rendering-computation --SetDefaultConfig build: go build . diff --git a/config/config_test.go b/config/config_test.go index 8233796..af4e5d9 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -10,3 +10,10 @@ func TestConfigInit(t *testing.T) { t.Error(err) } } + +func TestSetDefaults(t *testing.T) { + err := SetDefaults() + if err != nil { + t.Error(err) + } +} diff --git a/server/docker/docker_test.go b/server/docker/docker_test.go index 8ce820c..e09cc11 100644 --- a/server/docker/docker_test.go +++ b/server/docker/docker_test.go @@ -6,6 +6,7 @@ import ( ) func TestDocker(t *testing.T) { + //TODO overwrite with custom docker paths resp,err := BuildRunContainer(2,"false") if err != nil {