@@ -5,8 +5,8 @@ The project uses a `GNUmakefile` at the root. Builds run with `--jobs=$(nproc)`
|
|||||||
## Everyday targets
|
## Everyday targets
|
||||||
|
|
||||||
| Target | Purpose |
|
| Target | Purpose |
|
||||||
| ---------------------------- | -------------------------------------------------------------------------------------------------------------- |
|
| ---------------------------- | ------------------------------------------------------------------------------------------------------ |
|
||||||
| `make build` | Build `bin/probod`, `bin/prb`, and `bin/probod-bootstrap` (does not include frontend apps, codegen, and Relay) |
|
| `make build` | Build `bin/probod`, `bin/prb`, and `bin/probod-bootstrap` (does not include frontend apps and Relay) |
|
||||||
| `make build WITH_APPS=1` | Build `bin/probod`, `bin/prb`, and `bin/probod-bootstrap` (includes frontend apps, codegen, and Relay) |
|
| `make build WITH_APPS=1` | Build `bin/probod`, `bin/prb`, and `bin/probod-bootstrap` (includes frontend apps, codegen, and Relay) |
|
||||||
| `make test` | Run tests with race detection and coverage |
|
| `make test` | Run tests with race detection and coverage |
|
||||||
| `make test MODULE=./pkg/foo` | Run tests for a single module |
|
| `make test MODULE=./pkg/foo` | Run tests for a single module |
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ cmd_create() {
|
|||||||
local -a create_args=(
|
local -a create_args=(
|
||||||
--name "${VM_NAME}"
|
--name "${VM_NAME}"
|
||||||
--tty=false
|
--tty=false
|
||||||
--set ".mounts = [{\"location\": \"${REPO_ROOT}\", \"mountPoint\": \"/workspace\", \"writable\": true},{\"location\": \"/Users/${USER}/go\", \"mountPoint\": \"/home/${USER}.guest/go\", \"writable\": true}]"
|
--set ".mounts = [{\"location\": \"${REPO_ROOT}\", \"mountPoint\": \"/workspace\", \"writable\": true},{\"location\": \"${HOME}/go\", \"mountPoint\": \"/home/${USER}.guest/go\", \"writable\": true}]"
|
||||||
--mount-type virtiofs
|
--mount-type virtiofs
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -137,8 +137,8 @@ func TestBuilder_Build_Defaults(t *testing.T) {
|
|||||||
|
|
||||||
// PG config
|
// PG config
|
||||||
assert.Equal(t, "localhost:5432", cfg.Probod.Pg.Addr)
|
assert.Equal(t, "localhost:5432", cfg.Probod.Pg.Addr)
|
||||||
assert.Equal(t, "postgres", cfg.Probod.Pg.Username)
|
assert.Equal(t, "probod", cfg.Probod.Pg.Username)
|
||||||
assert.Equal(t, "postgres", cfg.Probod.Pg.Password)
|
assert.Equal(t, "probod", cfg.Probod.Pg.Password)
|
||||||
assert.Equal(t, "probod", cfg.Probod.Pg.Database)
|
assert.Equal(t, "probod", cfg.Probod.Pg.Database)
|
||||||
assert.Equal(t, int32(100), cfg.Probod.Pg.PoolSize)
|
assert.Equal(t, int32(100), cfg.Probod.Pg.PoolSize)
|
||||||
assert.Equal(t, int32(10), cfg.Probod.Pg.MinPoolSize)
|
assert.Equal(t, int32(10), cfg.Probod.Pg.MinPoolSize)
|
||||||
|
|||||||
Reference in New Issue
Block a user