Hi all,
I am trying to make a change to the stdlib and test it as well.
But I am stuck with the whole lit.py system and getting output from my test.
I am following the guide at:
Using the latest toolchain to build the stdlib and start the tests.
I am running the suggested command:
./swift/utils/build-script --preset=$PRESET_NAME toolchain_path=$TOOLCHAIN_BIN_DIR
Where my preset is a debug build that includes tests.
It works perfectly, but I can't find the output of the tests - other than the 'FAIL: ...' message. I would like to know what actually failed...
Also I would like to only run one single test and have tried setting the environment variable LIT_FILTER=stdlib/CodableTests.swift, but the build script command above still runs all stdlib tests.
I have also tried running lit.py manually as such:
llvm-project/llvm/utils/lit/lit.py -sv build/stdlib_DA_standalone/swift-macosx-x86_64/test-macosx-x86_64/stdlib
But then all the tests fail to find the StdlibUnittest
library.
I am hoping that someone could point me in the correct direction for where to look for the test output. :-)