Commit 48db9df3 authored by Drew's avatar Drew

Restore warning behavior

Add test coverage so we don't break this again

Close #25
parent 0a2cf67f
Pipeline #845 passed with stage
......@@ -52,6 +52,7 @@ final class SwiftBuildToolConfig: Tool {
static let SwiftPath = "swiftc-path"
static let XCTestSupport = "xctestify"
static let XCTestStrict = "xctest-strict"
static let Overlays = "overlays"
}
enum OutputType {
......@@ -85,7 +86,8 @@ final class SwiftBuildToolConfig: Tool {
Keys.LinkWithProduct,
Keys.SwiftPath,
Keys.XCTestSupport,
Keys.XCTestStrict]
Keys.XCTestStrict,
Keys.Overlays]
for (key, _) in try! task.mergedConfig() {
if !knownOptions.contains(key) {
print("Warning: unknown option \(key) for task.")
......@@ -97,6 +99,7 @@ final class SwiftBuildToolConfig: Tool {
}
func run(task: Task) {
validateOptions(task)
//create the working directory
let workDirectory = ".atllbuild/"
let manager = NSFileManager.defaultManager()
......
......@@ -24,6 +24,13 @@ if $ATBUILD atbuild --help; then
exit 1
fi
echo "****************WARNING TEST*********************"
cd $DIR/tests/fixtures/overlay
$ATBUILD --use-overlay got-overlay > /tmp/warnings.txt
grep "unknown option germany" /tmp/warnings.txt
echo "*****************XCS TEST**********************"
cd $DIR/tests/fixtures/xcs && $ATBUILD run-tests
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment