Mercurial > hg > truffle
comparison mx/JUnitWrapper.java @ 15502:a26be2c9b81b
Add command line support for JUnit.
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Mon, 05 May 2014 16:07:20 +0200 |
parents | f2132fab8a6f |
children | 151fe6b1e511 |
comparison
equal
deleted
inserted
replaced
15501:008a8c905d7e | 15502:a26be2c9b81b |
---|---|
41 if (args.length == 0) { | 41 if (args.length == 0) { |
42 System.err.printf("wrong usage. provide a filename\n"); | 42 System.err.printf("wrong usage. provide a filename\n"); |
43 System.exit(1); | 43 System.exit(1); |
44 } | 44 } |
45 ArrayList<String> tests = new ArrayList<String>(1000); | 45 ArrayList<String> tests = new ArrayList<String>(1000); |
46 // add JUnit command line arguments | |
47 for (int i = 1; i < args.length; i++) { | |
48 tests.add(args[i]); | |
49 } | |
46 BufferedReader br = null; | 50 BufferedReader br = null; |
47 try { | 51 try { |
48 br = new BufferedReader(new FileReader(args[0])); | 52 br = new BufferedReader(new FileReader(args[0])); |
49 | 53 |
50 String buf; | 54 String buf; |