Skip to content
Snippets Groups Projects
Commit d6f8a861 authored by Bart Ribbers's avatar Bart Ribbers
Browse files

community/snapcast: enable unit tests

parent 39cef475
No related branches found
No related tags found
1 merge request!21453community/snapcast: enable unit tests
......@@ -19,7 +19,6 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/badaix/snapcast/archive/v$pk
$pkgname-server.initd
$pkgname-server.confd
"
options="!check" # No testsuite
build() {
cmake -B build \
......@@ -29,16 +28,15 @@ build() {
-DBUILD_WITH_VORBIS=ON \
-DBUILD_WITH_OPUS=ON \
-DBUILD_WITH_AVAHI=ON
make -C build
cmake --build build
}
check() {
cd build
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
bin/snapcast_test
}
package() {
DESTDIR="$pkgdir" make -C build install
DESTDIR="$pkgdir" cmake --install build
}
client() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment