Skip to content

Commit 7f0a0f8

Browse files
committed
fix tests that were broken by file name changes
1 parent cd0d8b4 commit 7f0a0f8

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/exp2cxx/test/inverse_qualifiers.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required( VERSION 2.8 )
22

33
# executable is ${EXE}, input file is ${INFILE}
44

5-
set( ofile "SdaiINVERSE_PROBLEM.init.cc" )
5+
set( ofile "entity/SdaiAssembly_component.cc" )
66
execute_process( COMMAND ${EXE} ${INFILE}
77
RESULT_VARIABLE CMD_RESULT )
88
if( NOT ${CMD_RESULT} EQUAL 0 )

test/cpp/schema_specific/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ include_directories( ${SC_SOURCE_DIR}/src/cldai ${SC_SOURCE_DIR}/src/cleditor ${
1111
function( add_schema_dependent_test name sdai_lib exe_args )
1212
# need the path to the lib sources for -I
1313
get_target_property( sdai_srcs sdai_${sdai_lib} SOURCES )
14-
list(GET sdai_srcs 0 fullpath )
14+
15+
# -1 --> last item in list, which will be a file that isn't in a subdir
16+
list(GET sdai_srcs -1 fullpath )
1517
get_filename_component(sdai_src_path ${fullpath} PATH )
1618

1719
add_executable( tst_${name} "${name}.cc" )
@@ -60,7 +62,7 @@ add_schema_dependent_test( "attribute" "inverse_attr" "${SC_SOURCE_DIR}/test/p21
6062

6163
if(HAVE_STD_THREAD)
6264
# for best results, use a large file. as1-oc-214.stp is currently the largest file in the repo that sc works with.
63-
add_schema_dependent_test( "stepfile_rw_progress" "AP214E3_2010"
65+
add_schema_dependent_test( "stepfile_rw_progress" "ap214e3"
6466
"${SC_SOURCE_DIR}/data/ap214e3/as1-oc-214.stp" "-pthread -std=c++0x" "pthread" )
6567
endif(HAVE_STD_THREAD)
6668

test/p21/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ set(sn_insts "
5050
set(schema_name_good "AUTOMOTIVE_DESIGN")
5151
set(schema_name_good_asn "AUTOMOTIVE_DESIGN { 1 0 10303 214 1 1 1 1 }")
5252
set(schema_name_mismatch "DOES_NOT_MATCH")
53-
set(p21read_ap214 "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/p21read_sdai_AP214E3_2010")
53+
set(p21read_ap214 "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/p21read_sdai_ap214e3")
5454
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/exch_file_good.p21 "${P21_FILE_HEAD}${schema_name_good}${P21_FILE_MID}
5555
${sn_insts}${P21_FILE_TAIL}")
5656
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/exch_file_good_asn.p21 "${P21_FILE_HEAD}${schema_name_good_asn}${P21_FILE_MID}

0 commit comments

Comments
 (0)