Skip to content

Commit

Permalink
chore: use new run-example method in Makefile (#775)
Browse files Browse the repository at this point in the history
  • Loading branch information
blgm authored Mar 7, 2023
1 parent ad3f8be commit 59141f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@ brokerpak-user-docs.md: *.yml

.PHONY: examples
examples: ## display available examples
$(RUN_CSB) client examples
$(RUN_CSB) examples

###### run-examples ###################################################################
PARALLEL_JOB_COUNT := $(or $(PARALLEL_JOB_COUNT), 10000)

.PHONY: run-examples
run-examples: ## run examples in yml files. Runs examples for all services by default. Set service_name and example_name to run all examples for a specific service or an specific example.
$(RUN_CSB) client run-examples --service-name="$(service_name)" --example-name="$(example_name)" -j $(PARALLEL_JOB_COUNT)
run-examples: ## run examples in yml files. Runs examples for all services by default. Set service_name and/or example_name.
$(RUN_CSB) run-examples --service-name="$(service_name)" --example-name="$(example_name)"

###### test ###################################################################

Expand Down
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,8 @@ The make targets will use this version by default.
Services definitions declare examples for each plan they provide. Those examples are then run through the whole cycle of `provision`, `bind`, `unbind`, and `delete` when running

```
terminal 1
>> make run
terminal 2
>> make run-examples
$ make examples # Lists example tests
$ make run-examples # Runs example tests
```

## Acceptance tests
Expand Down

0 comments on commit 59141f3

Please sign in to comment.