Running only one unit test through build-script?

Apologies if I'm overlooking something basic. I looked through the help for both build-script and build-script-impl, and while I found flags to disable parts of the prebuilt test suites, it doesn't look like there's a way to specify running a specific unit test. Is this indeed not currently possible, or have I missed something?

Best,
Austin

Apologies if I'm overlooking something basic. I looked through the help for both build-script and build-script-impl, and while I found flags to disable parts of the prebuilt test suites, it doesn't look like there's a way to specify running a specific unit test. Is this indeed not currently possible, or have I missed something?

Hi Austin,

It is possible, the procedure is described in docs/Testing.rst:

<<<<
If you need to manually run certain tests, you can invoke LLVM's lit.py script
directly. For example::

    % ${LLVM_SOURCE_ROOT}/utils/lit/lit.py -sv
${SWIFT_BUILD_ROOT}/test-iphonesimulator-i386/Parse/

Dmitri

ยทยทยท

On Sun, Dec 13, 2015 at 10:34 PM, Austin Zheng via swift-dev <swift-dev@swift.org> wrote:

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com>*/