Skip to content

Organize and clean up Lua test suite - #25

Open
seanward wants to merge 12 commits into
lua-vm-redesign-docsfrom
register-window-implementation
Open

seanward wants to merge 12 commits into
lua-vm-redesign-docsfrom
register-window-implementation

Conversation

@seanward

@seanward seanward commented Jul 8, 2025

Copy link
Copy Markdown
Contributor

This PR organizes the Lua test suite for the Ferrous Lua VM implementation, focusing on features needed for Redis integration.

Changes

1. Organized Test Structure

  • Created logical directory structure:
    • tests/lua/basic/ - Basic language features
    • tests/lua/tables/ - Table operations
    • tests/lua/functions/ - Function and closure tests
    • tests/lua/control/ - Control flow tests
    • tests/lua/stdlib/ - Standard library tests

2. Cleaned Up Redundant Tests

  • Removed ~100 redundant and unused test files
  • Consolidated tests into focused, single-purpose files
  • Removed misleading tests that gave false indications of implementation state

3. Added Redis-Specific Tests

  • Added test for Redis-specific Lua functionality
  • Focused on features needed for Redis integration (removed tests for unused features like modules)

4. Documentation & Roadmap

  • Added README files explaining the purpose of each test directory
  • Created test_roadmap.md documenting implementation state and priorities
  • Added file headers that clarify test purpose and current implementation status

5. Improved Test Runner

  • Enhanced test_suite.sh with better output formatting
  • Added section summaries and clearer status reporting
  • Simplified test classification as pass/fail

This PR makes no changes to the VM implementation itself - it only organizes and cleans up the test suite to provide a clear view of the current implementation status and a roadmap for completing the Redis-focused Lua implementation.


Created by Maestro on behalf of Sean Ward

@seanward seanward changed the title [WIP] Register Window Implementation for Lua VM Register Window Implementation: Closure and Upvalue Support Jul 10, 2025
@seanward seanward changed the title Register Window Implementation: Closure and Upvalue Support Add Lua VM register usage conventions documentation Jul 10, 2025
@seanward seanward changed the title Add Lua VM register usage conventions documentation Fix C function interface scope issues in Lua VM Jul 11, 2025
@seanward seanward changed the title Fix C function interface scope issues in Lua VM Update register window implementation with error handling improvements Jul 12, 2025
@seanward seanward changed the title Update register window implementation with error handling improvements Fix TFORLOOP Implementation According to Lua 5.1 Spec Jul 13, 2025
@seanward seanward changed the title Fix TFORLOOP Implementation According to Lua 5.1 Spec Architectural Pivot: From Register Windows to Unified Stack Model Jul 13, 2025
@seanward seanward changed the title Architectural Pivot: From Register Windows to Unified Stack Model Implement Lua VM with Unified Stack Architecture Jul 13, 2025
@seanward seanward changed the title Implement Lua VM with Unified Stack Architecture Fix string interning, table field access, and stdlib initialization Jul 15, 2025
@seanward seanward changed the title Fix string interning, table field access, and stdlib initialization Fix register management and stack growth in Lua VM Jul 16, 2025
@seanward seanward changed the title Fix register management and stack growth in Lua VM Enhance Lua VM documentation and implementation Jul 17, 2025
@seanward seanward changed the title Enhance Lua VM documentation and implementation Organize and clean up Lua test suite Jul 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants