Skip to content

Commit

Permalink
Merge pull request Ericsson#3153 from steakhal/port-logger-tests-to-p…
Browse files Browse the repository at this point in the history
…ython

[test] Port LD-logger tests to python
  • Loading branch information
csordasmarton authored Feb 1, 2022
2 parents 2c49428 + ebc8213 commit 7df76b0
Show file tree
Hide file tree
Showing 13 changed files with 1,313 additions and 291 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ jobs:
- name: Run build-logger tests
working-directory: analyzer/tools/build-logger
run: |
make -f Makefile.manual
make -f Makefile.manual test
pip install -r requirements_py/dev/requirements.txt
make test
- name: Run merge-clang-extdef-mappings tests
working-directory: analyzer/tools/merge_clang_extdef_mappings
Expand Down
4 changes: 2 additions & 2 deletions analyzer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ endef
export LOGGER_BUILD_ERROR_MSG
build_ld_logger:
ifeq ($(BUILD_LOGGER_64_BIT_ONLY),YES)
$(MAKE) -C tools/build-logger -f Makefile.manual pack64bit_only 2> /dev/null
$(MAKE) -C $(CC_ANALYZER)/tools/build-logger pack64bit_only 2> /dev/null
else
$(MAKE) -C tools/build-logger -f Makefile.manual 2> /dev/null || (echo "$$LOGGER_BUILD_ERROR_MSG" && false)
$(MAKE) -C $(CC_ANALYZER)/tools/build-logger all 2> /dev/null || (echo "$$LOGGER_BUILD_ERROR_MSG" && false)
endif

# NOTE: extra spaces are allowed and ignored at the beginning of the
Expand Down
2 changes: 1 addition & 1 deletion analyzer/tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ test_functional_in_env: venv_dev
$(ACTIVATE_DEV_VENV) && $(FUNCTIONAL_TEST_CMD)

test_build_logger:
make -C tools/build-logger -f Makefile.manual test
make -C tools/build-logger test

test_tu_collector:
REPO_ROOT=$(REPO_ROOT) make -C $(ROOT)/tools/tu_collector test
Expand Down
13 changes: 13 additions & 0 deletions analyzer/tools/build-logger/.noserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[nosetests]

# increase verbosity level
verbosity=3

# more detailed error messages on failed asserts
detailed-errors=1

# stop running tests on first error
stop=1

# do not capture stdout
#nocapture=1
Loading

0 comments on commit 7df76b0

Please sign in to comment.