-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbuild_tests.sh
More file actions
executable file
·36 lines (32 loc) · 1010 Bytes
/
Copy pathbuild_tests.sh
File metadata and controls
executable file
·36 lines (32 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# Build script for Catch2 tests
# Requires: Catch2, nlohmann-json, hiredis, uuid libraries
echo "Building Catch2 tests for cppq..."
# Compile the test file
g++ -std=c++17 \
tests.cpp \
-o tests \
-I. \
-lCatch2Main -lCatch2 \
-lhiredis \
-luuid \
-lpthread \
-Wall -Wextra
if [ $? -eq 0 ]; then
echo "Build successful!"
echo ""
echo "Make sure Redis is running on localhost:6379 before running tests."
echo "To run tests: ./tests"
echo "To run specific test sections: ./tests [queue] or ./tests [scheduling]"
echo ""
echo "Available test tags:"
echo " [queue] - Basic enqueue/dequeue operations"
echo " [scheduling] - Task scheduling functionality"
echo " [recovery] - Task recovery mechanism"
echo " [pause] - Queue pause/unpause functionality"
echo " [threadpool] - Thread pool functionality"
echo " [errors] - Error handling and edge cases"
else
echo "Build failed!"
exit 1
fi