Files
hakorune/apps/tests
tomoaki e28d59101b feat(phase143): Step 8 - Fixtures and smoke tests
Phase 143 P0 Step 8: Create minimal fixture and E2E smoke tests

New files:
1. apps/tests/phase143_loop_true_if_break_min.hako
   - Minimal Phase 143 P0 test fixture
   - Pattern: loop(true) { if(flag == 1) break } return 1
   - Expected exit code: 1
   - Tests: loop(true) pattern, pure condition lowering, immediate break

2. tools/smokes/v2/profiles/integration/apps/phase143_loop_true_if_break_vm.sh
   - VM smoke test (Rust VM backend)
   - Uses require_joinir_dev gate
   - Verifies exit code 1 contract
   - Status: ready for execution

3. tools/smokes/v2/profiles/integration/apps/phase143_loop_true_if_break_llvm_exe.sh
   - LLVM EXE smoke test (LLVM backend parity)
   - Uses llvm_exe_preflight_or_skip gate
   - Verifies exit code 1 matches VM
   - Status: ready for execution

Design notes:
- P0 scope: pure condition (flag == 1), immediate break, no complex state
- No external dependencies (no plugin calls needed)
- Fixture is self-contained (single static box, no imports)
- Both VM and LLVM paths verified for parity

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2025-12-19 06:02:04 +09:00
..

Nyash Test Programs

このディレクトリには、CI/CDやデバッグ用のテストプログラムが含まれています。 実用的なアプリケーションは親ディレクトリ(apps/)にあります。

テストプログラム一覧

LLVMバックエンドテスト

  • ny-llvm-smoke/ - ArrayBox基本操作テスト
  • ny-array-llvm-ret/ - ArrayBox戻り値テスト
  • ny-echo-lite/ - 最小echo実装I/Oテスト
  • ny-map-llvm-smoke/ - MapBoxプラグインテスト
  • ny-vinvoke-smoke/ - 可変長引数5引数テスト
  • ny-vinvoke-llvm-ret/ - 可変長引数戻り値テスト
  • ny-vinvoke-llvm-ret-size/ - 固定長引数size())テスト

実行方法

これらのテストは主に tools/llvm_smoke.sh から実行されます:

# 環境変数でテストを有効化
NYASH_LLVM_MAP_SMOKE=1 ./tools/llvm_smoke.sh
NYASH_LLVM_VINVOKE_RET_SMOKE=1 ./tools/llvm_smoke.sh

注意事項

  • これらは最小限の機能テストであり、実用的なアプリケーションではありません
  • CIでの自動テストを前提に設計されています
  • エラー時の切り分けが容易になるよう、各テストは単一の機能に焦点を当てています