Skip to content

Commit d165f41

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents f220907 + cab5f4a commit d165f41

File tree

22 files changed

+739
-57
lines changed

22 files changed

+739
-57
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,18 @@ jobs:
1515
CC: gcc-9
1616
CXX: g++-9
1717

18-
- name: Run SQF-VM Tests
19-
run: build/sqfvm -a --no-execute-print -i tests/config.cpp -i tests/runTests.sqf
20-
2118
- name: Upload Linux x64 binaries
2219
uses: actions/upload-artifact@v2
2320
with:
2421
name: sqfvm_linux_x64_gcc
2522
path: build/sqfvm*
2623

24+
- name: Run SQF-VM Tests
25+
working-directory: build
26+
run: ctest --output-on-failure
27+
2728
- name: Run CBA A3 Tests
28-
run: PATH=build:$PATH python tests/cba_a3.py
29+
run: PATH=build:$PATH python tests/cba/cba_a3.py
2930

3031
linux_x64_clang:
3132
name: Linux x64 (Clang)
@@ -39,17 +40,18 @@ jobs:
3940
CC: clang
4041
CXX: clang++
4142

42-
- name: Run SQF-VM Tests
43-
run: build/sqfvm -a --no-execute-print -i tests/config.cpp -i tests/runTests.sqf
44-
4543
- name: Upload Linux x64 binaries
4644
uses: actions/upload-artifact@v2
4745
with:
4846
name: sqfvm_linux_x64_clang
4947
path: build/sqfvm*
5048

49+
- name: Run SQF-VM Tests
50+
working-directory: build
51+
run: ctest --output-on-failure
52+
5153
- name: Run CBA A3 Tests
52-
run: PATH=build:$PATH python tests/cba_a3.py
54+
run: PATH=build:$PATH python tests/cba/cba_a3.py
5355

5456
macos:
5557
name: macOS
@@ -59,18 +61,19 @@ jobs:
5961

6062
- name: Build macOS
6163
run: mkdir build && cd build && cmake .. && cmake --build . --parallel 2
62-
63-
- name: Run SQF-VM Tests
64-
run: build/sqfvm -a --no-execute-print -i tests/config.cpp -i tests/runTests.sqf
6564

6665
- name: Upload macOS binaries
6766
uses: actions/upload-artifact@v2
6867
with:
6968
name: sqfvm_macos
7069
path: build/sqfvm*
7170

71+
- name: Run SQF-VM Tests
72+
working-directory: build
73+
run: ctest --output-on-failure
74+
7275
- name: Run CBA A3 Tests
73-
run: PATH=build:$PATH python tests/cba_a3.py
76+
run: PATH=build:$PATH python tests/cba/cba_a3.py
7477

7578
windows_win32:
7679
name: Windows Win32
@@ -81,19 +84,20 @@ jobs:
8184
- name: Build Windows Win32
8285
run: mkdir build && cd build && cmake -G "Visual Studio 16 2019" -A Win32 .. && cmake --build . --config Release
8386

84-
- name: Run SQF-VM Tests
85-
run: build/Release/sqfvm.exe -a --no-execute-print -i tests/config.cpp -i tests/runTests.sqf
86-
8787
- name: Upload Windows Win32 binaries
8888
uses: actions/upload-artifact@v2
8989
with:
9090
name: sqfvm_windows_win32
9191
path: build/Release/*.exe
9292

93+
- name: Run SQF-VM Tests
94+
working-directory: build
95+
run: ctest --output-on-failure -C Release
96+
9397
- name: Run CBA A3 Tests
9498
run: |
9599
$env:Path += ";build/Release/"
96-
python tests/cba_a3.py
100+
python tests/cba/cba_a3.py
97101
98102
windows_x64:
99103
name: Windows x64
@@ -104,16 +108,17 @@ jobs:
104108
- name: Build Windows x64
105109
run: mkdir build && cd build && cmake -G "Visual Studio 16 2019" -A x64 .. && cmake --build . --config Release
106110

107-
- name: Run SQF-VM Tests
108-
run: build/Release/sqfvm.exe -a --no-execute-print -i tests/config.cpp -i tests/runTests.sqf
109-
110111
- name: Upload Windows x64 binaries
111112
uses: actions/upload-artifact@v2
112113
with:
113114
name: sqfvm_windows_x64
114115
path: build/Release/*.exe
115116

117+
- name: Run SQF-VM Tests
118+
working-directory: build
119+
run: ctest --output-on-failure -C Release
120+
116121
- name: Run CBA A3 Tests
117122
run: |
118123
$env:Path += ";build/Release/"
119-
python tests/cba_a3.py
124+
python tests/cba/cba_a3.py

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,5 +354,5 @@ build/git_sha1\.cpp
354354

355355
*.diagsession
356356
src/sqc/parser.output
357-
358-
/tests/cba_a3/
357+
/tests/_out1_.txt
358+
/tests/_err1_.txt

CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 2.8.12)
1+
cmake_minimum_required(VERSION 3.16)
22
project(sqfvm)
33

44
set(CMAKE_CXX_STANDARD 17)
@@ -11,7 +11,10 @@ if (MSVC)
1111
add_definitions(/MP /W4 /wd4100)
1212
else()
1313
add_definitions(-Wall -Wno-unknown-pragmas)
14-
add_link_options(-static-libstdc++ -static-libgcc)
14+
15+
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
16+
add_link_options(-static-libstdc++ -static-libgcc)
17+
endif()
1518
endif()
1619

1720
# Add the filesystem library if we are building on Clang or GCC

sqf-dummy-check/gen.sqf

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// call compileScript ["gen.sqf"];
2+
// ..\build\Release\sqfvm.exe --input-sqf .\delta.sqf
3+
4+
private _ops_list =
5+
#include "ops.sqf"
6+
;
7+
8+
private _toAdd = [];
9+
(supportInfo "") apply {
10+
if (_x == "b:SWITCH : CODE") then { continue };
11+
if (_x == "b:SWITCH do CODE") then { continue };
12+
_x splitString ":" params ["_t", "_x"];
13+
if (_t != "t") then {
14+
_x = _x splitString " ";
15+
private _cmd = switch count _x do {
16+
case 1: { ["n", (_x # 0)] };
17+
case 2: { ["u", (_x # 0)] };
18+
case 3: { ["b", (_x # 1), 4] };
19+
};
20+
if ((_ops_list findIf {(_x select [0,2]) isEqualTo (_cmd select [0,2])}) == -1) then {
21+
_toAdd pushBackUnique str _cmd;
22+
};
23+
};
24+
};
25+
copyToClipboard (_toAdd apply {format ["%1,", _x]} joinString endl);
26+
format ["found %1", count _toAdd];

sqf-dummy-check/ops.sqf

Lines changed: 85 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,18 @@
287287
["n", "isstreamfriendlyuienabled"],
288288
["n", "confignull"],
289289
["n", "get3deniconsvisible"],
290+
["n","savemissionprofilenamespace"],
291+
["n","issteamoverlayenabled"],
292+
["n","issaving"],
293+
["n","gettiparameters"],
294+
["n","ismissionprofilenamespaceloaded"],
295+
["n","getterraininfo"],
296+
["n","missionprofilenamespace"],
297+
["n","getpipviewdistance"],
298+
["n","rainparams"],
299+
["n","getvideooptions"],
300+
["n","allenv3dsoundsources"],
301+
290302
["u", "showradio"],
291303
["u", "vectorup"],
292304
["u", "lnbsetcurselrow"],
@@ -1507,6 +1519,52 @@
15071519
["u", "get3denentityid"],
15081520
["u", "menusort"],
15091521
["u", "menusettext"],
1522+
["u","displayuniquename"],
1523+
["u","getallenv3dsoundcontrollers"],
1524+
["u","setterrainheight"],
1525+
["u","activetitleeffectparams"],
1526+
["u","geteventhandlerinfo"],
1527+
["u","getforcedspeed"],
1528+
["u","freeextension"],
1529+
["u","assignedgroup"],
1530+
["u","gettowparent"],
1531+
["u","sethumidity"],
1532+
["u","insidebuilding"],
1533+
["u","setpipviewdistance"],
1534+
["u","inputmouse"],
1535+
["u","inputmouse"],
1536+
["u","getturretopticsmode"],
1537+
["u","needservice"],
1538+
["u","loadconfig"],
1539+
["u","ropesattachedto"],
1540+
["u","getunitfreefallinfo"],
1541+
["u","getcorpse"],
1542+
["u","getunloadincombat"],
1543+
["u","collisiondisabledwith"],
1544+
["u","groups"],
1545+
["u","actionkeysex"],
1546+
["u","isallowedcrewinimmobile"],
1547+
["u","action"],
1548+
["u","playsoundui"],
1549+
["u","getobjectid"],
1550+
["u","nearestmines"],
1551+
["u","compatibleitems"],
1552+
["u","equipmentdisabled"],
1553+
["u","isawake"],
1554+
["u","settiparameter"],
1555+
["u","ctrlshadow"],
1556+
["u","assignedvehicles"],
1557+
["u","setrain"],
1558+
["u","setrain"],
1559+
["u","allowedservice"],
1560+
["u","compatiblemagazines"],
1561+
["u","inputcontroller"],
1562+
["u","displayupdate"],
1563+
["u","brakesdisabled"],
1564+
["u","getterrainheight"],
1565+
["u","ctrlurloverlaymode"],
1566+
["u","pose"],
1567+
15101568
["b", "lnbsetcurselrow", 4],
15111569
["b", "removemenuitem", 4],
15121570
["b", "currentzeroing", 4],
@@ -2620,5 +2678,31 @@
26202678
["b", "ctrlsetfontheighth4", 4],
26212679
["b", "ctrlsetfontheighth5", 4],
26222680
["b", "menusort", 4],
2623-
["b", "menusettext", 4]
2681+
["b", "menusettext", 4],
2682+
["b","setturretlimits", 4],
2683+
["b","getenv3dsoundcontroller", 4],
2684+
["b","ctrlseturloverlaymode", 4],
2685+
["b","geteventhandlerinfo", 4],
2686+
["b","allowservice", 4],
2687+
["b","getturretlimits", 4],
2688+
["b","setturretopticsmode", 4],
2689+
["b","reload", 4],
2690+
["b","islaseron", 4],
2691+
["b","allobjects", 4],
2692+
["b","getturretopticsmode", 4],
2693+
["b","findany", 4],
2694+
["b","getordefaultcall", 4],
2695+
["b","ctrlat", 4],
2696+
["b","getopticsmode", 4],
2697+
["b","setopticsmode", 4],
2698+
["b","disablebrakes", 4],
2699+
["b","setunitfreefallheight", 4],
2700+
["b","lasertarget", 4],
2701+
["b","isequalref", 4],
2702+
["b","weaponsinfo", 4],
2703+
["b","ctrlsetshadow", 4],
2704+
["b","isnotequalref", 4],
2705+
["b","awake", 4],
2706+
["b","getdirvisual", 4],
2707+
["b","alldiaryrecords", 4]
26242708
]

0 commit comments

Comments
 (0)