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 eb605c2
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 30 deletions.
5 changes: 2 additions & 3 deletions addons/arrays/test.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ 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;
5 changes: 2 additions & 3 deletions addons/common/test.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ 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;
5 changes: 2 additions & 3 deletions addons/diagnostic/test.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ 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;
5 changes: 2 additions & 3 deletions addons/events/test.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ 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
5 changes: 2 additions & 3 deletions addons/hashes/test.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ 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
5 changes: 2 additions & 3 deletions addons/jr/test.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ 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;
5 changes: 2 additions & 3 deletions addons/main/test.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ 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;
5 changes: 2 additions & 3 deletions addons/network/test.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ 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;
5 changes: 2 additions & 3 deletions addons/strings/test.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ 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
5 changes: 2 additions & 3 deletions addons/vectors/test.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ 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 eb605c2

Please sign in to comment.