ispc-lit-tests

Codify best practices for creating portable ISPC lit tests.

322|45|Updated Dec 1, 2025
One-click install
npx skills add https://github.com/Microck/ordinary-claude-skills --skill ispc-lit-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ispc-lit-tests
Source: https://github.com/Microck/ordinary-claude-skills/tree/main/skills_all/ispc-lit-tests
Command: npx skills add https://github.com/Microck/ordinary-claude-skills --skill ispc-lit-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides concise guidelines for writing lit tests for ISPC, covering test structure, portable checks, and outputs.

Core Features & Use Cases

  • Portable test patterns and common checks
  • Guidance on organizing tests and interpreting results

Quick Start

Create a basic lit test following the recommended portable pattern.

Frequently Asked Questions about ispc-lit-tests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are best practices for writing ISPC lit tests?

ISPC lit tests should use portable check patterns, enforce --nowrap and --nostdlib flags, avoid export unless testing specific export behavior, specify exact targets and features with REQUIRES directives, and document test intent and expected outcomes for regression and diagnostic validation.

How do I structure a portable ISPC lit test?

Structure portable ISPC lit tests by organizing checks that verify compiler output and diagnostics across platforms, using platform-agnostic patterns, specifying target requirements upfront, and documenting expected results so tests validate code generation consistently.

When should I use lit tests for ISPC compiler diagnostics?

Use lit tests for ISPC when validating compiler diagnostics, regression coverage, and code-generation behavior across different targets and platforms. They verify that compiler output matches expected results and catch platform-specific behavioral differences.

Can I use lit tests to validate ISPC code generation?

Yes, lit tests validate ISPC code generation by checking compiler output against expected results with portable patterns. They verify functional requirements, platform behavior, and catch regressions in generated code across specified targets and features.

What flags should I include when testing ISPC code?

Include --nowrap and --nostdlib flags when testing ISPC to isolate test scope. Avoid export unless specifically testing export functionality, use REQUIRES to specify exact targets and features, and employ portable checks to ensure consistent validation across platforms.

How do lit tests help catch ISPC regressions?

Lit tests catch ISPC regressions by enforcing portable check patterns that verify compiler output consistency across platforms and target configurations. They document expected outcomes and validate that code generation, diagnostics, and platform behavior remain stable across changes.