Skip to content

Commit 8e1763d

Browse files
committed
chg test
1 parent 43ae24f commit 8e1763d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

test/Program.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ static bool test(string name, string file, bool inputCr, bool outputCr)
2626
bool shouldFail=name.StartsWith("fail");
2727

2828
JsonValue.Eol=outputCr?"\r\n":"\n";
29-
var text=load(file, inputCr);
29+
var text=load(Path.Combine(assetsDir, file), inputCr);
3030

3131
try
3232
{
@@ -69,9 +69,10 @@ static int Main(string[] args)
6969
assetsDir=args[0];
7070
Console.WriteLine("running tests...");
7171

72-
var tests=Directory.GetFiles(assetsDir, "*_test.*");
72+
var tests=File.ReadAllLines(Path.Combine(assetsDir, "testlist.txt"), Encoding.UTF8);
7373
foreach (var file in tests)
7474
{
75+
if (file.Contains("/")) continue; // skip for now
7576
string name=Path.GetFileNameWithoutExtension(file);
7677
name=name.Substring(0, name.Length-5);
7778
if (filter!=null && !name.Contains(filter)) continue;

0 commit comments

Comments
 (0)