swiftlang/swift

[SR-2961] utils/run-test should accept the same "optimization mode" flags build-script does

Open

#45.551 geöffnet am 15. Okt. 2016

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Swift (10.719 Forks)batch import
contributor experiencegood first issuerun-testutils

Repository-Metriken

Stars
 (69.989 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 8T 17h) (510 gemergte PRs in 30 T)

Beschreibung

Previous ID SR-2961
Radar None
Original Reporter Beingessner (JIRA User)
Type Task
Votes 0
Component/s
Labels Task, StarterBug
Assignee None
Priority Medium

md5: 8f750d918784d982d243854e145f4366

Issue Description:

Currently run-test requires you to pass the build-directory for the compiler/stdlib to use for the tests, but this is tedious and requires the user to actually know what the name of the target they're building was.

A more ergonomic workflow would be to allow the same flags that build-script accepts to be passed to run-test, and have it derive the compiler from that. I'm not sure what the complete set of flags relevant flags is, but -d, -r, and -R are probably the most important. More complex scenarios can always fall-back to the current workflow.

Contributor Guide