-
Clone the Repository
git clone https://github.com/hyj666-maker/ChameLib.git cd ChameLib -
Build
mkdir build cd build cmake .. make
-
Run base tests
cd build ctest -L "basetest"Run individual base test
cd build ./bin/[BASETEST_NAME] -
Run benchmark tests
cd build ctest -L "benchmarktest"Run individual benchmark test
cd build ./bin/[BENCHMARKTEST_NAME]Command-Line Arguments
The test programs support the following command-line arguments:
-
--repeator-r: Set the number of repetitions for the test (default: 100). Example:./bin/[BENCHMARKTEST_NAME] --repeat 200or
./bin/[BENCHMARKTEST_NAME] -r 200 -
--checktimeor-c: Enable time checking to verify runtime consistency (default: disabled). Example:./bin/[BENCHMARKTEST_NAME] --checktimeor
./bin/[BENCHMARKTEST_NAME] -c -
--helpor-h: Display help information about the available arguments. Example:./bin/[BENCHMARKTEST_NAME] --helpor
./bin/[BENCHMARKTEST_NAME] -h
-