mirror of
https://github.com/avast/retdec.git
synced 2024-11-23 21:10:13 +00:00
Add option to exclude selected tests
This commit is contained in:
parent
eebf0d4086
commit
e149c9b347
0
.github/workflows/Linux/ignore_Debug
vendored
Normal file
0
.github/workflows/Linux/ignore_Debug
vendored
Normal file
0
.github/workflows/Linux/ignore_Release
vendored
Normal file
0
.github/workflows/Linux/ignore_Release
vendored
Normal file
6
.github/workflows/Linux/run-tests.sh
vendored
6
.github/workflows/Linux/run-tests.sh
vendored
@ -1,5 +1,9 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
set -x
|
||||
|
||||
IGNORE_TESTS=$(cat $1 | tr '\n' ',' | sed 's/,$//' | tr '.' '/')
|
||||
|
||||
cat <<EOF > $PWD/retdec-regression-tests-framework/config_local.ini
|
||||
[runner]
|
||||
; Path to the extracted Clang package containing subdirectories such as bin, include, lib, share.
|
||||
@ -8,6 +12,8 @@ clang_dir = $PWD/clang
|
||||
tests_root_dir = $PWD/retdec-regression-tests
|
||||
; Path to the RetDec's installation directory.
|
||||
retdec_install_dir = $PWD/install
|
||||
; Exclude directories
|
||||
excluded_dirs = $IGNORE_TESTS
|
||||
EOF
|
||||
|
||||
cd "$PWD/retdec-regression-tests-framework"
|
||||
|
14
.github/workflows/Windows/ignore_Debug
vendored
Normal file
14
.github/workflows/Windows/ignore_Debug
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
bugs.bin2llvmir-type-recovery-analysis-segfault
|
||||
bugs.issue-184-elf-thunks
|
||||
bugs.issue-197-empty-selected-fnc-body
|
||||
bugs.llvmir-syntax-expected-top-level-entity
|
||||
bugs.phi-node-error-replaceAllUsesWith
|
||||
bugs.segments-assert.segments_in_elf_arm
|
||||
features.invalid-entrypoint-decompilation
|
||||
features.macho-archives
|
||||
features.macho
|
||||
features.new-static-code-signatures
|
||||
features.raw.binaries
|
||||
samples.bashbot
|
||||
integration.float-operations
|
||||
external.unit-tests
|
0
.github/workflows/Windows/ignore_Release
vendored
Normal file
0
.github/workflows/Windows/ignore_Release
vendored
Normal file
6
.github/workflows/Windows/run-tests.sh
vendored
6
.github/workflows/Windows/run-tests.sh
vendored
@ -1,3 +1,7 @@
|
||||
set -x
|
||||
|
||||
IGNORE_TESTS=$(cat $1 | tr '\n' ',' | sed 's/,$//' | tr '.' '\\')
|
||||
|
||||
# We need to specify each path in Windows format.
|
||||
WIN_PWD=D:$(echo $PWD | sed 's/^\/d//' | sed 's/\//\\/g')
|
||||
|
||||
@ -9,6 +13,8 @@ clang_dir = $WIN_PWD\\clang
|
||||
tests_root_dir = $WIN_PWD\\retdec-regression-tests
|
||||
; Path to the RetDec's installation directory.
|
||||
retdec_install_dir = $WIN_PWD\\install
|
||||
; Exclude directories
|
||||
excluded_dirs = $IGNORE_TESTS
|
||||
EOF
|
||||
|
||||
cd "$PWD/retdec-regression-tests-framework"
|
||||
|
0
.github/workflows/macOS/ignore_Debug
vendored
Normal file
0
.github/workflows/macOS/ignore_Debug
vendored
Normal file
0
.github/workflows/macOS/ignore_Release
vendored
Normal file
0
.github/workflows/macOS/ignore_Release
vendored
Normal file
7
.github/workflows/macOS/run-tests.sh
vendored
7
.github/workflows/macOS/run-tests.sh
vendored
@ -1,5 +1,9 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
set -x
|
||||
|
||||
IGNORE_TESTS=$(cat $1 | tr '\n' ',' | sed 's/,$//' | tr '.' '/')
|
||||
|
||||
cat <<EOF > $PWD/retdec-regression-tests-framework/config_local.ini
|
||||
[runner]
|
||||
; Path to the extracted Clang package containing subdirectories such as bin, include, lib, share.
|
||||
@ -19,7 +23,8 @@ retdec_install_dir = $PWD/install
|
||||
; (https://github.com/avast/retdec/issues/213). So, we decided to skip tests that
|
||||
; compile output C files when running regression tests on macOS.
|
||||
skip_c_compilation_tests = 0
|
||||
|
||||
; Exclude directories
|
||||
excluded_dirs = $IGNORE_TESTS
|
||||
EOF
|
||||
|
||||
cd "$PWD/retdec-regression-tests-framework"
|
||||
|
3
.github/workflows/retdec-ci.yml
vendored
3
.github/workflows/retdec-ci.yml
vendored
@ -80,8 +80,7 @@ jobs:
|
||||
shell: bash
|
||||
|
||||
- name: Run Tests
|
||||
run: bash "${WORKFLOWS_DIR}/${RUNNER_OS}/run-tests.sh"
|
||||
|
||||
run: bash "${WORKFLOWS_DIR}/${RUNNER_OS}/run-tests.sh" "${WORKFLOWS_DIR}/${RUNNER_OS}/ignore_${{ matrix.type }}"
|
||||
|
||||
# Prepare files for publishing/release. The resulting structure:
|
||||
# RetDec-OSType-Release
|
||||
|
Loading…
Reference in New Issue
Block a user