Browse Source

Merge pull request #4140 from paulfantom/clean_tests

[cleanup crusade] move profiling to tests directory
Costa Tsaousis 6 years ago
parent
commit
89bf2f92e5

+ 6 - 6
.gitignore

@@ -103,12 +103,12 @@ src/cppcheck-build/
 
 
 # debugging / profiling
 # debugging / profiling
 makeself/debug/
 makeself/debug/
-profile/benchmark-dictionary
-profile/benchmark-registry
-profile/test-eval
-profile/benchmark-line-parsing
-profile/benchmark-procfile-parser
-profile/statsd-stress
+tests/profile/benchmark-dictionary
+tests/profile/benchmark-registry
+tests/profile/test-eval
+tests/profile/benchmark-line-parsing
+tests/profile/benchmark-procfile-parser
+tests/profile/statsd-stress
 oprofile_data/
 oprofile_data/
 vgcore.*
 vgcore.*
 callgrind.out.*
 callgrind.out.*

+ 1 - 1
packaging/tar-compare

@@ -58,7 +58,7 @@ diff -r "$1" $MYTMP/unpack/* | grep "^Only" | sed \
 	-e '/: iprange$/d' \
 	-e '/: iprange$/d' \
 	-e '/: .*\.o$/d' \
 	-e '/: .*\.o$/d' \
 	-e '/: CMakeLists.txt/d' \
 	-e '/: CMakeLists.txt/d' \
-	-e '/: profile$/d' \
+	-e '/: tests$/d' \
 	-e '/python.d: python-modules-installer\.sh\.in$/d' \
 	-e '/python.d: python-modules-installer\.sh\.in$/d' \
 	-e '/: .travis.yml/d' > $MYTMP/out
 	-e '/: .travis.yml/d' > $MYTMP/out
 
 

+ 0 - 12
profile/Makefile

@@ -1,12 +0,0 @@
-# SPDX-License-Identifier: GPL-3.0+
-
-COMMON_CFLAGS=-I ../src/ -I ../
-PROFILE_CFLAGS=-O1 -ggdb -Wall -Wextra 
-
-benchmark-procfile-parser: benchmark-procfile-parser.c
-	gcc ${PROFILE_CFLAGS} ${COMMON_CFLAGS} -o $@ $^ ../src/log.o ../src/procfile.o ../src/threads.o ../src/locks.o ../src/common.o ../src/clocks.o ../src/web_buffer.o ../src/storage_number.o -pthread -lm
-
-statsd-stress: statsd-stress.c
-	gcc -O2 -Wall -Wextra -o $@ $^ -pthread
-
-all: statsd-stress benchmark-procfile-parser

+ 12 - 0
tests/profile/Makefile

@@ -0,0 +1,12 @@
+# SPDX-License-Identifier: GPL-3.0+
+
+COMMON_CFLAGS=-I ../../src/ -I ../../
+PROFILE_CFLAGS=-O1 -ggdb -Wall -Wextra 
+
+benchmark-procfile-parser: benchmark-procfile-parser.c
+	gcc ${PROFILE_CFLAGS} ${COMMON_CFLAGS} -o $@ $^ ../../src/log.o ../../src/procfile.o ../../src/threads.o ../../src/locks.o ../../src/common.o ../../src/clocks.o ../../src/web_buffer.o ../../src/storage_number.o -pthread -lm
+
+statsd-stress: statsd-stress.c
+	gcc -O2 -Wall -Wextra -o $@ $^ -pthread
+
+all: statsd-stress benchmark-procfile-parser

+ 2 - 2
profile/benchmark-dictionary.c → tests/profile/benchmark-dictionary.c

@@ -1,9 +1,9 @@
 /* SPDX-License-Identifier: GPL-3.0+ */
 /* SPDX-License-Identifier: GPL-3.0+ */
 /*
 /*
  * 1. build netdata (as normally)
  * 1. build netdata (as normally)
- * 2. cd profile/
+ * 2. cd tests/profile/
  * 3. compile with:
  * 3. compile with:
- *    gcc -O3 -Wall -Wextra -I ../src/ -I ../ -o benchmark-dictionary benchmark-dictionary.c ../src/dictionary.o ../src/log.o ../src/avl.o ../src/common.o -pthread
+ *    gcc -O3 -Wall -Wextra -I ../../src/ -I ../../ -o benchmark-dictionary benchmark-dictionary.c ../../src/dictionary.o ../../src/log.o ../../src/avl.o ../../src/common.o -pthread
  *
  *
  */
  */
 
 

+ 0 - 0
profile/benchmark-line-parsing.c → tests/profile/benchmark-line-parsing.c


+ 0 - 0
profile/benchmark-procfile-parser.c → tests/profile/benchmark-procfile-parser.c


+ 0 - 0
profile/benchmark-registry.c → tests/profile/benchmark-registry.c


+ 0 - 0
profile/benchmark-strcmp.c → tests/profile/benchmark-strcmp.c


+ 0 - 0
profile/statsd-stress.c → tests/profile/statsd-stress.c


Some files were not shown because too many files changed in this diff