turtle-build 0.2.10

Ninja-compatible build system for high-level programming languages
Feature: Include statement
  Scenario: Use a variable in a child build file
    Given a file named "build.ninja" with:
    """
    include foo.ninja

    rule echo
      command = echo $x

    build foo: echo

    """
    And a file named "foo.ninja" with:
    """
    x = hello

    """
    When I successfully run `turtle`
    Then the stdout should contain exactly "hello"

  Scenario: Use a rule in a child build file
    Given a file named "build.ninja" with:
    """
    include foo.ninja

    build foo: hello

    """
    And a file named "foo.ninja" with:
    """
    rule hello
      command = echo hello

    """
    When I successfully run `turtle`
    Then the stdout should contain exactly "hello"