* control_update_test.go: "+build ignore"

This commit is contained in:
Simon Zolin 2019-06-06 12:20:26 +03:00
parent 10a0873bc8
commit 22469bb83b

View File

@ -1,3 +1,5 @@
// +build ignore
package main package main
import ( import (
@ -5,7 +7,7 @@ import (
"testing" "testing"
) )
func testDoUpdate(t *testing.T) { func TestDoUpdate(t *testing.T) {
config.DNS.Port = 0 config.DNS.Port = 0
config.ourWorkingDir = "." config.ourWorkingDir = "."
u := updateInfo{ u := updateInfo{
@ -27,7 +29,7 @@ func testDoUpdate(t *testing.T) {
os.RemoveAll(u.backupDir) os.RemoveAll(u.backupDir)
} }
func testTargzFileUnpack(t *testing.T) { func TestTargzFileUnpack(t *testing.T) {
fn := "./dist/AdGuardHome_v0.95_linux_amd64.tar.gz" fn := "./dist/AdGuardHome_v0.95_linux_amd64.tar.gz"
outdir := "./test-unpack" outdir := "./test-unpack"
_ = os.Mkdir(outdir, 0755) _ = os.Mkdir(outdir, 0755)
@ -39,7 +41,7 @@ func testTargzFileUnpack(t *testing.T) {
os.RemoveAll(outdir) os.RemoveAll(outdir)
} }
func testZipFileUnpack(t *testing.T) { func TestZipFileUnpack(t *testing.T) {
fn := "./dist/AdGuardHome_v0.95_Windows_amd64.zip" fn := "./dist/AdGuardHome_v0.95_Windows_amd64.zip"
outdir := "./test-unpack" outdir := "./test-unpack"
_ = os.Mkdir(outdir, 0755) _ = os.Mkdir(outdir, 0755)