File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change 350
350
# TODO: Probably this should be another 'product', but for now it's simply a phase
351
351
foundation_tests = SwiftExecutable ('TestFoundation' , [
352
352
'TestFoundation/main.swift' ,
353
- 'TestFoundation/TestNSArray.swift' ,
354
- 'TestFoundation/TestNSIndexSet.swift' ,
355
- 'TestFoundation/TestNSDictionary.swift' ,
356
- 'TestFoundation/TestNSNumber.swift' ,
357
- 'TestFoundation/TestNSPropertyList.swift' ,
358
- 'TestFoundation/TestNSRange.swift' ,
359
- 'TestFoundation/TestNSSet.swift' ,
360
- 'TestFoundation/TestNSString.swift' ,
361
- 'TestFoundation/TestNSURL.swift' ,
362
- 'TestFoundation/TestNSFileManager.swift' ,
363
- 'TestFoundation/TestNSCharacterSet.swift' ,
364
- 'TestFoundation/TestNSXMLParser.swift' ,
365
- ])
353
+ ] + glob .glob ('./TestFoundation/Test*.swift' )) # all TestSomething.swift are considered sources to the test project in the TestFoundation directory
366
354
367
355
foundation_tests .add_dependency (foundation_tests_resources )
368
356
foundation .add_phase (foundation_tests_resources )
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import sys
13
13
import os
14
14
import argparse
15
15
import json
16
+ import glob
16
17
17
18
from lib .config import Configuration
18
19
You can’t perform that action at this time.
0 commit comments