From: fennecdjay Date: Thu, 1 Feb 2024 12:18:16 +0000 (+0100) Subject: :fire: remove opt tests for now X-Git-Tag: nightly~102 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=d45895bafb8331aa8320967537431a8c28c8cadd;p=gwion.git :fire: remove opt tests for now --- diff --git a/tests/sh/opt.sh b/tests/sh/opt.sh deleted file mode 100644 index 19d68b19..00000000 --- a/tests/sh/opt.sh +++ /dev/null @@ -1,108 +0,0 @@ -#!/bin/bash -# [test] #23 - -n=0 -[ "$1" ] && n="$1" -[ "$n" -eq 0 ] && n=1 -source tests/sh/common.sh - -run "$n" "test arguments" "examples/array_lit:12" "file" - -n=$((n+1)) -run "$n" "simple run" "" "file" - -# help -n=$((n+1)) -run "$n" "help (short)" "-?" "file" - -# host -n=$((n+1)) -run "$n" "host invalid (short)" "-h non_existant_host" "file" - -# help -n=$((n+1)) -run "$n" "help (short)" "-?" "file" - -# in channels -n=$((n+1)) -run "$n" "in channels (short)" "-i 2" "file" - -# out channels -n=$((n+1)) -run "$n" "out channels (short)" "-o 2" "file" - -# samplerate -n=$((n+1)) -run "$n" "samplerate (short)" "-s 44100" "file" - -# wrong file -n=$((n+1)) -run "$n" "wrong file" "non_existant_file:with_args" "file" - -# plug_dir -n=$((n+1)) -run "$n" "plugin directory" "-p non_existant_dir" "file" - -# plug_dir -n=$((n+1)) -run "$n" "arg is a directory" "-p src" "file" - -# config -n=$((n+1)) -RC=./tmp_gwionrc -cat << EOF > "$RC" --p. --l0 -EOF -run "$n" "config" "-c$RC" "file" -rm "$RC" - -# loop -n=$((n+1)) -run "$n" "loop" "-l0" "file" - -# (fake) module arg -n=$((n+1)) -run "$n" "module argument" "-mfake:test" "file" - -# set compilation passes -n=$((n+1)) -run "$n" "just check" "-g check" "file" - -# set compilation passes -n=$((n+1)) -run "$n" "no pass" "-g nopass" "file" - -# option needs argument -n=$((n+1)) -run "$n" "option needs argument" "-p" "file" - -# invalid global type -n=$((n+1)) -run "$n" "invalid global type" "examples/complex/invalid_type0.gw examples/complex/invalid_type1.gw" "file" - -# invalid global func -n=$((n+1)) -run "$n" "invalid global func" "examples/complex/invalid_func0.gw examples/complex/invalid_func1.gw" "file" - -# comma in module argument, uses the now deprecated -mpp -n=$((n+1)) -run "$n" "comma in module argument" "-mpp=-Dtest='\"dqs\,qs\"',-Dtsdl" "file" - -# define -n=$((n+1)) -run "$n" "define" "-Dtest(a)=#a" "file" - -# undef -n=$((n+1)) -run "$n" "undef" "-Utest" "nofile" - -# include path -n=$((n+1)) -run "$n" "include path" "-I../Gwion" "file" - -# test signal -# mask asan output for now -./gwion -l1 &>/dev/null & -PID=$! -sleep .1 && kill $PID