blob: 810095e379c3ea8ee90e50a722eb235b6be5d54b [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// This file was auto-generated via go generate.
// DO NOT UPDATE MANUALLY
package main_test
import "fmt"
import "testing"
import "os"
import "v.io/x/ref/lib/modules"
import "v.io/x/ref/lib/testutil"
import "v.io/x/ref/lib/testutil/v23tests"
func init() {
modules.RegisterChild("dummy", `HACK: This is a hack to force v23 test generate to generate modules.Dispatch in TestMain.
TODO(suharshs,cnicolaou): Find a way to get rid of this dummy subprocesses.`, dummy)
}
func TestMain(m *testing.M) {
testutil.Init()
if modules.IsModulesProcess() {
if err := modules.Dispatch(); err != nil {
fmt.Fprintf(os.Stderr, "modules.Dispatch failed: %v\n", err)
os.Exit(1)
}
return
}
cleanup := v23tests.UseSharedBinDir()
r := m.Run()
cleanup()
os.Exit(r)
}
func TestV23BlessSelf(t *testing.T) {
v23tests.RunTest(t, V23TestBlessSelf)
}
func TestV23Store(t *testing.T) {
v23tests.RunTest(t, V23TestStore)
}
func TestV23Dump(t *testing.T) {
v23tests.RunTest(t, V23TestDump)
}
func TestV23RecvBlessings(t *testing.T) {
v23tests.RunTest(t, V23TestRecvBlessings)
}
func TestV23Fork(t *testing.T) {
v23tests.RunTest(t, V23TestFork)
}
func TestV23Create(t *testing.T) {
v23tests.RunTest(t, V23TestCreate)
}
func TestV23Caveats(t *testing.T) {
v23tests.RunTest(t, V23TestCaveats)
}
func TestV23ForkWithoutVDLPATH(t *testing.T) {
v23tests.RunTest(t, V23TestForkWithoutVDLPATH)
}
func TestV23ForkWithoutCaveats(t *testing.T) {
v23tests.RunTest(t, V23TestForkWithoutCaveats)
}
func TestV23Bless(t *testing.T) {
v23tests.RunTest(t, V23TestBless)
}