]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server-testcase/framework.qc
6ec1756ed643851ff2ed574822960e63a2e798f3
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server-testcase / framework.qc
1 void dprint(string s, ...) = #25;
2 string ftos(float f) = #26;
3 string vtos(vector v) = #27;
4 void error(string e) = #10;
5 float test();
6
7 void spawnfunc_worldspawn()
8 {
9         float r;
10         dprint("TESTCASE: START\n");
11         r = test();
12         if(r == 1)
13                 error("TESTCASE: PASS");
14         else if(r == 0)
15                 error("TESTCASE: FAIL");
16         else
17                 error("TESTCASE: INVALID");
18 }