break into tests into steps

This commit is contained in:
zliang 2022-04-22 18:03:42 -06:00
parent 50490dece2
commit ea48d97dfe
3 changed files with 37 additions and 22 deletions

View File

@ -15,4 +15,34 @@ machamp:
type: cmd
# Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/build/ubuntu/ubuntu-20-04/keydb
builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42
command: ./build_test.sh
command: ./machamp_scripts/build.sh
tls-test:
type: cmd
parent: make-build
# Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/build/ubuntu/ubuntu-20-04/keydb
builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42
command: ./runtest --clients 2 --verbose --tls
cluster-test:
type: cmd
parent: make-build
# Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/build/ubuntu/ubuntu-20-04/keydb
builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42
command: ./runtest-cluster --tls
sentinel-test:
type: cmd
parent: make-build
# Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/build/ubuntu/ubuntu-20-04/keydb
builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42
command: ./runtest-sentinel
module-test:
type: cmd
parent: make-build
# Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/build/ubuntu/ubuntu-20-04/keydb
builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42
command: ./runtest-moduleapi
rotation-test:
type: cmd
parent: make-build
# Dockerfile for the builder img is in https://github.sc-corp.net/Snapchat/img/tree/master/build/ubuntu/ubuntu-20-04/keydb
builder_image: us.gcr.io/snapchat-build-artifacts/prod/snapchat/img/build/keydb-ubuntu-20-04@sha256:c8e6ecf3c8b385509cc4e0521d7e28d6eef1f70dc7ca0a29f26ec02344870c42
command: ./runtest-rotation

View File

@ -1,21 +0,0 @@
# make the build
git submodule init && git submodule update
make BUILD_TLS=yes -j2 KEYDB_CFLAGS='-Werror' KEYDB_CXXFLAGS='-Werror'
# gen-cert
./utils/gen-test-certs.sh
# test-tls
./runtest --clients 2 --verbose --tls
# cluster-test
./runtest-cluster --tls
# sentinel test
./runtest-sentinel
# module tests
./runtest-moduleapi
# rotation test
./runtest-rotation

6
machamp_scripts/build.sh Normal file
View File

@ -0,0 +1,6 @@
# make the build
git submodule init && git submodule update
make BUILD_TLS=yes -j2 KEYDB_CFLAGS='-Werror' KEYDB_CXXFLAGS='-Werror'
# gen-cert
./utils/gen-test-certs.sh