File tree Expand file tree Collapse file tree 2 files changed +47
-0
lines changed
tests/regression/ba-issues Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change @@ -371,6 +371,47 @@ jobs:
371
371
ctest
372
372
working-directory : tests/unit
373
373
374
+ build_regression_tests :
375
+ needs :
376
+ [build_llvm_libraries_on_ubuntu_2204]
377
+ runs-on : ${{ matrix.os }}
378
+ strategy :
379
+ matrix :
380
+ os : [ubuntu-22.04]
381
+ include :
382
+ - os : ubuntu-22.04
383
+ llvm_cache_key : ${{ needs.build_llvm_libraries_on_ubuntu_2204.outputs.cache_key }}
384
+
385
+ steps :
386
+ - name : checkout
387
+ uses : actions/checkout@v4
388
+
389
+ - name : Get LLVM libraries
390
+ id : retrieve_llvm_libs
391
+ uses : actions/cache@v4
392
+ with :
393
+ path : |
394
+ ./core/deps/llvm/build/bin
395
+ ./core/deps/llvm/build/include
396
+ ./core/deps/llvm/build/lib
397
+ ./core/deps/llvm/build/libexec
398
+ ./core/deps/llvm/build/share
399
+ key : ${{ matrix.llvm_cache_key }}
400
+
401
+ - name : Quit if cache miss
402
+ if : (steps.retrieve_llvm_libs.outputs.cache-hit != 'true')
403
+ run : echo "::error::can not get prebuilt llvm libraries" && exit 1
404
+
405
+ - name : Build wamrc and iwasm
406
+ run : |
407
+ ./build_wamr.sh
408
+ working-directory : tests/regression/ba-issues
409
+
410
+ - name : Run regression tests
411
+ run : |
412
+ python run.py
413
+ working-directory : tests/regression/ba-issues
414
+
374
415
build_samples_wasm_c_api :
375
416
needs :
376
417
[
Original file line number Diff line number Diff line change 11
11
import glob
12
12
import re
13
13
import argparse
14
+ import sys
14
15
15
16
from typing import Dict , Optional , List
16
17
@@ -275,6 +276,11 @@ def process_and_run_test_cases(
275
276
else :
276
277
print (f" Issues not found in folder: { format_issue_ids_should_test } " )
277
278
279
+ if failed > 0 :
280
+ # Exit with error code if there are failed test for CI
281
+ print ("Some tests failed, see log file for details." )
282
+ sys .exit (1 )
283
+
278
284
279
285
def main ():
280
286
parser = argparse .ArgumentParser (description = "Run BA issue tests." )
You can’t perform that action at this time.
0 commit comments