tests: move tests to the topmost directory 40/265640/3
authorYoungjae Cho <y0.cho@samsung.com>
Tue, 26 Oct 2021 01:36:25 +0000 (10:36 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Tue, 26 Oct 2021 01:51:27 +0000 (10:51 +0900)
Change-Id: I96af0cd9a652d2f5d1ed5467d73e57de8c63850e
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
38 files changed:
CMakeLists.txt
tests/auto-test/CMakeLists.txt [moved from src/auto-test/CMakeLists.txt with 95% similarity]
tests/auto-test/auto-test.conf [moved from src/auto-test/auto-test.conf with 100% similarity]
tests/auto-test/battery-monitor-test.c [moved from src/auto-test/battery-monitor-test.c with 100% similarity]
tests/auto-test/battery.c [moved from src/auto-test/battery.c with 100% similarity]
tests/auto-test/boot.c [moved from src/auto-test/boot.c with 100% similarity]
tests/auto-test/brightness.c [moved from src/auto-test/brightness.c with 100% similarity]
tests/auto-test/config.c [moved from src/auto-test/config.c with 100% similarity]
tests/auto-test/config.h [moved from src/auto-test/config.h with 100% similarity]
tests/auto-test/display.c [moved from src/auto-test/display.c with 100% similarity]
tests/auto-test/extcon.c [moved from src/auto-test/extcon.c with 100% similarity]
tests/auto-test/ir.c [moved from src/auto-test/ir.c with 100% similarity]
tests/auto-test/led.c [moved from src/auto-test/led.c with 100% similarity]
tests/auto-test/main.c [moved from src/auto-test/main.c with 100% similarity]
tests/auto-test/pmqos.c [moved from src/auto-test/pmqos.c with 100% similarity]
tests/auto-test/power.c [moved from src/auto-test/power.c with 100% similarity]
tests/auto-test/proc.c [moved from src/auto-test/proc.c with 100% similarity]
tests/auto-test/result.c [moved from src/auto-test/result.c with 100% similarity]
tests/auto-test/test.c [moved from src/auto-test/test.c with 100% similarity]
tests/auto-test/test.h [moved from src/auto-test/test.h with 100% similarity]
tests/auto-test/test_dbus_interface.c [moved from src/auto-test/test_dbus_interface.c with 100% similarity]
tests/auto-test/test_dbus_interface.h [moved from src/auto-test/test_dbus_interface.h with 100% similarity]
tests/auto-test/time.c [moved from src/auto-test/time.c with 100% similarity]
tests/auto-test/touchscreen.c [moved from src/auto-test/touchscreen.c with 100% similarity]
tests/auto-test/udev.c [moved from src/auto-test/udev.c with 100% similarity]
tests/deviced-common-private-test/CMakeLists.txt [moved from src/tests/shared/CMakeLists.txt with 96% similarity]
tests/deviced-common-private-test/test-bitmap.c [moved from src/tests/shared/test-bitmap.c with 100% similarity]
tests/deviced-common-private-test/test-device-notifier.c [moved from src/tests/shared/test-device-notifier.c with 100% similarity]
tests/deviced-common-private-test/test-main.c [moved from src/tests/shared/test-main.c with 100% similarity]
tests/deviced-common-private-test/test-main.h [moved from src/tests/shared/test-main.h with 100% similarity]
tests/deviced-common-private-test/test-mock.c [moved from src/tests/shared/test-mock.c with 100% similarity]
tests/deviced-common-private-test/test-mock.h [moved from src/tests/shared/test-mock.h with 100% similarity]
tests/deviced-common-private-test/test-plugin.c [moved from src/tests/shared/test-plugin.c with 100% similarity]
tests/usb-host-ffs-test-daemon/CMakeLists.txt [moved from src/tests/usb-host-ffs-test-daemon/CMakeLists.txt with 100% similarity]
tests/usb-host-ffs-test-daemon/descs_gen.c [moved from src/tests/usb-host-ffs-test-daemon/descs_gen.c with 100% similarity]
tests/usb-host-ffs-test-daemon/usb-host-ffs-test-daemon.c [moved from src/tests/usb-host-ffs-test-daemon/usb-host-ffs-test-daemon.c with 100% similarity]
tests/usb-host-test/test_gadget.gs [moved from src/tests/usb-host-test/test_gadget.gs with 100% similarity]
tests/usb-host-test/usb-host-test.c [moved from src/tests/usb-host-test/usb-host-test.c with 100% similarity]

index be87671..926fcbc 100644 (file)
@@ -143,9 +143,9 @@ IF(TIZEN_FEATURE_CPU_MODULE STREQUAL on)
 ENDIF()
 
 IF(TIZEN_FEATURE_USBHOST_TEST STREQUAL on)
-       ADD_SOURCE(src/tests/usb-host-test USB_HOST_TEST_SRCS)
+       ADD_SOURCE(tests/usb-host-test USB_HOST_TEST_SRCS)
        SET(SRCS ${SRCS} ${USB_HOST_TEST_SRCS})
-       INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/tests/usb-host-test/test_gadget.gs
+       INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/tests/usb-host-test/test_gadget.gs
                DESTINATION /etc/deviced/usb-host-test/)
 ENDIF()
 
@@ -324,10 +324,9 @@ ADD_SUBDIRECTORY(src/libdeviced)
 ADD_SUBDIRECTORY(src/tools/devicectl)
 ADD_SUBDIRECTORY(src/tools/partition-switch)
 IF(TIZEN_FEATURE_USBHOST_TEST STREQUAL on)
-       ADD_SUBDIRECTORY(src/tests/usb-host-ffs-test-daemon)
+       ADD_SUBDIRECTORY(tests/usb-host-ffs-test-daemon)
 ENDIF()
 
-ADD_SUBDIRECTORY(src/auto-test)
 
 # Plugins
 ADD_SOURCE(src/display DISPLAY_SRCS)
@@ -349,4 +348,5 @@ INSTALL_CONF(conf tv-display)
 INSTALL_CONF(conf iot-headed-display)
 
 # Tests
-ADD_SUBDIRECTORY(src/tests/shared)
+ADD_SUBDIRECTORY(tests/deviced-common-private-test)
+ADD_SUBDIRECTORY(tests/auto-test)
similarity index 95%
rename from src/auto-test/CMakeLists.txt
rename to tests/auto-test/CMakeLists.txt
index 91db6fd..341c366 100644 (file)
@@ -1,7 +1,7 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
 PROJECT(deviced-auto-test C)
 
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/src)
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src)
 
 IF("$ENV{CFLAGS}" MATCHES "-DTIZEN_ENGINEER_MODE")
     OPTION(USE_ENGINEER_MODE "Use Engineer mode" ON)
similarity index 100%
rename from src/auto-test/boot.c
rename to tests/auto-test/boot.c
similarity index 100%
rename from src/auto-test/ir.c
rename to tests/auto-test/ir.c
similarity index 100%
rename from src/auto-test/led.c
rename to tests/auto-test/led.c
similarity index 100%
rename from src/auto-test/main.c
rename to tests/auto-test/main.c
similarity index 100%
rename from src/auto-test/proc.c
rename to tests/auto-test/proc.c
similarity index 100%
rename from src/auto-test/test.c
rename to tests/auto-test/test.c
similarity index 100%
rename from src/auto-test/test.h
rename to tests/auto-test/test.h
similarity index 100%
rename from src/auto-test/time.c
rename to tests/auto-test/time.c
similarity index 100%
rename from src/auto-test/udev.c
rename to tests/auto-test/udev.c
similarity index 96%
rename from src/tests/shared/CMakeLists.txt
rename to tests/deviced-common-private-test/CMakeLists.txt
index 5cd27ed..7c3323d 100644 (file)
@@ -1,3 +1,4 @@
+# test for libdeviced-common-private.so
 SET(${CMAKE_C_FLAGS} $ENV{CFLAGS})
 
 ADD_DEFINITIONS("-DENABLE_TEST")