-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tester.java
44 lines (32 loc) · 805 Bytes
/
Tester.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import java.awt.*;
import java.awt.event.*;
class Tester {
static int faults = 0;
static void check(boolean t, String s) {
if (!t) {
faults += 1;
System.out.println("*** test failed: " + s + " *** ");
}
}
public static void main(String argv[]) {
System.out.println("setting up examples ...");
Turn.createExamples();
SPlayer.createExamples();
MPlayer.createExamples();
HPlayer.createExamples();
Server.createExamples();
MView.createExamples();
HView.createExamples();
System.out.println("testing ...");
Die.main(argv);
Turn.main(argv);
SPlayer.main(argv);
MPlayer.main(argv);
HPlayer.main(argv);
Server.main(argv);
MView.main(argv);
HView.main(argv);
System.out.println("faulty tests: " + faults);
System.exit(0);
}
}