-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
node: fix all of test-event-emitter (#16009)
- Loading branch information
Showing
65 changed files
with
1,732 additions
and
403 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/sh | ||
|
||
# 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 | ||
|
||
for x in $(find test/js/node/test/parallel -type f -name "test-$1*.js") | ||
do | ||
i=$((i+1)) | ||
echo ./$x | ||
if timeout 2 $PWD/build/debug/bun-debug ./$x | ||
then | ||
j=$((j+1)) | ||
git add ./$x | ||
fi | ||
echo | ||
done | ||
|
||
echo $i tests tested | ||
echo $j tests passed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.