diff --git a/cook.sh b/cook.sh
index 75f10427af610b36b88931f6be474a6372e239bc..2c798dccf38e2a97099504b3593ac3896bbe266c 100755
--- a/cook.sh
+++ b/cook.sh
@@ -50,6 +50,12 @@ function op {
             xargo build --target "$TARGET" --release $CARGOFLAGS
             popd > /dev/null
             ;;
+        test)
+            pushd build > /dev/null
+            cp -r "$ROOT/Xargo.toml" "$ROOT/libc-artifacts" .
+            xargo test --no-run --target "$TARGET" --release $CARGOFLAGS
+            popd > /dev/null
+            ;;
         clean)
             pushd build > /dev/null
             xargo clean