Project

General

Profile

Download (1022 Bytes) Statistics
| Branch: | Tag: | Revision:
1 eb639349 bourbouh
cmake_minimum_required(VERSION 2.8.4)
2 6304ff63 bourbouh
3 eb639349 bourbouh
4 cc6eda98 bourbouh
set(LUSTRE_OPTIONS_OPT "" )
5
set(MAX_INPUT_VALUE 100)
6 eb639349 bourbouh
7
8
#proceed all subdirectories
9 6c3ea955 bourbouh
SUBDIRLIST(SUBDIRS ${CMAKE_CURRENT_SOURCE_DIR}  "src_")
10 5600dad4 bourbouh
  set(DST_DIR "${CMAKE_CURRENT_BINARY_DIR}")
11 eb639349 bourbouh
FOREACH(subdir ${SUBDIRS})
12 cc6eda98 bourbouh
  LUSTREFILES(LFILES ${subdir} )
13
  set(TESTS_PREFIX "Steteflow")
14
  set(SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/${subdir}")
15 5600dad4 bourbouh
16 cc6eda98 bourbouh
  FOREACH(lus_file ${LFILES})
17 eb639349 bourbouh
	get_filename_component(L ${lus_file} NAME_WE)
18 cc6eda98 bourbouh
	set(NODE_NAME  "${L}")
19
	Copy_or_generate_lusi_input_and_output_values_for_reference(
20
		LUS_FILE ${lus_file}
21
		NODE ${NODE_NAME}
22
		OPTS ${LUSTRE_OPTIONS_OPT}
23
		MAX ${MAX_INPUT_VALUE}  	#maximum value for input values.
24
		SRC_DIR ${SRC_DIR}
25
		DST_DIR ${DST_DIR}
26 fa9e78e5 bourbouh
	)
27
28 cc6eda98 bourbouh
	Lustre_compile_and_compare_to_reference(
29
		LUS_FILE ${lus_file}
30
		NODE ${NODE_NAME}
31
		TESTS_PREFIX ${TESTS_PREFIX}
32
		OPTS ${LUSTRE_OPTIONS_OPT}
33
		CALL_ID "1"
34
		SRC_DIR ${SRC_DIR}
35
		DST_DIR ${DST_DIR}
36 fa9e78e5 bourbouh
	)
37
	
38 cc6eda98 bourbouh
  ENDFOREACH()
39 b2b5e09a bourbouh
ENDFOREACH()
40
41 cc6eda98 bourbouh
add_custom_target(Steteflow COMMAND ${CMAKE_CTEST_COMMAND} -R Steteflow)