File tree 3 files changed +53
-0
lines changed
3 files changed +53
-0
lines changed Original file line number Diff line number Diff line change 22
22
23
23
if (CONFIG_TESTING_STRESSAPPTEST)
24
24
25
+ set (STRESSAPPTEST_DIR ${CMAKE_CURRENT_LIST_DIR} /stressapptest)
26
+
27
+ if (NOT EXISTS ${STRESSAPPTEST_DIR} )
28
+
29
+ set (STRESSAPPTEST_VERSION ${CONFIG_TESTING_STRESSAPPTEST_VERSION} )
30
+
31
+ FetchContent_Declare(
32
+ stressapptest
33
+ DOWNLOAD_NAME "v${STRESSAPPTEST_VERSION} .tar.gz"
34
+ DOWNLOAD_DIR ${CMAKE_CURRENT_LIST_DIR}
35
+ URL "https://github.com/stressapptest/stressapptest/archive/refs/tags/v${STRESSAPPTEST_VERSION} .tar.gz"
36
+ SOURCE_DIR
37
+ ${CMAKE_CURRENT_LIST_DIR} /stressapptest
38
+ BINARY_DIR
39
+ ${CMAKE_BINARY_DIR} /stressapptest
40
+ CONFIGURE_COMMAND
41
+ ""
42
+ BUILD_COMMAND
43
+ ""
44
+ INSTALL_COMMAND
45
+ ""
46
+ TEST_COMMAND
47
+ ""
48
+ DOWNLOAD_NO_PROGRESS true
49
+ TIMEOUT 30)
50
+
51
+ FetchContent_GetProperties(stressapptest)
52
+
53
+ if (NOT stressapptest_POPULATED)
54
+ FetchContent_Populate(stressapptest)
55
+ endif ()
56
+
57
+ endif ()
58
+
25
59
set (SRC_DIR ${CMAKE_CURRENT_LIST_DIR} /stressapptest/src)
26
60
27
61
set (SRCS
Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ config TESTING_STRESSAPPTEST
16
16
17
17
if TESTING_STRESSAPPTEST
18
18
19
+ config TESTING_STRESSAPPTEST_VERSION
20
+ string "Version of stressapptest"
21
+ default "1.0.11"
22
+
19
23
config TESTING_STRESSAPPTEST_PRIORITY
20
24
int "Priority of stressapptest process"
21
25
default 100
Original file line number Diff line number Diff line change 22
22
23
23
include $(APPDIR ) /Make.defs
24
24
25
+ STRESSAPPTEST_VERSION =$(patsubst "% ",% ,$(CONFIG_TESTING_STRESSAPPTEST_VERSION ) )
26
+
27
+ v$(STRESSAPPTEST_VERSION ) .tar.gz :
28
+ $(call DOWNLOAD,https://github.com/stressapptest/stressapptest/archive/refs/tags/,$@ )
29
+
30
+ stressapptest : v$(STRESSAPPTEST_VERSION ) .tar.gz
31
+ $(Q ) tar -xf $<
32
+ $(Q ) mv stressapptest-$(STRESSAPPTEST_VERSION ) stressapptest
33
+
34
+ context :: stressapptest
35
+
36
+ distclean ::
37
+ $(Q ) $(DELFILE ) v$(STRESSAPPTEST_VERSION ) .tar.gz
38
+ $(call DELDIR, stressapptest)
39
+
25
40
VPATH += stressapptest
26
41
VPATH += stressapptest/src
27
42
DEPPATH += --dep-path stressapptest
You can’t perform that action at this time.
0 commit comments