Lines Matching refs:PROGRAM

62 # rigorous testing of the CACHE parameter comes later with PROGRAM).
76 # Test the PROGRAM component type.
77 get_filename_component(test_program_name "/ arg1 arg2" PROGRAM)
78 check("PROGRAM with no args output" "${test_program_name}" "/")
80 get_filename_component(test_program_name "/ arg1 arg2" PROGRAM
82 check("PROGRAM with args output: name" "${test_program_name}" "/")
83 check("PROGRAM with args output: args" "${test_program_args}" " arg1 arg2")
85 get_filename_component(test_program_name " " PROGRAM)
86 check("PROGRAM with just a space" "${test_program_name}" "")
88 get_filename_component(test_program_name "${CMAKE_CURRENT_LIST_DIR}/KnownComponents.sh" PROGRAM)
89 check("PROGRAM specified explicitly without quoting" "${test_program_name}" "${CMAKE_CURRENT_LIST_D…
91 …me_component(test_program_name "\"${CMAKE_CURRENT_LIST_DIR}/KnownComponents.sh\" arg1 arg2" PROGRAM
93 check("PROGRAM specified explicitly with arguments: name" "${test_program_name}" "${CMAKE_CURRENT_L…
94 check("PROGRAM specified explicitly with arguments: args" "${test_program_args}" " arg1 arg2")
111 # Test the PROGRAM component type with CACHE specified.
114 get_filename_component(test_cache_program_name_1 "/ arg1 arg2" PROGRAM CACHE)
115 check("PROGRAM CACHE 1 with no args output" "${test_cache_program_name_1}" "/")
120 get_filename_component(test_cache_program_name_2 "/ arg1 arg2" PROGRAM CACHE)
121 check("PROGRAM CACHE 2 with no args output" "${test_cache_program_name_2}"
126 get_filename_component(test_cache_program_name_3 "/ arg1 arg2" PROGRAM
128 check("PROGRAM CACHE 3 name" "${test_cache_program_name_3}" "/")
129 check("PROGRAM CACHE 3 args" "${test_cache_program_args_3}" " arg1 arg2")
136 get_filename_component(test_cache_program_name_4 "/ arg1 arg2" PROGRAM
138 check("PROGRAM CACHE 4 name" "${test_cache_program_name_4}" "DummyPgm")
139 check("PROGRAM CACHE 4 args" "${test_cache_program_args_4}" "DummyArgs")