Skip to content

Commit

Permalink
feat: remove obsolete test CMakeLists.txt in overlook/tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zchrissirhcz committed Nov 24, 2024
1 parent 092a561 commit e113258
Show file tree
Hide file tree
Showing 104 changed files with 82 additions and 480 deletions.
134 changes: 0 additions & 134 deletions plugins/overlook/.clang-format

This file was deleted.

39 changes: 0 additions & 39 deletions plugins/overlook/.editorconfig

This file was deleted.

27 changes: 0 additions & 27 deletions plugins/overlook/.gitignore

This file was deleted.

42 changes: 42 additions & 0 deletions plugins/overlook/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
cmake_minimum_required(VERSION 3.10)
project(test_overlook)

include(../overlook.cmake)

add_executable(test1 test1.c)
add_executable(test2 test2.c)
add_executable(test3 test3.c)
add_subdirectory(test4 test4)
add_executable(test5 test5.cpp)
add_executable(test6 test6.cpp)
add_executable(test7 test7.cpp)
add_executable(test8 test8.cpp)
add_executable(test9 test9.cpp)
add_executable(test10 test10.c)
add_executable(test11 test11.cpp)
add_executable(test12 test12.c)
add_executable(test13 test13.c)
add_executable(test14 test14.c)
add_subdirectory(test15 test15)
add_executable(test16 test16.cpp)
add_subdirectory(test17 test17)
add_executable(test18 test18.cpp)
add_executable(test19 test19.cpp)
add_executable(test20 test20.cpp)
add_executable(test21 test21.cpp)
add_executable(test22 test22.cpp)
add_executable(test23 test23.cpp)
add_executable(test24 test24.cpp)
add_executable(test25 test25.cpp)
add_executable(test26 test26.cpp)
add_executable(test27 test27.cpp)
add_executable(test28 test28.cpp)
add_executable(test29 test29.cpp)
add_executable(test30 test30.cpp)
add_subdirectory(test31 test31)
add_executable(test32 test32.cpp)
add_executable(test33 test33.cpp)
add_executable(test34 test34.cpp)
add_executable(test35 test35.cpp)
add_executable(test36 test36.cpp)
add_executable(test37 test37.cpp)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions plugins/overlook/tests/test15/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
add_executable(test15
${CMAKE_CURRENT_SOURCE_DIR}/a.c
${CMAKE_CURRENT_SOURCE_DIR}/b.c
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
cmake_minimum_required(VERSION 3.20)
project(test_rule17)
include("../../overlook.cmake")

#---------------------------------
# 原来版本的hello库,源码放在old目录
#---------------------------------
Expand All @@ -25,9 +21,9 @@ endif()
#---------------------------------
# 新版本的hello库,源码放在new目录
#---------------------------------
add_executable(test_rule17
add_executable(test17
${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
)
# 以为hello库的头文件没有换过,一直用old目录里的hello.h
target_include_directories(test_rule17 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/old)
target_link_libraries(test_rule17 hello)
target_include_directories(test17 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/old)
target_link_libraries(test17 hello)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
27 changes: 27 additions & 0 deletions plugins/overlook/tests/test19.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4075?view=msvc-160

// C4075.cpp
// compile with: /W1
#pragma init_seg("mysegg") // C4075

// try..
// #pragma init_seg(user)

// https://stackoverflow.com/a/10199440/2999096

// ```
// #pragma init_seg
// ```
// 是VC++特有的

// g++不能用,但有个类似的:
// ```
// Some_Class A __attribute__ ((init_priority (2000)));
// Some_Class B __attribute__ ((init_priority (543)));
// ```


int main()
{
return 0;
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions plugins/overlook/tests/test31/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
add_executable(test31
${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions plugins/overlook/tests/test4/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
add_executable(test4
${CMAKE_CURRENT_SOURCE_DIR}/main.c
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 0 additions & 6 deletions plugins/overlook/tests/test_rule1/CMakeLists.txt

This file was deleted.

7 changes: 0 additions & 7 deletions plugins/overlook/tests/test_rule10/CMakeLists.txt

This file was deleted.

7 changes: 0 additions & 7 deletions plugins/overlook/tests/test_rule11/CMakeLists.txt

This file was deleted.

7 changes: 0 additions & 7 deletions plugins/overlook/tests/test_rule12/CMakeLists.txt

This file was deleted.

7 changes: 0 additions & 7 deletions plugins/overlook/tests/test_rule13/CMakeLists.txt

This file was deleted.

7 changes: 0 additions & 7 deletions plugins/overlook/tests/test_rule14/CMakeLists.txt

This file was deleted.

8 changes: 0 additions & 8 deletions plugins/overlook/tests/test_rule15/CMakeLists.txt

This file was deleted.

7 changes: 0 additions & 7 deletions plugins/overlook/tests/test_rule16/CMakeLists.txt

This file was deleted.

7 changes: 0 additions & 7 deletions plugins/overlook/tests/test_rule18/CMakeLists.txt

This file was deleted.

7 changes: 0 additions & 7 deletions plugins/overlook/tests/test_rule19/CMakeLists.txt

This file was deleted.

Loading

0 comments on commit e113258

Please sign in to comment.