@@ -36,27 +36,35 @@ tests_slow:
3636tests_all :
3737 @${PYTHON} -m pytest -v --capture=tee-sys ${TEST_DIR}
3838
39+ _example_cleanup :
40+ @simulaqron stop 2> /dev/null || true
41+ @sleep 2
42+
3943examples :
4044 @echo " --- new-sdk examples ---"
4145 @cd examples/new-sdk/corrRNG && timeout 90 bash run.sh
46+ @$(MAKE ) _example_cleanup
4247 @cd examples/new-sdk/extendGHZ && timeout 90 bash run.sh
48+ @$(MAKE ) _example_cleanup
4349 @cd examples/new-sdk/teleport && timeout 90 bash run.sh
50+ @$(MAKE ) _example_cleanup
4451 @cd examples/new-sdk/classical-client-server && timeout 90 bash run.sh
52+ @$(MAKE ) _example_cleanup
4553 @cd examples/new-sdk/template-quantum-local && timeout 90 bash run.sh
54+ @$(MAKE ) _example_cleanup
4655 @cd examples/new-sdk/midCircuitLogic && timeout 90 bash run.sh
47- @echo " --- nativeMode examples ---"
48- @cd examples/nativeMode/corrRNG && timeout 90 bash run.sh
49- @cd examples/nativeMode/extendGHZ && timeout 90 bash run.sh
50- @cd examples/nativeMode/teleport && timeout 90 bash run.sh
51- @cd examples/nativeMode/graphState && timeout 90 bash run.sh
52- @echo " All examples passed."
56+ @$(MAKE ) _example_cleanup
57+ @echo " All new sdk examples passed."
5358
5459install : test-deps
5560 @$(PYTHON ) -m pip install -e . ${PIP_FLAGS}
5661
5762_verified :
5863 @echo " SimulaQron is verified!"
5964
65+ ci : lint tests tests_slow examples
66+ @echo " All CI checks passed."
67+
6068verify : clean python-deps lint tests _verified
6169
6270_remove_build :
@@ -75,4 +83,4 @@ _build:
7583
7684build : _clear_build _build
7785
78- .PHONY : clean lint python-deps tests tests_slow tests_all examples full_tests verify build
86+ .PHONY : clean lint python-deps tests tests_slow tests_all examples _example_cleanup ci full_tests verify build
0 commit comments