Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
naveen246 committed Dec 31, 2024
1 parent 2007dfc commit eec57c4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions fizztest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
(Only single thread test is supported for now, so concurrency issues are not detected)

1. This repo has the test runner.
```docker pull jayaprabhakar/fizzmo:slatedb-darwin-arm64-v1```
<br/>
```docker pull jayaprabhakar/fizzmo:slatedb-darwin-arm64-v1```

2. Run this from the slatedb-go directory which creates a file plugin.so
```docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp -e GOOS=linux -e CGO_ENABLED=1 golang:1.23.1 go build -trimpath -buildmode=plugin -gcflags="all=-N -l" -o plugin.so fizztest/fizztest_adapter.go```
<br/>
```docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp -e GOOS=linux -e CGO_ENABLED=1 golang:1.23.1 go build -trimpath -buildmode=plugin -gcflags="all=-N -l" -o plugin.so fizztest/fizztest_adapter.go```

3. Run FizzBee model checker which generates some state files in the out/run_* directory.
```fizz fizztest/KeyValueStore.fizz```
<br/>
```fizz fizztest/KeyValueStore.fizz```

4. Execute the tests
```docker run --rm -v ./plugin.so:/app/plugin.so -v ./fizztest/out/{RUN_DIR_NAME}:/data jayaprabhakar/fizzmo:slatedb-darwin-arm64-v1```
```docker run --rm -v ./plugin.so:/app/plugin.so -v ./fizztest/out/{RUN_DIR_NAME}:/data jayaprabhakar/fizzmo:slatedb-darwin-arm64-v1```

0 comments on commit eec57c4

Please sign in to comment.