chore: add usage messages to check-node.sh (#15885)

Co-authored-by: Don Isaac <don@bun.sh>
This commit is contained in:
Don Isaac
2024-12-19 14:32:25 -08:00
committed by GitHub
parent 3cbcd43f9a
commit f546a9b605

View File

@@ -1,8 +1,28 @@
#!/bin/bash
# How to use this script:
# 1. Pick a module from node's standard library (e.g. 'assert', 'fs')
# 2. Copy over relevant tests from node's parallel test suite into test/js/node/test/parallel
# 3. Run this script, e.g. `./scripts/check-node.sh fs`
# 4. Tests that passed get staged for commit
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
export NO_COLOR=1