Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into feature/optional_m…
Browse files Browse the repository at this point in the history
…atcher
  • Loading branch information
srz-zumix committed Sep 23, 2020
2 parents 1a44112 + e1a2222 commit 6013896
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/greetings.yml
@@ -1,6 +1,6 @@
name: Greetings

on: [pull_request, issues]
on: [pull_request_target, issues]

jobs:
greeting:
Expand All @@ -10,4 +10,4 @@ jobs:
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: 'Hey, thanks for contributing to this by raising an issue'
pr-message: 'Thanks for contributing and submitting your first pull request for this project'
pr-message: 'Thanks for contributing and submitting your first pull request for this project'
9 changes: 8 additions & 1 deletion .github/workflows/main.yml
Expand Up @@ -67,14 +67,21 @@ jobs:
runs-on: ubuntu-18.04
container: docker://srzzumix/zapcc
needs: prepare
env:
PYTHON_VERSION: 3.8
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v2
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Set Python environment variable
run: echo '::set-env name=LD_LIBRARY_PATH::${{ env.pythonLocation }}/lib'
- name: zapcc test
run: |
make -C test clean
make -C test showcxxversion
make -C test check_stdlib
make -C test -j1
make -C test -j1 IUTEST_REQUIRE_PYTHON=1
make -C test test
arm-none-eabi:
runs-on: ubuntu-18.04
Expand Down
39 changes: 22 additions & 17 deletions test/GNUmakefile
Expand Up @@ -190,12 +190,12 @@ COVERITY_SCAN_BUILD_TARGETS = $(ALLTESTS_TARGET) $(EXTENSIONTESTS_TARGET) $(TARG

default : $(TARGETS)

all : clean default test
all : clean default test ## clean and build, run

# dir :
# @if [ ! -e `dirname $(OUTDIR)` ]; then mkdir -p `dirname $(OUTDIR)`; fi

clean :
clean : ## clean
$(RM) $(TARGETS) $(NO_DEFAULT_TARGETS) $(ALL_OBJS) *.o *.stackdump *.core *.exe *.log *.ns.cpp check_stdlib
$(RM) -R *.dSYM
ifdef OUTPUTXML
Expand All @@ -205,25 +205,25 @@ ifdef USE_COVERAGE
$(RM) *.xml *.gcov *.gcno *.gcda coverage.info
endif

clean-xml :
clean-xml : ## clean xml
$(RM) *.xml

clean-cov :
clean-cov : ## clean coverages
$(RM) *.xml *.gcov *.gcno *.gcda coverage.info

clean-all : clean clean-xml clean-cov
clean-all : clean clean-xml clean-cov ## clean all
make -C benchmark clean
make -C configcheck clean
make -C cpplint clean

check : test
run : test
test : $(BUILD_ONLY) $(RUNNER)
run : test ## run tests
test : $(BUILD_ONLY) $(RUNNER) ## run tests

lint : cpplint/Makefile $(IUTEST_HEADERS) $(MAKEFILE)
lint : cpplint/Makefile $(IUTEST_HEADERS) $(MAKEFILE) ## lint
make -C cpplint

showcxxversion:
showcxxversion: ## show compiler version
$(CXX) --version
ifeq ($(CXX_NAME),g++)
$(CXX) -dumpversion
Expand All @@ -238,10 +238,10 @@ ifdef CXX_NAME
@echo ${CXX_NAME}-$(CXX_MAJOR).$(CXX_MINOR)
endif

showcxxmacros:
showcxxmacros: ## show compiler predefined macros
$(CXX) $(STDFLAG) -dM -E -x c++ - < /dev/null

showcxxflags:
showcxxflags: ## show cxxflags
@echo $(CXXFLAGS)

%_build: $(OUTDIR)/%
Expand All @@ -266,11 +266,10 @@ endif
run_% : %_run
@echo $< > /dev/null

prepare: $(NAMESPACETESTS_TEST_SRCS)
prepare: $(NAMESPACETESTS_TEST_SRCS) ## test code prepare
@if [[ ! -d "${OUTDIR}" ]]; then mkdir $(OUTDIR); fi

# gtest version test
gtest-version: clean gtest_version_tests_run
gtest-version: clean gtest_version_tests_run ## gtest version test

coverity_scan: $(COVERITY_SCAN_BUILD_TARGETS)

Expand All @@ -281,10 +280,10 @@ coverity_scan: $(COVERITY_SCAN_BUILD_TARGETS)

FUSED_PY= ../tools/fused/*.py

fused: $(IUTEST_HEADERS) $(MAKEFILE) ../tools/fused/Makefile $(FUSED_PY)
fused: $(IUTEST_HEADERS) $(MAKEFILE) ../tools/fused/Makefile $(FUSED_PY) ## create fused-src
make -C ../tools/fused

fused_min: $(IUTEST_HEADERS) $(MAKEFILE) ../tools/fused/Makefile $(FUSED_PY)
fused_min: $(IUTEST_HEADERS) $(MAKEFILE) ../tools/fused/Makefile $(FUSED_PY) ## create minimize fused-src
make -C ../tools/fused min

#
Expand Down Expand Up @@ -485,7 +484,7 @@ check_incg: $(IUTEST_INCLUDE_GUARD_CHECK)
# cppcheck
#

cppcheck:
cppcheck: ## cppcheck
make -C cppcheck

#
Expand All @@ -494,3 +493,9 @@ cppcheck:

report:
CXX_NAME=${CXX_NAME} CXX_VERSION=${CXX_VERSION} STDFLAG=${STDFLAG} ./../.ci/report-basic-test.sh || true

#
# help
#
help: ## show help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sed -e 's/^GNUmakefile://' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
2 changes: 1 addition & 1 deletion tools/python/iutest_compile_error_test.py
Expand Up @@ -545,7 +545,7 @@ def parse_output(options):
f = options.infile
#f = codecs.getreader('utf-8')(options.infile)

if any(options.compiler.find(s) != -1 for s in ('clang', 'clang++')):
if any(options.compiler.find(s) != -1 for s in ('clang', 'clang++', 'zapcc', 'zapcc++')):
l = parse_clang(options, f)
elif any(options.compiler.find(s) != -1 for s in ('gcc', 'g++')):
l = parse_gcc(options, f)
Expand Down

0 comments on commit 6013896

Please sign in to comment.