Changeset 4785


Ignore:
Timestamp:
Sep 21, 2015, 2:19:45 PM (3 years ago)
Author:
hongpum
Message:

Explicitly use python2 for QA scripts

so that we can run the tests in systems that default to Python3 (you,
ArchLinux?). It doesn't break any other system, as there is always a "python2"
symlink in almost all cases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/CMakeLists.txt

    r4784 r4785  
    336336  NAME greptest
    337337  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/../QA
    338   COMMAND python greptest.py ${CMAKE_BINARY_DIR}/icgrep)
     338  COMMAND python2 greptest.py ${CMAKE_BINARY_DIR}/icgrep)
    339339
    340340add_test(
    341341  NAME proptest
    342342  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/../QA
    343   COMMAND python greptest.py -d ${PROJECT_SOURCE_DIR}/../QA -t ${PROJECT_SOURCE_DIR}/../QA/proptest.xml ${CMAKE_BINARY_DIR}/icgrep)
     343  COMMAND python2 greptest.py -d ${PROJECT_SOURCE_DIR}/../QA -t ${PROJECT_SOURCE_DIR}/../QA/proptest.xml ${CMAKE_BINARY_DIR}/icgrep)
    344344
    345345add_test(
     
    349349
    350350add_custom_target (abc_test
    351   COMMAND python abc_testgen.py
     351  COMMAND python2 abc_testgen.py
    352352  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/../QA)
    353353
     
    357357
    358358add_custom_target (perf_icgrep
    359   COMMAND python perf.py icgrep
     359  COMMAND python2 perf.py icgrep
    360360  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/../performance
    361361  DEPENDS icgrep)
    362362
    363363add_custom_target (viewer
    364   COMMAND python viewer.py
     364  COMMAND python2 viewer.py
    365365  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/../performance)
    366366
    367367add_custom_target (text_viewer
    368   COMMAND python viewer.py -t
     368  COMMAND python2 viewer.py -t
    369369  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/../performance)
Note: See TracChangeset for help on using the changeset viewer.