Skip to content

Commit

Permalink
Speed up slow test.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 635014612
Change-Id: Ifb7fe174827f59647bb254a3ece25abbd57962ca
  • Loading branch information
yuvaltassa authored and Copybara-Service committed May 18, 2024
1 parent f6f9ff5 commit 875823b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions test/sample/testspeed_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ test_model() {
local iterations=10
# for particularly slow models, only run 2 steps under ASAN, or skip.
if [[ ${TESTSPEED_ASAN:-0} != 0 ]]; then
if [[ "$model" == */composite/particle.xml ]]; then
# this test can take several minutes under ASAN
if [[ "$model" == */composite/particle.xml ||
"$model" == */replicate/bunnies.xml ||
"$model" == */replicate/leaves.xml ||
"$model" == */replicate/particle.xml
]]; then
# these tests can take several minutes under ASAN
return 0
fi
if [[ "$model" == */benchmark/testdata/humanoid200.xml ||
Expand Down
3 changes: 2 additions & 1 deletion test/user/testdata/shark_22_ascii_fTetWild.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
<geom name="floor" size="1 1 .05" type="plane" material="grid" condim="3"/>
<light directional="false" diffuse=".2 .2 .2" specular="0 0 0" pos="0 0 5" dir="0 0 -1"/>
<flexcomp name="shark" type="gmsh" dim="3" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 .3" mass="10" scale="1 1 1" file="shark_22_ascii_fTetWild.msh">
<edge equality="true"/>
<edge equality="true"/>
<contact selfcollide="none"/>
</flexcomp>
</worldbody>
</mujoco>
1 change: 1 addition & 0 deletions test/user/testdata/shark_22_binary_fTetWild.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<light directional="false" diffuse=".2 .2 .2" specular="0 0 0" pos="0 0 5" dir="0 0 -1"/>
<flexcomp name="shark" type="gmsh" dim="3" rgba=".8 .2 .2 1" radius="0.001" pos="0 0 0.3" mass="10" scale="1 1 1" file="shark_22_binary_fTetWild.msh">
<edge equality="true"/>
<contact selfcollide="none"/>
</flexcomp>
</worldbody>
</mujoco>

0 comments on commit 875823b

Please sign in to comment.