Skip to content

Commit

Permalink
Use spawn for all unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dahlgren committed May 10, 2021
1 parent 92bf7f0 commit 0535d14
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 10 deletions.
3 changes: 2 additions & 1 deletion addons/arrays/test.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ SCRIPT(test-arrays);
LOG("=== Testing Arrays ===");

{
call compile preprocessFileLineNumbers format ["\x\cba\addons\arrays\test_%1.sqf", _x];
private _test = 0 spawn compile preprocessFileLineNumbers format ["\x\cba\addons\arrays\test_%1.sqf", _x];
waitUntil { scriptDone _test };
} forEach TESTS;

nil;
3 changes: 2 additions & 1 deletion addons/common/test.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ SCRIPT(test-common);
LOG("=== Testing Common ===");

{
call compile preprocessFileLineNumbers format ["\x\cba\addons\common\test_%1.sqf", _x];
private _test = 0 spawn compile preprocessFileLineNumbers format ["\x\cba\addons\common\test_%1.sqf", _x];
waitUntil { scriptDone _test };
} forEach TESTS;

nil;
3 changes: 2 additions & 1 deletion addons/diagnostic/test.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ SCRIPT(test-diagnostic);
LOG("=== Testing Diagnostic ===");

{
call compile preprocessFileLineNumbers format ["\x\cba\addons\diagnostic\test_%1.sqf", _x];
private _test = 0 spawn compile preprocessFileLineNumbers format ["\x\cba\addons\diagnostic\test_%1.sqf", _x];
waitUntil { scriptDone _test };
} forEach TESTS;

nil;
3 changes: 2 additions & 1 deletion addons/events/test.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ SCRIPT(test-events);
LOG("=== Testing Events ===");

{
0 spawn compile preprocessFileLineNumbers format ["\x\cba\addons\events\test_%1.sqf", _x];
private _test = 0 spawn compile preprocessFileLineNumbers format ["\x\cba\addons\events\test_%1.sqf", _x];
waitUntil { scriptDone _test };
} forEach TESTS;

nil
3 changes: 2 additions & 1 deletion addons/hashes/test.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ SCRIPT(test-hashes);
LOG("=== Testing Hashes ===");

{
0 spawn compile preprocessFileLineNumbers format ["\x\cba\addons\hashes\test_%1.sqf", _x];
private _test = 0 spawn compile preprocessFileLineNumbers format ["\x\cba\addons\hashes\test_%1.sqf", _x];
waitUntil { scriptDone _test };
} forEach TESTS;

nil
3 changes: 2 additions & 1 deletion addons/jr/test.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ SCRIPT(test-jr);
LOG("=== Testing JR ===");

{
call compile preprocessFileLineNumbers format ["\x\cba\addons\jr\test_%1.sqf", _x];
private _test = 0 spawn compile preprocessFileLineNumbers format ["\x\cba\addons\jr\test_%1.sqf", _x];
waitUntil { scriptDone _test };
} forEach TESTS;

nil;
3 changes: 2 additions & 1 deletion addons/main/test.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ SCRIPT(test);
LOG("===--- Testing ---===");

{
call compile preprocessFileLineNumbers format ["\x\cba\addons\%1\test.sqf", _x];
private _test = 0 spawn compile preprocessFileLineNumbers format ["\x\cba\addons\%1\test.sqf", _x];
waitUntil { scriptDone _test };
} forEach CATEGORIES;

nil;
3 changes: 2 additions & 1 deletion addons/network/test.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ SCRIPT(test-network);
LOG("=== Testing Network ===");

{
call compile preprocessFileLineNumbers format ["\x\cba\addons\network\test_%1.sqf", _x];
private _test = 0 spawn compile preprocessFileLineNumbers format ["\x\cba\addons\network\test_%1.sqf", _x];
waitUntil { scriptDone _test };
} forEach TESTS;

nil;
3 changes: 2 additions & 1 deletion addons/strings/test.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ SCRIPT(test-strings);
LOG("=== Testing Strings ===");

{
call compile preprocessFileLineNumbers format ["\x\cba\addons\strings\test_%1.sqf", _x];
private _test = 0 spawn compile preprocessFileLineNumbers format ["\x\cba\addons\strings\test_%1.sqf", _x];
waitUntil { scriptDone _test };
} forEach TESTS;

nil
3 changes: 2 additions & 1 deletion addons/vectors/test.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ SCRIPT(test-vectors);
LOG("=== Testing Vectors ===");

{
call compile preprocessFileLineNumbers format ["\x\cba\addons\vectors\test_%1.sqf", _x];
private _test = 0 spawn compile preprocessFileLineNumbers format ["\x\cba\addons\vectors\test_%1.sqf", _x];
waitUntil { scriptDone _test };
} forEach TESTS;

nil;

0 comments on commit 0535d14

Please sign in to comment.