Documentation
¶
Overview ¶
Package k3 provides convenience functions for supporting k3 toolchain. k3 is the predecessor of the ntt project.
Index ¶
- Variables
- func Compiler() string
- func DataDir() string
- func Includes() []string
- func InstallDir() string
- func NewASN1Codec(vars map[string]string, name string, encoding string, srcs ...string) []*proc.Cmd
- func NewPlugin(vars map[string]string, name string, srcs ...string) []*proc.Cmd
- func NewT3XF(vars map[string]string, t3xf string, srcs []string, imports ...string) []*proc.Cmd
- func Plugins() []string
- func Runtime() string
- type TTCN3Library
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultEnv = map[string]string{ "CXX": "g++", "CC": "gcc", "ASN1C": "asn1", "ASN1CFLAGS": "-reservedWords ffs -c -charIntegers -listingFile -messageFormat emacs -noDefines -valuerefs -debug -root -soed", "ASN2TTCN": "asn1tottcn3", "OSSINFO": filepath.Join(DataDir(), "asn1"), "K3C": Compiler(), "K3R": Runtime(), }
DefaultEnv is the default environment for k3-based test suites.
Functions ¶
func Compiler ¶ added in v0.12.0
func Compiler() string
Compiler returns the path to the TTCN-3 compiler. Compiler will return "mtc" if no compiler is found.
func DataDir ¶
func DataDir() string
DataDir returns the directory where additional files are installed (/usr/share/k3).
func Includes ¶ added in v0.16.2
func Includes() []string
Includes returns a list of TTCN-3 include directories required by the k3 compiler.
func InstallDir ¶ added in v0.16.2
func InstallDir() string
InstallDir returns the directory where k3 is probably installed.
func NewASN1Codec ¶ added in v0.16.2
NewASN1Codec returns the commands required to compile ASN.1 files.
Types ¶
type TTCN3Library ¶ added in v0.16.2
type TTCN3Library struct {
// contains filtered or unexported fields
}
func NewTTCN3Library ¶ added in v0.16.2
func NewTTCN3Library(vars map[string]string, name string, srcs ...string) []*TTCN3Library
NewTTCN3Library returns the commands for building a TTCN-3 library.
func (*TTCN3Library) Inputs ¶ added in v0.16.2
func (l *TTCN3Library) Inputs() []string
func (*TTCN3Library) Outputs ¶ added in v0.16.2
func (l *TTCN3Library) Outputs() []string
func (*TTCN3Library) Run ¶ added in v0.16.2
func (l *TTCN3Library) Run() error
func (*TTCN3Library) String ¶ added in v0.16.2
func (l *TTCN3Library) String() string
Directories
¶
| Path | Synopsis |
|---|---|
|
Package log supports parsing K3 runtime log files.
|
Package log supports parsing K3 runtime log files. |
|
Package t3xf provides routines for decoding and loading t3xf encoded files.
|
Package t3xf provides routines for decoding and loading t3xf encoded files. |
Click to show internal directories.
Click to hide internal directories.