Skip to content

Commit

Permalink
Run BitswapQC test in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeee committed Jan 5, 2022
1 parent b237d8b commit 53318b9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
15 changes: 15 additions & 0 deletions buildkite/src/Jobs/Test/Libp2pUnitTest.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,21 @@ Pipeline.build
key = "libp2p-unit-tests",
target = Size.Large,
docker = None Docker.Type
},
Command.build
Command.Config::{
commands = [
Cmd.run "chmod -R 777 src/libp2p_ipc",
Cmd.runInDocker
Cmd.Docker::
{ image=ContainerImages.minaToolchainBuster
, extraEnv = [ "GO=/usr/lib/go/bin/go" ]
} "make -C src/app/libp2p_helper test-bs-qc"
],
label = "libp2p bitswap QuickCheck",
key = "libp2p-bs-qc",
target = Size.Large,
docker = None Docker.Type
}
]
}
10 changes: 7 additions & 3 deletions src/app/libp2p_helper/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@ libp2p_helper: ../../libp2p_ipc/libp2p_ipc.capnp.go
test: ../../libp2p_ipc/libp2p_ipc.capnp.go
cd src/libp2p_helper && $(GO) test -short -timeout 15m

test-bs-qc: ../../libp2p_ipc/libp2p_ipc.capnp.go
cd src/libp2p_helper \
&& (ulimit -n 65536 || true) \
&& $(GO) test -timeout 40m -run "^TestBitswapQC$$"

test-large: ../../libp2p_ipc/libp2p_ipc.capnp.go
cd src/libp2p_helper \
&& (ulimit -n 65536 || true) \
&& $(GO) test -timeout 40m -run "^TestBitswapJumbo$$" \
&& $(GO) test -timeout 40m -run "^TestBitswapQC$$" \
&& $(GO) test -timeout 40m -run "^TestBitswapMedium$$"
&& $(GO) test -timeout 40m -run "^TestBitswapMedium$$" \
&& $(GO) test -timeout 40m -run "^TestBitswapJumbo$$"

clean:
rm -rf result ../../libp2p_ipc/libp2p_ipc.capnp.go

0 comments on commit 53318b9

Please sign in to comment.