Skip to content

Commit

Permalink
Add regression test.
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Jan 1, 2025
1 parent 62bdbe4 commit b23aca8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/regression/dune.inc
Original file line number Diff line number Diff line change
Expand Up @@ -975,6 +975,22 @@
(:run_test ../run_test.exe))
(action (run %{run_test} external-encoder.liq liquidsoap %{test_liq} external-encoder.liq)))

(rule
(alias citest)
(package liquidsoap)
(deps
fallible_ogg.liq
../media/all_media_files
../../src/bin/liquidsoap.exe
../streams/file1.png
../streams/file1.mp3
./theora-test.mp4
(package liquidsoap)
(source_tree ../../src/libs)
(:test_liq ../test.liq)
(:run_test ../run_test.exe))
(action (run %{run_test} fallible_ogg.liq liquidsoap %{test_liq} fallible_ogg.liq)))

(rule
(alias citest)
(package liquidsoap)
Expand Down
9 changes: 9 additions & 0 deletions tests/regression/fallible_ogg.liq
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
port = 9301

s = playlist("../media")

output.icecast(fallible=true, port=port, mount="test.flac", %ogg(%flac), s)

s = input.harbor("test.flac", buffer=1., port=port)

output.dummy(on_start=test.pass, fallible=true, s)

0 comments on commit b23aca8

Please sign in to comment.