mirror of
https://github.com/gityf/crc.git
synced 2026-08-12 20:32:20 +08:00
Update README.md
This commit is contained in:
@@ -7,10 +7,26 @@
|
|||||||
git clone https://github.com/gityf/crc.git
|
git clone https://github.com/gityf/crc.git
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake .. -DBUILD_SHARED_LIBS=1
|
cmake .. -DBUILD_SHARED_LIBS=1 -DCRC_TESTS=1
|
||||||
make
|
make
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Testing
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
./crc_test
|
||||||
|
[ RUN ] ==== Test CRC8Test.BasicTest
|
||||||
|
[ RUN ] ==== Test CRC16Test.BasicTest
|
||||||
|
[ RUN ] ==== Test CRC32Test.BasicTest
|
||||||
|
[ RUN ] ==== Test CRC64Test.BasicTest
|
||||||
|
[ RUN ] ==== Test CRC8PolyTest.BasicTest
|
||||||
|
[ RUN ] ==== Test CRC16PolyTest.BasicTest
|
||||||
|
[ RUN ] ==== Test CRC32PolyTest.BasicTest
|
||||||
|
[ PASS ] ==== PASSED 7 tests
|
||||||
|
[ NOPASS ] ==== ERROR 0 tests
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
## Include
|
## Include
|
||||||
|
|
||||||
### Cmake build system
|
### Cmake build system
|
||||||
|
|||||||
Reference in New Issue
Block a user