Skip to content

Commit 3a8db0c

Browse files
Exclude tmc
1 parent 5c0091e commit 3a8db0c

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

tools/test.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ TIER1="packages/dart_logging packages/dart_node_core"
3030
TIER2="packages/reflux packages/dart_node_express packages/dart_node_ws packages/dart_node_better_sqlite3 packages/dart_node_mcp packages/dart_node_react_native packages/dart_node_react"
3131
TIER3="examples/frontend examples/markdown_editor examples/reflux_demo/web_counter examples/too_many_cooks"
3232

33+
# Exclusion list (package names to skip)
34+
EXCLUDED="too_many_cooks too_many_cooks_vscode_extension"
35+
3336
# Parse arguments
3437
TIER=""
3538
PACKAGES=()
@@ -59,6 +62,15 @@ else
5962
TEST_PATHS=("${T1[@]}" "${T2[@]}" "${T3[@]}")
6063
fi
6164

65+
# Filter out excluded packages
66+
FILTERED_PATHS=()
67+
for path in "${TEST_PATHS[@]}"; do
68+
if ! is_excluded "$path"; then
69+
FILTERED_PATHS+=("$path")
70+
fi
71+
done
72+
TEST_PATHS=("${FILTERED_PATHS[@]}")
73+
6274
mkdir -p "$LOGS_DIR"
6375

6476
# Helper functions
@@ -68,6 +80,11 @@ is_type() {
6880
[[ " $list " =~ " $name " ]]
6981
}
7082

83+
is_excluded() {
84+
local name=$(basename "$1")
85+
[[ " $EXCLUDED " =~ " $name " ]]
86+
}
87+
7188
calc_coverage() {
7289
local lcov="$1"
7390
[[ -f "$lcov" ]] || { echo "0"; return; }
@@ -153,6 +170,7 @@ run_parallel() {
153170

154171
# Main
155172
echo "Testing ${#TEST_PATHS[@]} packages (MIN_COVERAGE=${MIN_COVERAGE}%)"
173+
echo "Excluded: $EXCLUDED"
156174
echo "Logs: $LOGS_DIR/"
157175
echo ""
158176

0 commit comments

Comments
 (0)