Skip to content

Commit

Permalink
Merge pull request #26 from sunxfancy/dev
Browse files Browse the repository at this point in the history
v0.3 finished
  • Loading branch information
sunxfancy authored Jun 28, 2024
2 parents c7257ca + d2b6f46 commit 7a27788
Show file tree
Hide file tree
Showing 25 changed files with 2,036 additions and 745 deletions.
4 changes: 3 additions & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ PointerAlignment: Left
MaxEmptyLinesToKeep: 2

SortIncludes: true
SortUsingDeclarations: true
SortUsingDeclarations: true

QualifierAlignment: Left
25 changes: 25 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Windows reporter",
"program": "${workspaceFolder}/build/windows/test/Debug/unittest.exe",
"args": ["--no-color", "--log-to-report", "--reporters=xml"],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
Expand All @@ -20,6 +28,14 @@
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Linux reporter",
"program": "${workspaceFolder}/build/linux/test/unittest",
"args": ["--no-color", "--log-to-report", "--reporters=xml"],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
Expand All @@ -36,5 +52,14 @@
"args": ["-f", "--testcase=fuzz_test.*"],
"cwd": "${workspaceFolder}"
}
,
{
"type": "lldb",
"request": "launch",
"name": "Linux-speed",
"program": "${workspaceFolder}/build/linux/test/unittest",
"args": ["-b", "--testcase=speedtest"],
"cwd": "${workspaceFolder}"
}
]
}
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,25 @@ fuzz: linux
linux-test: linux
cd build/linux/test && ./unittest

reporter: linux
cd build/linux/test && ./unittest --no-color --log-to-report --reporters=xml

windows-test: windows
cd build/windows/test && ./Debug/unittest.exe


build/linux-release/Makefile: Makefile
mkdir -p build/linux-release
cmake -B build/linux-release -S . -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_STANDARD=11 \
-DBUILD_EXAMPLES=ON -DBUILD_TEST=ON -DUSE_MOLD=ON -DENABLE_FUZZING=ON \
-DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang

linux-release: build/linux-release/Makefile
cmake --build build/linux-release -j `nproc`

bench: linux-release
cd build/linux-release/test && ./unittest -b --testcase=speedtest

doc-dev:
yarn run cmake:dev

Expand Down
248 changes: 0 additions & 248 deletions Readme.en.md

This file was deleted.

Loading

0 comments on commit 7a27788

Please sign in to comment.