blob: 7dd15f731aac7b78774d00c37d7066b23f0f33ad [file] [log] [blame]
Jiri Simsa3f4e92d2015-03-24 21:26:37 -07001// 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.
4
Todd Wang991ecf12015-02-25 17:38:37 -08005// This file was auto-generated via go generate.
6// DO NOT UPDATE MANUALLY
7
8/*
Todd Wang6ed3b6c2015-04-08 14:37:04 -07009Command vomtestgen generates test data for the vom wire protocol implementation.
10It takes as input a vdl config file, and outputs a vdl package with test cases.
11Test data is generated using this tool to make it easy to add many test cases,
12and verify them in implementations in different languages
Todd Wang991ecf12015-02-25 17:38:37 -080013
14Usage:
15 vomtestgen [flags] [vomdata]
16
17[vomdata] is the path to the vomdata input file, specified in the vdl config
18file format. It must be of the form "NAME.vdl.config", and the output vdl file
19will be generated at "NAME.vdl".
20
21The config file should export a const []any that contains all of the values that
22will be tested. Here's an example:
23 config = []any{
24 bool(true), uint64(123), string("abc"),
25 }
26
27If not specified, we'll try to find the file at its canonical location:
28 v.io/v23/vom/testdata/vomdata.vdl.config
29
30The vomtestgen flags are:
31 -exts=.vdl
32 Comma-separated list of valid VDL file name extensions.
Suharsh Sivakumar6901a2e2015-04-02 11:39:19 -070033 -max-errors=-1
Todd Wang991ecf12015-02-25 17:38:37 -080034 Stop processing after this many errors, or -1 for unlimited.
Matt Rosencrantz83b0b7f2015-03-26 16:17:01 -070035
36The global flags are:
37 -alsologtostderr=true
38 log to standard error as well as files
39 -log_backtrace_at=:0
40 when logging hits line file:N, emit a stack trace
41 -log_dir=
42 if non-empty, write log files to this directory
43 -logtostderr=false
44 log to standard error instead of files
45 -max_stack_buf_size=4292608
46 max size in bytes of the buffer to use for logging stack traces
Jiri Simsa26f1c4d2015-08-09 17:49:40 -070047 -metadata=<just specify -metadata to activate>
48 Displays metadata for the program and exits.
Matt Rosencrantz83b0b7f2015-03-26 16:17:01 -070049 -stderrthreshold=2
50 logs at or above this threshold go to stderr
51 -v=0
52 log level for V logs
Asim Shankarf32d24d2015-04-01 16:34:26 -070053 -v23.credentials=
54 directory to use for storing security credentials
55 -v23.i18n-catalogue=
56 18n catalogue files to load, comma separated
Asim Shankar8196c1e2015-04-08 22:42:18 -070057 -v23.namespace.root=[/(dev.v.io/role/vprod/service/mounttabled)@ns.dev.v.io:8101]
Asim Shankarf32d24d2015-04-01 16:34:26 -070058 local namespace root; can be repeated to provided multiple roots
59 -v23.permissions.file=map[]
Adam Sadovskya4d4a692015-04-20 11:36:49 -070060 specify a perms file as <name>:<permsfile>
Asim Shankarf32d24d2015-04-01 16:34:26 -070061 -v23.permissions.literal=
Adam Sadovskya4d4a692015-04-20 11:36:49 -070062 explicitly specify the runtime perms as a JSON-encoded access.Permissions.
Asim Shankarf32d24d2015-04-01 16:34:26 -070063 Overrides all --v23.permissions.file flags.
64 -v23.proxy=
65 object name of proxy service to use to export services across network
66 boundaries
67 -v23.tcp.address=
68 address to listen on
69 -v23.tcp.protocol=wsh
70 protocol to listen with
71 -v23.vtrace.cache-size=1024
72 The number of vtrace traces to store in memory.
73 -v23.vtrace.collect-regexp=
74 Spans and annotations that match this regular expression will trigger trace
75 collection.
76 -v23.vtrace.dump-on-shutdown=true
77 If true, dump all stored traces on runtime shutdown.
78 -v23.vtrace.sample-rate=0
79 Rate (from 0.0 to 1.0) to sample vtrace traces.
Matt Rosencrantz83b0b7f2015-03-26 16:17:01 -070080 -vmodule=
Cosmos Nicolaou6c363882015-06-02 11:51:27 -070081 comma-separated list of pattern=N settings for filename-filtered logging
82 -vpath=
83 comma-separated list of pattern=N settings for file pathname-filtered logging
Todd Wang991ecf12015-02-25 17:38:37 -080084*/
85package main