From 7f5a3bdb7f03922738535b579db5256ca09fbb38 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 13 Mar 2023 02:14:52 +0400 Subject: [PATCH] Let's actually add a test config and a testing run target in makefile. --- Makefile | 3 +++ configs/config.test.yaml | 15 +++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 configs/config.test.yaml diff --git a/Makefile b/Makefile index a553e2e..060928e 100755 --- a/Makefile +++ b/Makefile @@ -17,6 +17,9 @@ ${TARGET}: install-jade: go install github.com/Joker/jade/cmd/jade@latest +run: + bin/dwelling-radio -no-liquidsoap -conf configs/config.test.yaml + install: install -Dm 0755 bin/${TARGET} ${DESTDIR}usr/bin/${TARGET} install -Dm 0755 tools/radioctl ${DESTDIR}usr/bin/${TARGET}ctl diff --git a/configs/config.test.yaml b/configs/config.test.yaml new file mode 100644 index 0000000..6b05265 --- /dev/null +++ b/configs/config.test.yaml @@ -0,0 +1,15 @@ +# Sets network type (could be tcp{,4,6}, unix) +# and address:port or /path/to/unix.sock to +# listen on. +listen_on: "tcp 127.0.0.1:16387" +icecast: + # URL to Icecast's status-json.xsl + url: "http://radio.arav.home.arpa/status-json.xsl" + playlist_path: "playlist.log" +filelist_path: "/srv/radio/filelist.html" +most_listened_song_file_path: "/mnt/data/appdata/mostlistenedsong" +liquidsoap: + executable_path: "/opt/opam/4.14.0/bin/liquidsoap" + script_path: "/etc/dwelling/radio.liq" +# How much songs to list on a page +list_last_n_songs: 10 \ No newline at end of file