From 6377f6752d3a6559165e7c22f540ba4eb9370664 Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Mon, 14 Oct 2024 12:36:23 +0200 Subject: [PATCH] Add test --- pyodide_build/tests/test_pywasmcross.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pyodide_build/tests/test_pywasmcross.py b/pyodide_build/tests/test_pywasmcross.py index 23a5f77..8275817 100644 --- a/pyodide_build/tests/test_pywasmcross.py +++ b/pyodide_build/tests/test_pywasmcross.py @@ -262,3 +262,11 @@ def test_is_link_cmd(): assert is_link_cmd(["test.so"]) assert is_link_cmd(["test.so.1.2.3"]) assert not is_link_cmd(["test", "test.a", "test.o", "test.c", "test.cpp", "test.h"]) + + +def test_handle_command_cargo(build_args): + assert handle_command_generate_args(["cargo", "build"], build_args) == [ + "cargo", + "-Zbuild-std", + "build", + ]