added make install

This commit is contained in:
2021-05-09 05:23:25 +04:00
parent a1fd29ec45
commit e34e570704
3 changed files with 10 additions and 1 deletions

View File

@@ -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 .

View File

@@ -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)
}
}

View File

@@ -6,6 +6,7 @@ import (
)
func TestDocker(t *testing.T) {
//TODO overwrite with custom docker paths
resp,err := BuildRunContainer(2,"false")
if err != nil {