Skiplist Generator (skipgen) is a program that will generate a skiplist given a yaml file and optionally a board name, branch name, and environment name.
Download release for your OS and architecture at https://github.com/Linaro/skipgen/releases. Extract and run the 'skipfile' binary.
skipgen [--board <boardname>] [--branch <branchname>] [--environment <environmentname] [--version] <skipfile.yaml>
$ skipgen examples/skipfile.yaml
seccomp_bpf
$ skipgen --board x15 --environment production --branch=4.4 examples/skipfile.yaml
test_verifier
test_tag
test_maps
test_lru_map
test_lpm_map
test_progs
test_align
...
- Install golang. i.e. on debian-based systems, run
apt-get install golang. - Set GOPATH. See https://github.com/golang/go/wiki/SettingGOPATH.
- Install go dependencies.
go get -t ./... - install golint.
go get -u github.com/golang/lint/golintDon't forget to setup the path PATH="$GOPATH/bin:$PATH" - make skipgen
./skipgen
Print usage:
$ go run skipgen.go
Get default skiplist:
$ go run skipgen.go examples/skipfile.yaml
Get board and environment-specific skiplist:
$ go run skipgen.go --board x15 --environment productionexamples/skipfile.yaml
skipgen includes unit tests that can be run using go test. The make test
target will also run 'go vet' and 'golint'. golint may need to be installed
(go get -u github.com/golang/lint/golint)
If travis has a github api key provided (see goreleaser docs), it will upload the binaries to the release after making a release in github (or pushing a tag). Otherwise, after tagging, a release can be made by running the following, where 'v0.1.2' is the recent tag:
export GITHUB_TOKEN=xxxxxxxxxxyyyyyyyyzzzzzzzzz
make clean
TRAVIS_TAG=v0.1.2 goreleaser