Jiri Simsa | 3f4e92d | 2015-03-24 21:26:37 -0700 | [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. |
| 4 | |
Todd Wang | 991ecf1 | 2015-02-25 17:38:37 -0800 | [diff] [blame] | 5 | // This file was auto-generated via go generate. |
| 6 | // DO NOT UPDATE MANUALLY |
| 7 | |
| 8 | /* |
Todd Wang | 6ed3b6c | 2015-04-08 14:37:04 -0700 | [diff] [blame] | 9 | Command vomtestgen generates test data for the vom wire protocol implementation. |
| 10 | It takes as input a vdl config file, and outputs a vdl package with test cases. |
| 11 | Test data is generated using this tool to make it easy to add many test cases, |
| 12 | and verify them in implementations in different languages |
Todd Wang | 991ecf1 | 2015-02-25 17:38:37 -0800 | [diff] [blame] | 13 | |
| 14 | Usage: |
| 15 | vomtestgen [flags] [vomdata] |
| 16 | |
| 17 | [vomdata] is the path to the vomdata input file, specified in the vdl config |
| 18 | file format. It must be of the form "NAME.vdl.config", and the output vdl file |
| 19 | will be generated at "NAME.vdl". |
| 20 | |
| 21 | The config file should export a const []any that contains all of the values that |
| 22 | will be tested. Here's an example: |
| 23 | config = []any{ |
| 24 | bool(true), uint64(123), string("abc"), |
| 25 | } |
| 26 | |
| 27 | If not specified, we'll try to find the file at its canonical location: |
| 28 | v.io/v23/vom/testdata/vomdata.vdl.config |
| 29 | |
| 30 | The vomtestgen flags are: |
| 31 | -exts=.vdl |
| 32 | Comma-separated list of valid VDL file name extensions. |
Suharsh Sivakumar | 6901a2e | 2015-04-02 11:39:19 -0700 | [diff] [blame] | 33 | -max-errors=-1 |
Todd Wang | 991ecf1 | 2015-02-25 17:38:37 -0800 | [diff] [blame] | 34 | Stop processing after this many errors, or -1 for unlimited. |
Matt Rosencrantz | 83b0b7f | 2015-03-26 16:17:01 -0700 | [diff] [blame] | 35 | |
| 36 | The 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 Simsa | 26f1c4d | 2015-08-09 17:49:40 -0700 | [diff] [blame] | 47 | -metadata=<just specify -metadata to activate> |
| 48 | Displays metadata for the program and exits. |
Matt Rosencrantz | 83b0b7f | 2015-03-26 16:17:01 -0700 | [diff] [blame] | 49 | -stderrthreshold=2 |
| 50 | logs at or above this threshold go to stderr |
| 51 | -v=0 |
| 52 | log level for V logs |
Asim Shankar | f32d24d | 2015-04-01 16:34:26 -0700 | [diff] [blame] | 53 | -v23.credentials= |
| 54 | directory to use for storing security credentials |
| 55 | -v23.i18n-catalogue= |
| 56 | 18n catalogue files to load, comma separated |
Asim Shankar | 8196c1e | 2015-04-08 22:42:18 -0700 | [diff] [blame] | 57 | -v23.namespace.root=[/(dev.v.io/role/vprod/service/mounttabled)@ns.dev.v.io:8101] |
Asim Shankar | f32d24d | 2015-04-01 16:34:26 -0700 | [diff] [blame] | 58 | local namespace root; can be repeated to provided multiple roots |
| 59 | -v23.permissions.file=map[] |
Adam Sadovsky | a4d4a69 | 2015-04-20 11:36:49 -0700 | [diff] [blame] | 60 | specify a perms file as <name>:<permsfile> |
Asim Shankar | f32d24d | 2015-04-01 16:34:26 -0700 | [diff] [blame] | 61 | -v23.permissions.literal= |
Adam Sadovsky | a4d4a69 | 2015-04-20 11:36:49 -0700 | [diff] [blame] | 62 | explicitly specify the runtime perms as a JSON-encoded access.Permissions. |
Asim Shankar | f32d24d | 2015-04-01 16:34:26 -0700 | [diff] [blame] | 63 | 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 Rosencrantz | 83b0b7f | 2015-03-26 16:17:01 -0700 | [diff] [blame] | 80 | -vmodule= |
Cosmos Nicolaou | 6c36388 | 2015-06-02 11:51:27 -0700 | [diff] [blame] | 81 | 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 Wang | 991ecf1 | 2015-02-25 17:38:37 -0800 | [diff] [blame] | 84 | */ |
| 85 | package main |