Skip to content

Commit

Permalink
Merge pull request lcompilers#2523 from advikkabra/style-fix
Browse files Browse the repository at this point in the history
Ignored warnings for inbuilt pow test
  • Loading branch information
certik committed Feb 11, 2024
2 parents 660aa2a + e86eca6 commit b7929f0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions integration_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ macro(RUN_UTIL RUN_FAIL RUN_NAME RUN_FILE_NAME RUN_LABELS RUN_EXTRAFILES RUN_NOM
endmacro(RUN_UTIL)

macro(RUN)
set(options FAIL NOFAST NOMOD ENABLE_CPYTHON LINK_NUMPY)
set(options FAIL NOFAST NOMOD ENABLE_CPYTHON LINK_NUMPY NO_WARNINGS)
set(oneValueArgs NAME IMPORT_PATH COPY_TO_BIN REQ_PY_VER)
set(multiValueArgs LABELS EXTRAFILES)
cmake_parse_arguments(RUN "${options}" "${oneValueArgs}"
Expand All @@ -328,6 +328,10 @@ macro(RUN)
set(RUN_EXTRA_ARGS ${RUN_EXTRA_ARGS} --enable-cpython)
endif()

if (RUN_NO_WARNINGS)
set(RUN_EXTRA_ARGS ${RUN_EXTRA_ARGS} --no-warnings)
endif()

if (RUN_IMPORT_PATH)
# Only one import path supported for now
# Later add support for multiple import paths by looping over and appending to extra args
Expand Down Expand Up @@ -607,7 +611,7 @@ RUN(NAME test_os LABELS cpython llvm c NOFAST)
RUN(NAME test_builtin LABELS cpython llvm c)
RUN(NAME test_builtin_abs LABELS cpython llvm c)
RUN(NAME test_builtin_bool LABELS cpython llvm c)
RUN(NAME test_builtin_pow LABELS cpython llvm c)
RUN(NAME test_builtin_pow LABELS cpython llvm c NO_WARNINGS)
RUN(NAME test_builtin_int LABELS cpython llvm c)
RUN(NAME test_builtin_len LABELS cpython llvm c)
RUN(NAME test_builtin_str LABELS cpython llvm c)
Expand Down

0 comments on commit b7929f0

Please sign in to comment.