k3

package
v0.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2022 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Overview

Package k3 provides convenience functions for supporting k3 toolchain. k3 is the predecessor of the ntt project.

Index

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

func NewASN1Codec(vars map[string]string, name string, encoding string, srcs ...string) []*proc.Cmd

NewASN1Codec returns the commands required to compile ASN.1 files.

func NewPlugin added in v0.16.2

func NewPlugin(vars map[string]string, name string, srcs ...string) []*proc.Cmd

NewPlugin returns the commands for building a k3 plugin.

func NewT3XF added in v0.16.2

func NewT3XF(vars map[string]string, t3xf string, srcs []string, imports ...string) []*proc.Cmd

NewT3XF returns the commands for building a T3XF.

func Plugins added in v0.16.2

func Plugins() []string

Plugins returns a list of k3 plugins.

func Runtime added in v0.12.0

func Runtime() string

Runtime returns the path to the TTCN-3 runtime. Runtime will return "k3r" if no runtime is found.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL