summaryrefslogtreecommitdiff
path: root/test/compile_database_perf
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2021-03-20 22:11:22 +0000
committerw0rp <devw0rp@gmail.com>2021-03-20 22:11:42 +0000
commitb1d833417bcb57e265e0d01df07b28f463529d4b (patch)
tree11421aeca89127b0cc9417f8ff4cb0d725199f49 /test/compile_database_perf
parent3838ae118d8f05fa1b1be7952a1c8aa3055d6728 (diff)
downloadale-b1d833417bcb57e265e0d01df07b28f463529d4b.zip
#3633 - Put all dummy test files in test/test-files
Diffstat (limited to 'test/compile_database_perf')
-rwxr-xr-xtest/compile_database_perf/test.sh29
1 files changed, 0 insertions, 29 deletions
diff --git a/test/compile_database_perf/test.sh b/test/compile_database_perf/test.sh
deleted file mode 100755
index 15a2b442..00000000
--- a/test/compile_database_perf/test.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/bash
-
-# Generate source files for ALE to read. They don't have to be very long, the delay is in reading compile_commands, not actually running tests
-mkdir -p gen_src
-for i in {1..400}; do echo "const char *GeneratedFunc${i}() { return \"Word ${i}\"; }" > gen_src/source${i}.cpp; done
-
-# Create the compile_commands database
-echo "[ {" > compile_commands.json
-
-for i in {1..399}; do
- {
- echo "\"command\": \"clang++ -c $(pwd)/gen_src/source${i}.cpp -o $(pwd)/build/obj/Debug/source${i}.o -MF $(pwd)/build/obj/Debug/source${i}.d -MMD -MP\","
- echo "\"directory\": \"$(pwd)/build\","
- echo "\"file\": \"$(pwd)/gen_src/source${i}.cpp\""
- echo "}, {"
- } >> compile_commands.json
-done
-
-{
- echo "\"command\": \"clang++ -c $(pwd)/gen_src/source400.cpp -o $(pwd)/build/obj/Debug/source400.o -MF $(pwd)/build/obj/Debug/source400.d -MMD -MP\","
- echo "\"directory\": \"$(pwd)/build\","
- echo "\"file\": \"$(pwd)/gen_src/source400.cpp\""
- echo "} ]"
-} >> compile_commands.json
-
-# Start up vim and switch back and forth between files -- at least one of the files must be near the bottom of compile_commands.json
-time vim -c "for i in range(0,20) | edit gen_src/source10.cpp | edit gen_src/source400.cpp | endfor" \
- -c "noautocmd qa!" \
- `find . | grep "source..\.cpp"`