run a specific test file

Hello,
Is it possible to run a specific test file like in rspec:

  rspec path/to/spec/file.rb

I have tried ./swift/utils/build-script -t
swift/test/decl/protocol/req/recursion.swift but it doesn't work.

Thanks.

Hi,

Hello,
Is it possible to run a specific test file like in rspec:

  rspec path/to/spec/file.rb

I have tried ./swift/utils/build-script -t swift/test/decl/protocol/req/recursion.swift but it doesn't work.

Check out the Testing doc:

https://github.com/apple/swift/blob/master/docs/Testing.rst#running-the-llvm-lit-based-testsuite

Wherever you ran the `build-script` you should have a `build` directory, so these 2 commands should get you to a build cycle:

    ./swift/utils/build-script
    ./llvm/utils/lit/lit.py -sv ./build/Ninja-DebugAssert/swift-macosx-x86_64/test-macosx-x86_64/decl/protocol/req/

There may be a better way, but this has worked for me so far.

Stephen

···

On Dec 7, 2015, at 8:19 AM, Arsen Gasparyan via swift-users <swift-users@swift.org> wrote: