Documentation ¶
Overview ¶
Package k3 provides convenience functions for supporting k3 toolchain. k3 is the predecessor of the ntt project.
Index ¶
- Variables
- func CLibDirs() []string
- func Compiler() string
- func Includes() []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 OssInfo() string
- func Plugins() []string
- func Runtime() string
- type Instance
- 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",
}
DefaultEnv is the default environment for k3-based test suites.
View Source
var ErrNotFound = errors.New("not found")
ErrNotFound is returned when k3 or part of k3 is not found.
Functions ¶
func Compiler ¶
func Compiler() string
Compiler returns the path to the TTCN-3 compiler. Compiler will return "mtc" if no compiler is found.
func Includes ¶
func Includes() []string
Includes returns a list of TTCN-3 include directories required by the k3 compiler.
func NewASN1Codec ¶
NewASN1Codec returns the commands required to compile ASN.1 files.
Types ¶
type Instance ¶
type TTCN3Library ¶
type TTCN3Library struct {
// contains filtered or unexported fields
}
func NewTTCN3Library ¶
func NewTTCN3Library(vars map[string]string, name string, srcs ...string) []*TTCN3Library
NewTTCN3Library returns the commands for building a TTCN-3 library.
func (*TTCN3Library) Inputs ¶
func (l *TTCN3Library) Inputs() []string
func (*TTCN3Library) Outputs ¶
func (l *TTCN3Library) Outputs() []string
func (*TTCN3Library) Run ¶
func (l *TTCN3Library) Run() error
func (*TTCN3Library) String ¶
func (l *TTCN3Library) String() string
Click to show internal directories.
Click to hide internal directories.