Cosmos Nicolaou | b1c49cd | 2015-02-24 15:24:08 -0800 | [diff] [blame] | 1 | // Copyright 2015 The Vanadium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
Jiri Simsa | e7fc94d | 2015-02-25 12:12:07 -0800 | [diff] [blame] | 4 | |
Cosmos Nicolaou | 728a57e | 2015-02-05 13:04:08 -0800 | [diff] [blame] | 5 | // This file was auto-generated via go generate. |
| 6 | // DO NOT UPDATE MANUALLY |
Todd Wang | 9587390 | 2015-05-22 14:21:30 -0700 | [diff] [blame] | 7 | |
Cosmos Nicolaou | 728a57e | 2015-02-05 13:04:08 -0800 | [diff] [blame] | 8 | package main_test |
| 9 | |
Todd Wang | 9587390 | 2015-05-22 14:21:30 -0700 | [diff] [blame] | 10 | import ( |
| 11 | "os" |
| 12 | "testing" |
Cosmos Nicolaou | 728a57e | 2015-02-05 13:04:08 -0800 | [diff] [blame] | 13 | |
Todd Wang | 9587390 | 2015-05-22 14:21:30 -0700 | [diff] [blame] | 14 | "v.io/x/ref/test" |
| 15 | "v.io/x/ref/test/modules" |
| 16 | "v.io/x/ref/test/v23tests" |
| 17 | ) |
Cosmos Nicolaou | 728a57e | 2015-02-05 13:04:08 -0800 | [diff] [blame] | 18 | |
| 19 | func TestMain(m *testing.M) { |
Cosmos Nicolaou | 1381f8a | 2015-03-13 09:40:34 -0700 | [diff] [blame] | 20 | test.Init() |
Todd Wang | 9587390 | 2015-05-22 14:21:30 -0700 | [diff] [blame] | 21 | modules.DispatchAndExitIfChild() |
Cosmos Nicolaou | 82d00d8 | 2015-02-10 21:31:00 -0800 | [diff] [blame] | 22 | cleanup := v23tests.UseSharedBinDir() |
| 23 | r := m.Run() |
| 24 | cleanup() |
Cosmos Nicolaou | 82d00d8 | 2015-02-10 21:31:00 -0800 | [diff] [blame] | 25 | os.Exit(r) |
Cosmos Nicolaou | 728a57e | 2015-02-05 13:04:08 -0800 | [diff] [blame] | 26 | } |
| 27 | |
| 28 | func TestV23BlessSelf(t *testing.T) { |
Cosmos Nicolaou | 4a77c19 | 2015-02-08 15:29:18 -0800 | [diff] [blame] | 29 | v23tests.RunTest(t, V23TestBlessSelf) |
Cosmos Nicolaou | 728a57e | 2015-02-05 13:04:08 -0800 | [diff] [blame] | 30 | } |
James Ring | 5721f3d | 2015-02-12 19:53:20 -0800 | [diff] [blame] | 31 | |
| 32 | func TestV23Store(t *testing.T) { |
| 33 | v23tests.RunTest(t, V23TestStore) |
| 34 | } |
| 35 | |
| 36 | func TestV23Dump(t *testing.T) { |
| 37 | v23tests.RunTest(t, V23TestDump) |
| 38 | } |
| 39 | |
Suharsh Sivakumar | 4bbe8ed | 2015-04-09 14:21:44 -0700 | [diff] [blame] | 40 | func TestV23GetRecognizedRoots(t *testing.T) { |
| 41 | v23tests.RunTest(t, V23TestGetRecognizedRoots) |
| 42 | } |
| 43 | |
| 44 | func TestV23GetPeermap(t *testing.T) { |
| 45 | v23tests.RunTest(t, V23TestGetPeermap) |
| 46 | } |
| 47 | |
James Ring | 5721f3d | 2015-02-12 19:53:20 -0800 | [diff] [blame] | 48 | func TestV23RecvBlessings(t *testing.T) { |
| 49 | v23tests.RunTest(t, V23TestRecvBlessings) |
| 50 | } |
| 51 | |
Asim Shankar | 2a32dd2 | 2015-05-29 15:45:22 -0700 | [diff] [blame] | 52 | func TestV23RecvBlessingsInteractive(t *testing.T) { |
| 53 | v23tests.RunTest(t, V23TestRecvBlessingsInteractive) |
| 54 | } |
| 55 | |
James Ring | 5721f3d | 2015-02-12 19:53:20 -0800 | [diff] [blame] | 56 | func TestV23Fork(t *testing.T) { |
| 57 | v23tests.RunTest(t, V23TestFork) |
| 58 | } |
| 59 | |
| 60 | func TestV23Create(t *testing.T) { |
| 61 | v23tests.RunTest(t, V23TestCreate) |
| 62 | } |
Suharsh Sivakumar | 1d61f64 | 2015-02-17 20:56:14 -0800 | [diff] [blame] | 63 | |
| 64 | func TestV23Caveats(t *testing.T) { |
| 65 | v23tests.RunTest(t, V23TestCaveats) |
| 66 | } |
Asim Shankar | 918190d | 2015-02-18 17:12:43 -0800 | [diff] [blame] | 67 | |
| 68 | func TestV23ForkWithoutVDLPATH(t *testing.T) { |
| 69 | v23tests.RunTest(t, V23TestForkWithoutVDLPATH) |
| 70 | } |
Asim Shankar | a0bba46 | 2015-02-20 22:50:51 -0800 | [diff] [blame] | 71 | |
| 72 | func TestV23ForkWithoutCaveats(t *testing.T) { |
| 73 | v23tests.RunTest(t, V23TestForkWithoutCaveats) |
| 74 | } |
| 75 | |
| 76 | func TestV23Bless(t *testing.T) { |
| 77 | v23tests.RunTest(t, V23TestBless) |
| 78 | } |
Asim Shankar | 5fbe326 | 2015-03-11 23:03:51 -0700 | [diff] [blame] | 79 | |
Asim Shankar | 80277d0 | 2015-03-31 12:57:06 -0700 | [diff] [blame] | 80 | func TestV23AddBlessingsToRoots(t *testing.T) { |
| 81 | v23tests.RunTest(t, V23TestAddBlessingsToRoots) |
| 82 | } |
| 83 | |
| 84 | func TestV23AddKeyToRoots(t *testing.T) { |
| 85 | v23tests.RunTest(t, V23TestAddKeyToRoots) |
Asim Shankar | 5fbe326 | 2015-03-11 23:03:51 -0700 | [diff] [blame] | 86 | } |