From 423104f15c9af1e07b9368564065b4478782ea26 Mon Sep 17 00:00:00 2001
From: David Trattnig <david@subsquare.at>
Date: Fri, 11 Jun 2021 19:01:48 +0200
Subject: [PATCH] General framesize test. #6 #1

---
 contrib/get_framesize.sh => tests/test_framesize.liq | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
 rename contrib/get_framesize.sh => tests/test_framesize.liq (75%)

diff --git a/contrib/get_framesize.sh b/tests/test_framesize.liq
similarity index 75%
rename from contrib/get_framesize.sh
rename to tests/test_framesize.liq
index 7acebe8..dc6c7fd 100755
--- a/contrib/get_framesize.sh
+++ b/tests/test_framesize.liq
@@ -1,8 +1,8 @@
-#!/bin/bash
+#!/usr/bin/env liquidsoap
 #
 # Aura Engine (https://gitlab.servus.at/aura/engine)
 #
-# Copyright (C) 2017-2020 - The Aura Engine Team.
+# Copyright (C) 2017-now() - The Aura Engine Team.
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU Affero General Public License as published by
@@ -18,4 +18,9 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
-liquidsoap -v --debug 'input.alsa(bufferize=false)' | grep "Could not set buffer size to 'frame.size'"
\ No newline at end of file
+set("init.allow_root", true)
+set("log.file.path", "../logs/<script>.log")
+
+set("frame.audio.size", 0)
+set("frame.video.framerate", 0)
+input.alsa(bufferize=false)
\ No newline at end of file
-- 
GitLab