Skip to content

Commit

Permalink
vcsim: untangle container/VM to allow reuse of container logic for hosts
Browse files Browse the repository at this point in the history
Refactors the container logic out of the simulator VM file so it can be
used for both VM and host container backings.

The following file structure is now in place:
* container.go - wraps docker operation execs
* container_virtual_machine.go - orchestration of containers for VMs
* container_host_system.go - orchestration of containers for Hosts
* container_xxx_test.go - test for container backed VMs/Hosts

Add CGO_ENABLED=1 to test command with -race
  • Loading branch information
hickeng committed Aug 7, 2023
1 parent ba843e5 commit fdb4d84
Show file tree
Hide file tree
Showing 7 changed files with 849 additions and 434 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ endif

.PHONY: go-test
go-test: ## Runs go unit tests with race detector enabled
GORACE=$(GORACE) $(GO) test \
GORACE=$(GORACE) CGO_ENABLED=1 $(GO) test \
-count $(TEST_COUNT) \
-race \
-timeout $(TEST_TIMEOUT) \
Expand Down
Loading

0 comments on commit fdb4d84

Please sign in to comment.