Skip to content

Instantly share code, notes, and snippets.

@natecook1000
Created May 10, 2016 06:22
Show Gist options
  • Save natecook1000/1da1dfc80a4aeedbde702f0e30cbd4e2 to your computer and use it in GitHub Desktop.
Save natecook1000/1da1dfc80a4aeedbde702f0e30cbd4e2 to your computer and use it in GitHub Desktop.

Build Swift first using utils/build-script -R, other settings will need different directories below. Add these lines to ~/.bashrc, call with run-test path/to/test:

LLVM_DIR="/path/to/Swift/llvm"
SWIFT_BUILD_DIR="/path/to/Swift/build/Ninja-ReleaseAssert/swift-macosx-x86_64"

run-validation-test() {
    $LLVM_DIR/utils/lit/lit.py -a --param swift_site_config=$SWIFT_BUILD_DIR/validation-test-macosx-x86_64/lit.site.cfg $1
}

run-test() {
    $LLVM_DIR/utils/lit/lit.py -a --param swift_site_config=$SWIFT_BUILD_DIR/test-macosx-x86_64/lit.site.cfg $1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment