Makefile 1.65 KB
Newer Older
1
2
DISABLED_TESTS=common/ shared-components/ logs/ __pycache__
export EXPECTED_FAILURES=test-stm32 air-iop1 stm32-serial-pohiada2 test-air-portnames stm32-f407-serial-pohi test-air-multiports test-air-interpartcomm  stm32-f407-serial  test-air-2cyclics stm32-f407-encodeReal TrafficLight_stm32f407_NonDistrib TrafficLight_stm32f407 msp430_cyclic_calls_protected msp430_cyclic_calls_sporadic msp430_cyclic_calls_unprotected msp430_protected_calls_protected msp430_protected_calls_sporadic msp430_protected_calls_unprotected msp430_sporadic_calls_protected msp430_sporadic_calls_sporadic msp430_sporadic_calls_unprotected msp430_unprotected_calls_protected msp430_unprotected_calls_sporadic msp430_unprotected_calls_unprotected msp430_ada msp430_cpp  msp430_driver_e_usci_serial msp430_sdl_ada msp430_sdl_c Demo_CoRA_MBAD_4ZYNQ_GNC Demo_CoRA_MBAD_4ZYNQ_PrimeNumbers Demo_CoRA_MBAD_4ZYNQ_SWonly
3
TEST_CASES=$(sort $(filter-out $(DISABLED_TESTS), $(dir $(wildcard */))))
4
export MAKEFLAGS="-j $(grep -c ^processor /proc/cpuinfo)"
5
6
MAKEFILE_PATH   := $(abspath $(lastword $(MAKEFILE_LIST)))
TEST_BASE_DIR   := $(dir $(MAKEFILE_PATH))
Maxime Perrotin's avatar
Maxime Perrotin committed
7

8
all:
Maxime Perrotin's avatar
Maxime Perrotin committed
9
10
	find . -name "DataView.aadl" -exec sed -i "s,/home/taste/tool-inst/share/taste-types/,${TEST_BASE_DIR}common/,g" {} \;
	find . -name "DataView.aadl" -exec sed -i "s,/home/taste/tool-src/kazoo/test/,${TEST_BASE_DIR},g" {} \;
11
12
	rm -f ${TEST_BASE_DIR}/logs/*
	python3 test.py all $(TEST_CASES)
13
	find . -name "DataView.aadl" -exec git checkout -- {} \;
14

Maxime Perrotin's avatar
Maxime Perrotin committed
15
16
17
18
19
20
21
test-parse:
	@python3 test.py test-parse $(TEST_CASES)

clean:
	@for v in $(TEST_CASES) ; \
		do $(MAKE) -s -C $$v clean ; \
	done
22
	find . -name "DataView.aadl" -exec git checkout -- {} \;
Maxime Perrotin's avatar
Maxime Perrotin committed
23
24

.PHONY: test-parse clean