From 1ac3124550cfe910c09ade3a53b79713dfb0de63 Mon Sep 17 00:00:00 2001 From: Francesco Mazzoli Date: Wed, 9 Aug 2023 11:41:04 +0100 Subject: [PATCH] Update README.md with local testing instructions --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index f8f3f28e..a457ffff 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,20 @@ Will build all the artifacts apart from the Kernel module. The output will be in If you want to build outside the Alpine container (e.g. if you wan to do `go run` as I suggest below), you need to have the right Go in your PATH. On ETD dev boxes this can be accomplished by adding `/opt/go1.18.4/bin` to your path. +## Testing + +CI is currently very long (~40 mins for the "quick" tests, ~3h for the full tests). Therefore you might have to wait a while for it. + +If you have a small fix and want to push to `main`, run at least + +``` +% go run . -filter 'direct' -short -build-type sanitized +``` + +In `go/eggstests`. This takes around 3 minutes, and will surface gross mistakes. Note that this does _not_ test the kernel module (CI does). + +TODO easy way to run kmod tests locally (just requires a bit of reworking of ci.sh, plus pushing Ubuntu base image to artifactory). + ## Playing with a local EggsFS instance ```