sim590 / dpaste

A simple pastebin for light values (max 64KB) using OpenDHT distributed hash table (with support for encryption).
GNU General Public License v3.0
15 stars 4 forks source link

tests: Unit tests using Catch2 #9

Closed sim590 closed 6 years ago

sim590 commented 6 years ago

Catch2 is a lightweight and easy unit test framework holding completely in one header file. Unit tests that are to be imlpemented:

sim590 commented 6 years ago

This addresses issue #7.

sim590 commented 6 years ago

For now, tests can only be compiled using autotools. I'm thinking about enabling it with CMake.

sim590 commented 6 years ago

Autotools compiles source code twice: once for building dpaste and another time for building the unit test program.

sim590 commented 6 years ago

I now avoid building twice by first building a static library before building dpaste binary and tests. Both link on the static library.

aberaud commented 6 years ago

looks good :-)

sim590 commented 6 years ago

@aberaud: Have you seen the pirates? :skull_and_crossbones: