Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
626 B · 14 lines
Shell
123456789101112131415#!/bin/bash# Enumerates one CTS query per spec file under the checked-out suite, so# sharding has a reproducible, evenly-sized unit of work instead of hand-picked# subtrees. A file at cts/src/webgpu/a/b/c.spec.ts becomes the query# "webgpu:a,b,c:*", matching the CTS's own query convention. Prints one query# per line, sorted for a stable shard assignment across runs.set -uSELF_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"SRC_DIR="$SELF_DIR/cts/src/webgpu"find "$SRC_DIR" -name '*.spec.ts' | while IFS= read -r f; do rel="${f#"$SRC_DIR"/}" rel="${rel%.spec.ts}" echo "webgpu:${rel//\//,}:*"done | sort