Updated unit tests

-Added tests for functions
-Added error class and return from package manager functions
-Updated `compile.sh` script
This commit is contained in:
David Allen 2023-01-07 14:50:09 -06:00
parent d4b1ea90c6
commit 5ffce72fa5
7 changed files with 109 additions and 42 deletions

View file

@ -9,9 +9,15 @@
# CMake/ninja build system
mkdir -p build
cmake -B build -S . -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -G Ninja
ninja -C build
ninja -C build -j $(nproc)
# Create symlinks to executables in build folder if necessary
rm bin/gdpm bin/gdpm-tests
ln -s ../build/gdpm bin/gdpm
ln -s ../build/gdpm-tests bin/gdpm-tests
if test -f "../build/gdpm"; then
rm bin/gdpm
ln -s ../build/gdpm bin/gdpm
fi
if test -f "../build/gdpm-tests"; then
rm bin/gdpm-tests
ln -s ../build/gdpm-tests bin/gdpm-tests
fi