forked from OpenTimer/OpenTimer
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (39 loc) · 1.29 KB
/
Makefile
File metadata and controls
49 lines (39 loc) · 1.29 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
# Makefile for CCS Parser Tests
CXX = g++
CXXFLAGS = -std=c++17 -I. -O2
LIBS = ot/liberty/*.cpp ot/unit/*.cpp
# Test programs
TESTS = test_ccs_quick test_ccs_comprehensive test_output_current
.PHONY: all clean test
all: $(TESTS)
test_ccs_quick: test_ccs_quick.cpp
$(CXX) $(CXXFLAGS) -o $@ $< $(LIBS)
test_ccs_comprehensive: test_ccs_comprehensive.cpp
$(CXX) $(CXXFLAGS) -o $@ $< $(LIBS)
test_output_current: test_output_current.cpp
$(CXX) $(CXXFLAGS) -o $@ $< $(LIBS)
# Run quick test
test: test_ccs_quick
./test_ccs_quick
# Run comprehensive tests
test-all: test_ccs_comprehensive
./test_ccs_comprehensive
# Clean up
clean:
rm -f $(TESTS) *.o
# Help
help:
@echo "CCS Parser Test Suite"
@echo "===================="
@echo "make all - Build all test programs"
@echo "make test - Run quick test"
@echo "make test-all - Run comprehensive tests"
@echo "make clean - Clean build files"
@echo ""
@echo "Individual tests:"
@echo " ./test_ccs_quick [lib_file] - Quick test (default: test_ccs_minimal.lib)"
@echo " ./test_ccs_comprehensive - Full test suite"
@echo " ./test_output_current - Original output_current test"
@echo ""
@echo "Test with your own file:"
@echo " ./test_ccs_quick path/to/your/file.lib"