Skip to content

Rustpkg needs to be testable #5683

Closed
Closed

Description

@graydon

Sub-bug of #5677

Currently rustpkg is not testable. We need a test driver for it that sets up test packages and tries to perform various actions with them. This should include at minimum:

  • a git-sourced package (filesystem-local repo is ok)
  • a tarball / curl package (likewise)
  • building, installing, testing, running a binary
  • multiple workspaces and RUST_PATH
  • single-crate library and binary packages
  • multi-crate library and binary packages
  • dependencies between multiple packages
  • use of pkg.rs custom build logic
  • building a C library

Activity

  1. catamorphism commented on May 29, 2013

    @catamorphism
    Contributor

    We agreed to have #[test]s that shell out with program_output to call rustpkg, for now. Eventually we'll be rewriting compiletest to use workcache and can repurpose that.

  2. catamorphism commented on Jun 15, 2013

    @catamorphism
    Contributor

    #5683 partly solves this, but eventually we still want to have a test runner that doesn't spawn separate processes. In addition, tests for building a C library, custom build logic, multi-crate packages, multiple workspaces, RUST_PATH, testing, running, and tarball/curl packages still need to be added.

  3. added a commit that references this issue on Jun 15, 2013
  4. catamorphism commented on Jun 19, 2013

    @catamorphism
    Contributor

    I'm going to split this up into separate issues

  5. catamorphism commented on Jun 19, 2013

    @catamorphism
    Contributor

    C libraries: #6403
    Custom build logic: #7239
    Multi-crate packages: #7240
    Multiple workspaces: #7241
    RUST_PATH: #5682
    rust test and rust run: #7242
    tarball/curl packages: #7243

  6. catamorphism commented on Jun 19, 2013

    @catamorphism
    Contributor

    Closing in favor of individual issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-testsuiteArea: The testsuite used to check the correctness of rustcE-hardCall for participation: Hard difficulty. Experience needed to fix: A lot.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions