Skip to content
Snippets Groups Projects
Commit 66ca9269 authored by Angel Santamaria-Navarro's avatar Angel Santamaria-Navarro
Browse files

FIX test/CMakeLists.txt to add new gtest.cpp when its corresponding place is...

FIX test/CMakeLists.txt to add new gtest.cpp when its corresponding place is alphabetically the last one
parent c2c996a9
No related branches found
No related tags found
1 merge request!193Fix scripts
Pipeline #
...@@ -512,11 +512,11 @@ updateCMakeListsGTest() ...@@ -512,11 +512,11 @@ updateCMakeListsGTest()
fi fi
fi fi
done done
if [[ $SET_BEFORE_POS < $(( ${#sorted[@]}-1 )) ]] ; if [[ $SET_BEFORE_POS = $(( ${#sorted[@]}-1 )) ]] ;
then then
sed -i "\%${sorted[$SET_BEFORE_POS]}%i # $New test\nwolf_add_gtest(gtest_$NAME gtest_$NAME.cpp)\ntarget_link_libraries(gtest_$NAME \$\{PROJECT_NAME\})\n" "${CML_GTEST_PATH}"
else
sed -i "\%------- Now Core classes Serialization ----------%i # $New test\nwolf_add_gtest(gtest_$NAME gtest_$NAME.cpp)\ntarget_link_libraries(gtest_$NAME \$\{PROJECT_NAME\})\n" "${CML_GTEST_PATH}" sed -i "\%------- Now Core classes Serialization ----------%i # $New test\nwolf_add_gtest(gtest_$NAME gtest_$NAME.cpp)\ntarget_link_libraries(gtest_$NAME \$\{PROJECT_NAME\})\n" "${CML_GTEST_PATH}"
else
sed -i "\%${sorted[$SET_BEFORE_POS]}%i # $New test\nwolf_add_gtest(gtest_$NAME gtest_$NAME.cpp)\ntarget_link_libraries(gtest_$NAME \$\{PROJECT_NAME\})\n" "${CML_GTEST_PATH}"
fi fi
echo "$CML_GTEST_PATH" echo "$CML_GTEST_PATH"
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment