tests/Makefile
branchwxPython4
changeset 3430 c2171d87b587
parent 3428 803ce245f72f
child 3432 40b8b2ffb3fd
equal deleted inserted replaced
3429:67a4d207bace 3430:c2171d87b587
    21 #
    21 #
    22 #       run Xnest window with just xterm
    22 #       run Xnest window with just xterm
    23 #           $ make xnest_xterm
    23 #           $ make xnest_xterm
    24 #
    24 #
    25 #       run Xnest window with sikuli IDE and xterm
    25 #       run Xnest window with sikuli IDE and xterm
    26 #           $ make xnest_xterm
    26 #           $ make xnest_sikuli
    27 #
    27 #
    28 #       build minimal beremiz and matiec to run tests
    28 #       build minimal beremiz and matiec to run tests
    29 #           $ make own_apps
    29 #           $ make own_apps
    30 #
    30 #
    31 #   For CI/CD scripts to catch and report all failures. Use cases :
    31 #   For CI/CD scripts to catch and report all failures. Use cases :
    32 #
    32 #
    33 #       run all tests
    33 #       run all tests
    34 #           $ make
    34 #           $ make
    35 #
    35 #
    36 #   
    36 #   
    37 #   Variable $(src) is directory such that executed 
       
    38 #   $(src)/beremiz/tests/Makefile is this file.
       
    39 #   
       
    40 #   Test results, and other test byproducts are in $(test_dir), 
    37 #   Test results, and other test byproducts are in $(test_dir), 
    41 #   $(test_dir) defaults to $(HOME)/test and can be overloaded:
    38 #   $(test_dir) defaults to $(HOME)/test and can be overloaded:
    42 #       $ make test_dir=${HOME}/other_test_dir
    39 #       $ make test_dir=${HOME}/other_test_dir
    43 #
    40 #
    44 #   Makefile attemps to use xvfb-run to run each test individually with its own
    41 #   Makefile attemps to use xvfb-run to run each test individually with its own
    45 #   X server instance. This behavior can be overloaded
    42 #   X server instance. This behavior can be overloaded
    46 #       $ DISPLAY=:42 make xserver_command='echo "Using $DISPLAY X Server !";'
    43 #       $ DISPLAY=:42 make xserver_command='echo "Using $DISPLAY X Server !";'
    47 #
    44 #
    48 #   Matiec and Beremiz code are expected to be clean as if after hg clean --all.
    45 #   Matiec and Beremiz code are expected to be clean, ready to build
    49 #   Any change in Matiec directory triggers rebuild of matiec.
    46 #   Any change in Matiec directory triggers rebuild of matiec.
    50 #   Any change in Matiec and Beremiz directory triggers copy of source code
    47 #   Any change in Matiec and Beremiz directory triggers copy of source code
    51 #   to $(test_dir)/build.
    48 #   to $(test_dir)/build.
    52 #
    49 #
    53 #
    50 #
    57 #       of the Beremiz directory $(src)/beremiz, where we run tests from.
    54 #       of the Beremiz directory $(src)/beremiz, where we run tests from.
    58 #   
    55 #   
    59 
    56 
    60 all: source_check cli_tests ide_tests runtime_tests 
    57 all: source_check cli_tests ide_tests runtime_tests 
    61 
    58 
       
    59 # Variable $(src) is directory such that executed 
       
    60 # $(src)/Makefile is this file.
    62 src := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
    61 src := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
       
    62 
       
    63 # $(workspace) is directory containing this project
    63 workspace ?= $(abspath $(src)/../..)
    64 workspace ?= $(abspath $(src)/../..)
    64 
    65 
    65 test_dir ?= $(HOME)/test
    66 test_dir ?= $(HOME)/test
    66 build_dir = $(test_dir)/build
    67 build_dir = $(test_dir)/build
    67 
    68