1
1
mirror of https://github.com/wader/fq.git synced 2024-12-29 00:22:38 +03:00
fq/pkg/cli/test.exp
2021-09-19 01:19:48 +02:00

30 lines
452 B
Plaintext
Executable File

#!/usr/bin/env expect
# TODO: move this script somehwere else
# TODO: run without NO_DECODE_PROGRESS
# TODO: test interrupt?
log_user 1
set timeout 1
expect_after {
timeout {exit 1}
}
spawn sh -c "NO_DECODE_PROGRESS=1 fq -o color=false -i . pkg/interp/testdata/test.mp3 2>&1"
expect "mp3> "
send ".\n"
expect "footers"
expect "mp3> "
send ".frames | mp3_fr\t"
expect "mp3_frame"
send "\n"
expect "side_info"
# ctrl-d
send "\x04"
expect eof