Files
bun.sh/scripts/check-node-all.sh
Meghan Denny 2d481e7bcb fix more node:stream (#16385)
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2025-01-16 22:40:39 -08:00

35 lines
525 B
Bash
Executable File

#!/bin/sh
i=0
j=0
if [ -z "$1" ]
then
echo "Usage: $0 <module-name>"
exit 1
fi
case $1 in
-h|--help)
echo "Usage: $0 <module-name>"
echo "Run all parallel tests for a single module in node's standard library"
exit 0
;;
esac
export BUN_DEBUG_QUIET_LOGS=1
for x in $(find test/js/node/test/parallel -type f -name "test-$1*.js" | sort)
do
i=$((i+1))
echo ./$x
if timeout 2 $PWD/build/debug/bun-debug ./$x
then
j=$((j+1))
git add $x
fi
done
echo $i tests tested
echo $j tests passed