Comments (4)
Maybe something like the following:
for pkg in $(go list ./...)
do
localpkg=$(echo $pkg | sed -e 's:github.com/cilium/tetragon/::')
localtestfile=$(echo $localpkg | sed -e 's:/:.:g')
echo go test -c ./$localpkg -o go-tests/$localtestfile
done
from tetragon.
Are these all or only some? We should build all test binaries like this in a step other than make test (that one would run with sudo), maybe just in make itself or one of its dependencies.
Right, it's non-exhaustive at the moment. I think the "right" way to do this would probably be with a glob in the Makefile that compiles all tests (rather than hard-coding each one which, as you've pointed out is very error-prone as new tests are added). Then we would have another target as you suggest that would run each test (also using a glob).
A PR would be much appreciated!
from tetragon.
We should build the test binaries with go test -c in a make step that doesn't require 'sudo', and then only run those test binaries with sudo.
That would be great!
We can even support both options and keep the one above for the people that want it.
Are these all or only some? We should build all test binaries like this in a step other than make test (that one would run with sudo), maybe just in make itself or one of its dependencies.
I don't think that's all. I think a better approach would be to use go list ./...
to get all the packages, and then (somehow) build the proper binaries.
from tetragon.
Above ☝🏼 exists now (test-compile target), so closing this.
from tetragon.
Related Issues (20)
- docs: Deploy demo application has issue on an ARM environment
- K8s Spec Mistmatch for uprobes HOT 2
- docs: demo application `xwing` doesn't have `vi` HOT 1
- docs(Advanced Process execution): `/bin/busybox` is not executed by `id` HOT 4
- TracingPolicies do not get applied in WSL2 HOT 3
- Run multi-kernel Go tests (vmtests) on arm64
- Update code generation scripts with k8s v1.30 libraries HOT 1
- Improve metrics library to enforce best practices
- Documentation: broken links automatic report HOT 1
- v1.1.0 release
- Tetragon with ociHookSetup.enabled cannot start in a namespace other than kube-system
- Enable users to add namespace exceptions in case OCI hook fails
- Tetragon based file integrity monitoring (FIM) HOT 7
- tetragon: better identification of kernel threads HOT 1
- Documentation: broken links automatic report HOT 1
- Tetragon is not showing process exec ancestors HOT 1
- sensor manager: allow concurrent listing with loading.
- BTF: fix validation warnings
- Tetragon Go Test failing on actuated-arm64-4cpu-8gb: github.com/cilium/tetragon/pkg/sensors/tracing: TestTraceKernelModule HOT 1
- I think that we currently cannot have a TracingPolicy and a TracingPolicyNamespaced with the same name.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tetragon.