Skip to content

Commit 8402e51

Browse files
committed
[unity]试试加上quickjs的il2cpp优化测试
1 parent 140a616 commit 8402e51

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/unity_unittest.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ jobs:
5151
cat log2.txt | grep "Failed\|Passed"
5252
echo "testresult in v2"
5353
cat log3.txt | grep "Failed\|Passed"
54+
echo "testresult in v2(quickjs)"
55+
cat log4.txt | grep "Failed\|Passed"
5456
5557
# unittest-osx-unity:
5658
# runs-on: macos-latest

unity/cli/test.mjs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,4 +292,23 @@ export async function unityTest(cwd, unityPath) {
292292
const v2code = exec(`${cwd}/build/v2/Tester${exeSuffix} -batchmode -nographics -logFile ${cwd}/log3.txt`).code;
293293

294294
assert.equal(0, v2code);
295+
296+
console.log('-------------------------With Full Wrapper test(quickjs)-------------------------');
297+
await runPuertsMake(join(cwd, '../../native_src'), {
298+
backend: 'quickjs',
299+
platform: platform,
300+
config: 'Debug',
301+
arch: 'x64',
302+
websocket: 1
303+
});
304+
305+
rm("-rf", `${cwd}/Library/ScriptAssemblies`);
306+
307+
console.log("[Puer] Building testplayer for v2");
308+
mkdir("-p", `${cwd}/build/v2`);
309+
execUnityEditor(`-executeMethod TestBuilder.BuildWindowsV2`);
310+
console.log("[Puer] Running test in v2");
311+
const v2code_qjs = exec(`${cwd}/build/v2/Tester${exeSuffix} -batchmode -nographics -logFile ${cwd}/log4.txt`).code;
312+
313+
assert.equal(0, v2code_qjs);
295314
}

0 commit comments

Comments
 (0)