Closed sim590 closed 6 years ago
This addresses issue #7.
For now, tests can only be compiled using autotools
. I'm thinking about enabling it with CMake.
Autotools compiles source code twice: once for building dpaste
and another time for building the unit test program.
I now avoid building twice by first building a static library before building dpaste
binary and tests. Both link on the static library.
looks good :-)
@aberaud: Have you seen the pirates? :skull_and_crossbones:
Catch2 is a lightweight and easy unit test framework holding completely in one header file. Unit tests that are to be imlpemented:
dpaste::Bin::get/paste
;dpaste::Bin::code_from_dpaste_uri
;dpaste::Bin::data_from_stream
;dpaste::Node::get/paste
;dpaste::conf::getConfiguration
.