@@ -534,6 +534,11 @@ clippy_param_dedup: install_rs_check_toolchain
534534 RUSTFLAGS=" $( RUSTFLAGS) " cargo " $( CARGO_RS_CHECK_TOOLCHAIN) " clippy --all-targets \
535535 -p param_dedup -- --no-deps -D warnings
536536
537+ .PHONY : clippy_wasm_par_mq # Run clippy lints on wasm-par-mq and its examples
538+ clippy_wasm_par_mq : install_rs_check_toolchain
539+ RUSTFLAGS=" $( RUSTFLAGS) " cargo " $( CARGO_RS_CHECK_TOOLCHAIN) " clippy --all-targets --all-features \
540+ -p wasm-par-mq -p wasm-par-mq-web-tests -p wasm-par-mq-example-msm -- --no-deps -D warnings
541+
537542.PHONY : clippy_backward_compat_data # Run clippy lints on tfhe-backward-compat-data
538543clippy_backward_compat_data : install_rs_check_toolchain # the toolchain is selected with toolchain.toml
539544 @# Some old crates are x86 specific, only run in that case
@@ -559,7 +564,7 @@ clippy_test_vectors: install_rs_check_toolchain
559564clippy_all : clippy_rustdoc clippy clippy_boolean clippy_shortint clippy_integer clippy_all_targets \
560565clippy_c_api clippy_js_wasm_api clippy_tasks clippy_core clippy_tfhe_csprng clippy_zk_pok clippy_trivium \
561566clippy_versionable clippy_tfhe_lints clippy_ws_tests clippy_bench clippy_param_dedup \
562- clippy_test_vectors clippy_backward_compat_data
567+ clippy_test_vectors clippy_backward_compat_data clippy_wasm_par_mq
563568
564569.PHONY : clippy_fast # Run main clippy targets
565570clippy_fast : clippy_rustdoc clippy clippy_all_targets clippy_c_api clippy_js_wasm_api clippy_tasks \
@@ -1099,7 +1104,7 @@ test_high_level_api_gpu_fast: install_cargo_nextest # Run all the GPU tests for
10991104test_high_level_api_gpu : install_cargo_nextest # Run all the GPU tests for high_level_api
11001105 RUSTFLAGS=" $( RUSTFLAGS) " cargo nextest run --cargo-profile $(CARGO_PROFILE ) \
11011106 --test-threads=4 --features=integer,internal-keycache,gpu,zk-pok -p tfhe \
1102- -E "test(/high_level_api ::.* gpu.* /)"
1107+ -E " test(/high_level_api::.*gpu.*/)"
11031108
11041109test_list_gpu : install_cargo_nextest
11051110 RUSTFLAGS=" $( RUSTFLAGS) " cargo nextest list --cargo-profile $(CARGO_PROFILE ) \
@@ -1397,6 +1402,54 @@ test_web_js_api_parallel_firefox_ci: setup_venv
13971402 nvm use $(NODE_VERSION ) && \
13981403 $(MAKE ) test_web_js_api_parallel_firefox
13991404
1405+ WASM_PAR_MQ_TEST_DIR =utils/wasm-par-mq/web_tests
1406+
1407+ .PHONY : build_wasm_par_mq_tests # Build the wasm-par-mq test WASM package
1408+ build_wasm_par_mq_tests : install_wasm_pack
1409+ cd $(WASM_PAR_MQ_TEST_DIR ) && \
1410+ RUSTFLAGS=" $( WASM_RUSTFLAGS) " wasm-pack build --target=web --out-dir pkg
1411+
1412+ # This is an internal target, not meant to be called on its own.
1413+ run_wasm_par_mq_tests : build_wasm_par_mq_tests setup_venv
1414+ cd $(WASM_PAR_MQ_TEST_DIR ) && npm install && npm run build
1415+ source venv/bin/activate && \
1416+ python ci/webdriver.py \
1417+ --browser-path $(browser_path ) \
1418+ --driver-path $(driver_path ) \
1419+ --browser-kind $(browser_kind ) \
1420+ --server-cmd " npm run server" \
1421+ --server-workdir " $( WASM_PAR_MQ_TEST_DIR) " \
1422+ --index-path " $( WASM_PAR_MQ_TEST_DIR) /index.html" \
1423+ --id-pattern Test
1424+
1425+ test_wasm_par_mq_chrome : browser_path = "$(WEB_RUNNER_DIR ) /chrome/chrome-linux64/chrome"
1426+ test_wasm_par_mq_chrome : driver_path = "$(WEB_RUNNER_DIR ) /chrome/chromedriver-linux64/chromedriver"
1427+ test_wasm_par_mq_chrome : browser_kind = chrome
1428+
1429+ .PHONY : test_wasm_par_mq_chrome # Run wasm-par-mq tests on Chrome
1430+ test_wasm_par_mq_chrome : run_wasm_par_mq_tests
1431+
1432+ .PHONY : test_wasm_par_mq_chrome_ci # Run wasm-par-mq tests on Chrome in CI
1433+ test_wasm_par_mq_chrome_ci : setup_venv
1434+ source ~ /.nvm/nvm.sh && \
1435+ nvm install $(NODE_VERSION ) && \
1436+ nvm use $(NODE_VERSION ) && \
1437+ $(MAKE ) test_wasm_par_mq_chrome
1438+
1439+ test_wasm_par_mq_firefox : browser_path = "$(WEB_RUNNER_DIR ) /firefox/firefox/firefox"
1440+ test_wasm_par_mq_firefox : driver_path = "$(WEB_RUNNER_DIR ) /firefox/geckodriver"
1441+ test_wasm_par_mq_firefox : browser_kind = firefox
1442+
1443+ .PHONY : test_wasm_par_mq_firefox # Run wasm-par-mq tests on Firefox
1444+ test_wasm_par_mq_firefox : run_wasm_par_mq_tests
1445+
1446+ .PHONY : test_wasm_par_mq_firefox_ci # Run wasm-par-mq tests on Firefox in CI
1447+ test_wasm_par_mq_firefox_ci : setup_venv
1448+ source ~ /.nvm/nvm.sh && \
1449+ nvm install $(NODE_VERSION ) && \
1450+ nvm use $(NODE_VERSION ) && \
1451+ $(MAKE ) test_wasm_par_mq_firefox
1452+
14001453.PHONY : no_tfhe_typo # Check we did not invert the h and f in tfhe
14011454no_tfhe_typo :
14021455 @./scripts/no_tfhe_typo.sh
@@ -2045,6 +2098,7 @@ pcc_batch_2:
20452098 $(call run_recipe_with_details,check_fmt_js) # This needs to stay there, CI pipeline rely on this recipe to conditionally install Node
20462099 $(call run_recipe_with_details,clippy_test_vectors)
20472100 $(call run_recipe_with_details,check_test_vectors)
2101+ $(call run_recipe_with_details,clippy_wasm_par_mq)
20482102
20492103.PHONY : pcc_batch_3 # duration: 6'50''
20502104pcc_batch_3 :
0 commit comments