Files
drharness/tests/test_nested_skills.sh
darthrubik 72b5f644c4 Validation, Error Handling & Full Integration
- Remove fallback behavior for malformed SKILL.md files in skill_scanner.cpp
- Now harness crashes immediately on invalid YAML frontmatter
- Updated tests to use proper YAML frontmatter
- Added new test_skill_validation.sh to verify crash behavior
- Removed test that expected fallback for invalid frontmatter
2026-05-20 16:22:08 -05:00

31 lines
536 B
Bash

#!/bin/bash
# Create test skill directories
mkdir -p skills/a/b/c
mkdir -p skills/a/b/d
cat > skills/a/b/c/SKILL.md << 'SKILL'
---
name: nested-skill-1
---
# Local Skill 1
SKILL
cat > skills/a/b/d/SKILL.md << 'SKILL'
---
name: nested-skill-2
---
# Local Skill 2
SKILL
# Run drharness with -D flag
OUTPUT=$("${DRHARNESS}" -D -F dummy.chat)
# Verify output contains the expected paths
if ! echo "$OUTPUT" | grep -q "skills/a/b/c/SKILL.md"; then
exit 1
fi
if ! echo "$OUTPUT" | grep -q "skills/a/b/d/SKILL.md"; then
exit 1
fi