mirror of
https://github.com/eza-community/eza
synced 2024-07-21 10:06:43 +00:00
test(itest): remove vhs-runner files
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
This commit is contained in:
parent
bf94aa65ba
commit
c812576e61
|
@ -1,152 +0,0 @@
|
|||
>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
────────────────────────────────────────────────────────────────────────────────
|
||||
> cd tests/itest/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
────────────────────────────────────────────────────────────────────────────────
|
||||
> cd tests/itest
|
||||
>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
────────────────────────────────────────────────────────────────────────────────
|
||||
> cd tests/itest
|
||||
>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
────────────────────────────────────────────────────────────────────────────────
|
||||
> cd tests/itest
|
||||
> cargo run -q -- -l --blocksize --no-user --no-time --no-filesize
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
────────────────────────────────────────────────────────────────────────────────
|
||||
> cd tests/itest
|
||||
> cargo run -q -- -l --blocksize --no-user --no-time --no-filesize
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
────────────────────────────────────────────────────────────────────────────────
|
||||
> cd tests/itest
|
||||
> cargo run -q -- -l --blocksize --no-user --no-time --no-filesize
|
||||
.rw-r--r-- 0 a
|
||||
.rw-r--r-- 0 b
|
||||
.rw-r--r-- 0 c
|
||||
.rw-r--r-- 0 d
|
||||
.rw-r--r-- 0 e
|
||||
.rw-r--r-- 0 f
|
||||
.rw-r--r-- 0 g
|
||||
.rw-r--r-- 0 h
|
||||
.rw-r--r-- 0 i
|
||||
.rw-r--r-- 0 j
|
||||
.rw-r--r-- 0 k
|
||||
.rw-r--r-- 0 l
|
||||
.rw-r--r-- 0 m
|
||||
.rw-r--r-- 0 n
|
||||
.rw-r--r-- 0 o
|
||||
.rw-r--r-- 0 p
|
||||
────────────────────────────────────────────────────────────────────────────────
|
||||
> cd tests/itest
|
||||
> cargo run -q -- -l --blocksize --no-user --no-time --no-filesize
|
||||
.rw-r--r-- 0 a
|
||||
.rw-r--r-- 0 b
|
||||
.rw-r--r-- 0 c
|
||||
.rw-r--r-- 0 d
|
||||
.rw-r--r-- 0 e
|
||||
.rw-r--r-- 0 f
|
||||
.rw-r--r-- 0 g
|
||||
.rw-r--r-- 0 h
|
||||
.rw-r--r-- 0 i
|
||||
.rw-r--r-- 0 j
|
||||
.rw-r--r-- 0 k
|
||||
.rw-r--r-- 0 l
|
||||
.rw-r--r-- 0 m
|
||||
.rw-r--r-- 0 n
|
||||
.rw-r--r-- 0 o
|
||||
.rw-r--r-- 0 p
|
||||
────────────────────────────────────────────────────────────────────────────────
|
|
@ -1,266 +0,0 @@
|
|||
>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
────────────────────────────────────────────────────────────────────────────────
|
||||
> cd tests/itest/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
────────────────────────────────────────────────────────────────────────────────
|
||||
> cd tests/itest
|
||||
>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
────────────────────────────────────────────────────────────────────────────────
|
||||
> cd tests/itest
|
||||
>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
────────────────────────────────────────────────────────────────────────────────
|
||||
> cd tests/itest
|
||||
> cargo run -q -- -l --no-user --no-time --no-filesize
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
────────────────────────────────────────────────────────────────────────────────
|
||||
> cd tests/itest
|
||||
> cargo run -q -- -l --no-user --no-time --no-filesize
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
────────────────────────────────────────────────────────────────────────────────
|
||||
> cd tests/itest
|
||||
> cargo run -q -- -l --no-user --no-time --no-filesize
|
||||
.rw-r--r-- a
|
||||
.rw-r--r-- b
|
||||
.rw-r--r-- c
|
||||
.rw-r--r-- d
|
||||
.rw-r--r-- e
|
||||
.rw-r--r-- f
|
||||
.rw-r--r-- g
|
||||
.rw-r--r-- h
|
||||
.rw-r--r-- i
|
||||
.rw-r--r-- j
|
||||
.rw-r--r-- k
|
||||
.rw-r--r-- l
|
||||
.rw-r--r-- m
|
||||
.rw-r--r-- n
|
||||
.rw-r--r-- o
|
||||
.rw-r--r-- p
|
||||
────────────────────────────────────────────────────────────────────────────────
|
||||
> cd tests/itest
|
||||
> cargo run -q -- -l --no-user --no-time --no-filesize
|
||||
.rw-r--r-- a
|
||||
.rw-r--r-- b
|
||||
.rw-r--r-- c
|
||||
.rw-r--r-- d
|
||||
.rw-r--r-- e
|
||||
.rw-r--r-- f
|
||||
.rw-r--r-- g
|
||||
.rw-r--r-- h
|
||||
.rw-r--r-- i
|
||||
.rw-r--r-- j
|
||||
.rw-r--r-- k
|
||||
.rw-r--r-- l
|
||||
.rw-r--r-- m
|
||||
.rw-r--r-- n
|
||||
.rw-r--r-- o
|
||||
.rw-r--r-- p
|
||||
────────────────────────────────────────────────────────────────────────────────
|
||||
> cd tests/itest
|
||||
> cargo run -q -- -l --no-user --no-time --no-filesize
|
||||
.rw-r--r-- a
|
||||
.rw-r--r-- b
|
||||
.rw-r--r-- c
|
||||
.rw-r--r-- d
|
||||
.rw-r--r-- e
|
||||
.rw-r--r-- f
|
||||
.rw-r--r-- g
|
||||
.rw-r--r-- h
|
||||
.rw-r--r-- i
|
||||
.rw-r--r-- j
|
||||
.rw-r--r-- k
|
||||
.rw-r--r-- l
|
||||
.rw-r--r-- m
|
||||
.rw-r--r-- n
|
||||
.rw-r--r-- o
|
||||
.rw-r--r-- p
|
||||
────────────────────────────────────────────────────────────────────────────────
|
||||
> cd tests/itest
|
||||
> cargo run -q -- -l --no-user --no-time --no-filesize
|
||||
.rw-r--r-- a
|
||||
.rw-r--r-- b
|
||||
.rw-r--r-- c
|
||||
.rw-r--r-- d
|
||||
.rw-r--r-- e
|
||||
.rw-r--r-- f
|
||||
.rw-r--r-- g
|
||||
.rw-r--r-- h
|
||||
.rw-r--r-- i
|
||||
.rw-r--r-- j
|
||||
.rw-r--r-- k
|
||||
.rw-r--r-- l
|
||||
.rw-r--r-- m
|
||||
.rw-r--r-- n
|
||||
.rw-r--r-- o
|
||||
.rw-r--r-- p
|
||||
────────────────────────────────────────────────────────────────────────────────
|
||||
> cd tests/itest
|
||||
> cargo run -q -- -l --no-user --no-time --no-filesize
|
||||
.rw-r--r-- a
|
||||
.rw-r--r-- b
|
||||
.rw-r--r-- c
|
||||
.rw-r--r-- d
|
||||
.rw-r--r-- e
|
||||
.rw-r--r-- f
|
||||
.rw-r--r-- g
|
||||
.rw-r--r-- h
|
||||
.rw-r--r-- i
|
||||
.rw-r--r-- j
|
||||
.rw-r--r-- k
|
||||
.rw-r--r-- l
|
||||
.rw-r--r-- m
|
||||
.rw-r--r-- n
|
||||
.rw-r--r-- o
|
||||
.rw-r--r-- p
|
||||
────────────────────────────────────────────────────────────────────────────────
|
||||
> cd tests/itest
|
||||
> cargo run -q -- -l --no-user --no-time --no-filesize
|
||||
.rw-r--r-- a
|
||||
.rw-r--r-- b
|
||||
.rw-r--r-- c
|
||||
.rw-r--r-- d
|
||||
.rw-r--r-- e
|
||||
.rw-r--r-- f
|
||||
.rw-r--r-- g
|
||||
.rw-r--r-- h
|
||||
.rw-r--r-- i
|
||||
.rw-r--r-- j
|
||||
.rw-r--r-- k
|
||||
.rw-r--r-- l
|
||||
.rw-r--r-- m
|
||||
.rw-r--r-- n
|
||||
.rw-r--r-- o
|
||||
.rw-r--r-- p
|
||||
────────────────────────────────────────────────────────────────────────────────
|
||||
> cd tests/itest
|
||||
> cargo run -q -- -l --no-user --no-time --no-filesize
|
||||
.rw-r--r-- a
|
||||
.rw-r--r-- b
|
||||
.rw-r--r-- c
|
||||
.rw-r--r-- d
|
||||
.rw-r--r-- e
|
||||
.rw-r--r-- f
|
||||
.rw-r--r-- g
|
||||
.rw-r--r-- h
|
||||
.rw-r--r-- i
|
||||
.rw-r--r-- j
|
||||
.rw-r--r-- k
|
||||
.rw-r--r-- l
|
||||
.rw-r--r-- m
|
||||
.rw-r--r-- n
|
||||
.rw-r--r-- o
|
||||
.rw-r--r-- p
|
||||
────────────────────────────────────────────────────────────────────────────────
|
||||
> cd tests/itest
|
||||
> cargo run -q -- -l --no-user --no-time --no-filesize
|
||||
.rw-r--r-- a
|
||||
.rw-r--r-- b
|
||||
.rw-r--r-- c
|
||||
.rw-r--r-- d
|
||||
.rw-r--r-- e
|
||||
.rw-r--r-- f
|
||||
.rw-r--r-- g
|
||||
.rw-r--r-- h
|
||||
.rw-r--r-- i
|
||||
.rw-r--r-- j
|
||||
.rw-r--r-- k
|
||||
.rw-r--r-- l
|
||||
.rw-r--r-- m
|
||||
.rw-r--r-- n
|
||||
.rw-r--r-- o
|
||||
.rw-r--r-- p
|
||||
────────────────────────────────────────────────────────────────────────────────
|
|
@ -1,114 +0,0 @@
|
|||
>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
────────────────────────────────────────────────────────────────────────────────
|
||||
> cargo run -q -- -l --no-user --no-time --no-filesize
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
────────────────────────────────────────────────────────────────────────────────
|
||||
> cargo run -q -- -l --no-user --no-time --no-filesize
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
────────────────────────────────────────────────────────────────────────────────
|
||||
> cargo run -q -- -l --no-user --no-time --no-filesize
|
||||
.rw-r--r-- build.rs
|
||||
.rw-r--r-- Cargo.lock
|
||||
.rw-r--r-- Cargo.toml
|
||||
.rw-r--r-- CHANGELOG.md
|
||||
.rw-r--r-- cliff.toml
|
||||
.rw-r--r-- CODE_OF_CONDUCT.md
|
||||
drwxr-xr-x completions
|
||||
.rw-r--r-- CONTRIBUTING.md
|
||||
.rw-r--r-- deb.asc
|
||||
drwxr-xr-x devtools
|
||||
.rw-r--r-- flake.lock
|
||||
.rw-r--r-- flake.nix
|
||||
.rw-r--r-- Justfile
|
||||
.rw-r--r-- LICENCE
|
||||
drwxr-xr-x man
|
||||
.rw-r--r-- out.gif
|
||||
.rw-r--r-- README.md
|
||||
────────────────────────────────────────────────────────────────────────────────
|
||||
> cargo run -q -- -l --no-user --no-time --no-filesize
|
||||
.rw-r--r-- build.rs
|
||||
.rw-r--r-- Cargo.lock
|
||||
.rw-r--r-- Cargo.toml
|
||||
.rw-r--r-- CHANGELOG.md
|
||||
.rw-r--r-- cliff.toml
|
||||
.rw-r--r-- CODE_OF_CONDUCT.md
|
||||
drwxr-xr-x completions
|
||||
.rw-r--r-- CONTRIBUTING.md
|
||||
.rw-r--r-- deb.asc
|
||||
drwxr-xr-x devtools
|
||||
.rw-r--r-- flake.lock
|
||||
.rw-r--r-- flake.nix
|
||||
.rw-r--r-- Justfile
|
||||
.rw-r--r-- LICENCE
|
||||
drwxr-xr-x man
|
||||
.rw-r--r-- out.gif
|
||||
.rw-r--r-- README.md
|
||||
────────────────────────────────────────────────────────────────────────────────
|
||||
> cargo run -q -- -l --no-user --no-time --no-filesize
|
||||
.rw-r--r-- build.rs
|
||||
.rw-r--r-- Cargo.lock
|
||||
.rw-r--r-- Cargo.toml
|
||||
.rw-r--r-- CHANGELOG.md
|
||||
.rw-r--r-- cliff.toml
|
||||
.rw-r--r-- CODE_OF_CONDUCT.md
|
||||
drwxr-xr-x completions
|
||||
.rw-r--r-- CONTRIBUTING.md
|
||||
.rw-r--r-- deb.asc
|
||||
drwxr-xr-x devtools
|
||||
.rw-r--r-- flake.lock
|
||||
.rw-r--r-- flake.nix
|
||||
.rw-r--r-- Justfile
|
||||
.rw-r--r-- LICENCE
|
||||
drwxr-xr-x man
|
||||
.rw-r--r-- out.gif
|
||||
.rw-r--r-- README.md
|
||||
────────────────────────────────────────────────────────────────────────────────
|
|
@ -1,17 +0,0 @@
|
|||
Output outfile
|
||||
|
||||
Set DisableRender true
|
||||
|
||||
Set Shell fish
|
||||
Sleep 2s
|
||||
|
||||
Type "cd tests/itest"
|
||||
Enter
|
||||
Sleep 1s
|
||||
|
||||
Type "cargo run -q -- -l --blocksize --no-user --no-time --no-filesize"
|
||||
Enter
|
||||
Sleep 3s
|
||||
|
||||
Ctrl+D
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
Output outfile
|
||||
|
||||
Set DisableRender true
|
||||
|
||||
Set Shell fish
|
||||
Sleep 2s
|
||||
|
||||
Type "cd tests/itest"
|
||||
Enter
|
||||
Sleep 1s
|
||||
|
||||
Type "cargo run -q -- -l --no-user --no-time --no-filesize"
|
||||
Enter
|
||||
Sleep 3s
|
||||
|
||||
Type "cargo run -q -- -l --no-user --no-time --no-filesize"
|
||||
Enter
|
||||
Sleep 3s
|
||||
|
||||
Type "cargo run -q -- -l --grid --icons --grid --no-user --no-time"
|
||||
Enter
|
||||
Sleep 3s
|
||||
|
||||
Ctrl+D
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
Output outfile
|
||||
|
||||
Set DisableRender true
|
||||
|
||||
Set Shell fish
|
||||
Sleep 2s
|
||||
Type "cargo run -q -- -l --no-user --no-time --no-filesize"
|
||||
Enter
|
||||
Sleep 3s
|
||||
Sleep 3s
|
||||
Ctrl+D
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
set TEST_DIR tests
|
||||
set TAPES $TEST_DIR/tapes
|
||||
set REFERENCES $TEST_DIR/references
|
||||
set TEMP $TEST_DIR/tmp
|
||||
|
||||
set EZA_GREEN 0D0
|
||||
set EZA_RED D00
|
||||
set EZA_YELLOW DD0
|
||||
|
||||
function main
|
||||
|
||||
# Fixes command line output
|
||||
echo ""
|
||||
|
||||
# TODO: automatic reference deletion
|
||||
for file in $TAPES/*
|
||||
|
||||
set filename (basename $file .tape)
|
||||
|
||||
command fish $TEST_DIR/vhs-util.fish $filename &
|
||||
|
||||
end
|
||||
|
||||
wait
|
||||
|
||||
end
|
||||
|
||||
main
|
|
@ -1,83 +0,0 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
set TEST_DIR tests
|
||||
set TAPES $TEST_DIR/tapes
|
||||
set REFERENCES $TEST_DIR/references
|
||||
set TEMP $TEST_DIR/tmp
|
||||
|
||||
set EZA_GREEN 0D0
|
||||
set EZA_RED D00
|
||||
set EZA_YELLOW DD0
|
||||
|
||||
alias ffmpeg="echo skipping ffmpeg"
|
||||
|
||||
function print_msg -a ARG -a OP -a NAME -a MSG
|
||||
# Write operator, e.g. [+]
|
||||
# [*]: indicates neutral result
|
||||
# [+]: indicates positive result
|
||||
# [-]: indicates negative result
|
||||
set_color reset
|
||||
echo -n "[$OP] "
|
||||
|
||||
# Write source, e.g. [ blocksize ]:
|
||||
set_color reset
|
||||
set_color -b $ARG
|
||||
set_color 000
|
||||
echo -n "[ $NAME ]:"
|
||||
|
||||
# Write message, e.g.
|
||||
set_color reset
|
||||
echo " $MSG"
|
||||
|
||||
set_color reset
|
||||
end
|
||||
|
||||
function run_test -d "Run VHS test" -a NAME
|
||||
|
||||
set FUNCTION_NAME "$NAME > run_test"
|
||||
|
||||
set NAME_TAPE "$NAME.tape"
|
||||
|
||||
set SUCCESS (print_msg "$EZA_GREEN" "+" "$FUNCTION_NAME" "Success")
|
||||
set FAILURE (print_msg "$EZA_RED" "-" "$FUNCTION_NAME" "Failure")
|
||||
|
||||
set GEN_DIR $TEMP
|
||||
set GEN_FILE $GEN_DIR/$NAME.txt
|
||||
set GEN_FILE_ESCAPE (echo $GEN_FILE | sed "s/\//\\\\\//g")
|
||||
|
||||
print_msg $EZA_YELLOW "*" $FUNCTION_NAME "Testing..."
|
||||
|
||||
cat $TAPES/$NAME_TAPE | sed s/outfile/$GEN_FILE_ESCAPE/ | vhs &>/dev/null
|
||||
|
||||
cmp -s -- $REFERENCES/$NAME.txt $TEMP/$NAME.txt && echo $SUCCESS || echo $FAILURE
|
||||
end
|
||||
|
||||
function gen_test -d "Generate VHS test" -a NAME
|
||||
|
||||
set FUNCTION_NAME "$NAME > gen_test"
|
||||
|
||||
set NAME_TAPE "$NAME.tape"
|
||||
|
||||
set SUCCESS (print_msg "$EZA_GREEN" "+" "$FUNCTION_NAME" "Success")
|
||||
set FAILURE (print_msg "$EZA_RED" "-" "$FUNCTION_NAME" "Failure")
|
||||
|
||||
set GEN_DIR $REFERENCES
|
||||
set GEN_FILE $GEN_DIR/$NAME.txt
|
||||
set GEN_FILE_ESCAPE (echo $GEN_FILE | sed "s/\//\\\\\//g")
|
||||
|
||||
# The idea behind this is that it makes it easier for users of this system
|
||||
# to change the reference. They should now only have to delete the old
|
||||
# reference, and a new one will be generated.
|
||||
if builtin test -f $GEN_FILE
|
||||
print_msg $EZA_GREEN "+" $FUNCTION_NAME "$GEN_FILE exists"
|
||||
return
|
||||
end
|
||||
|
||||
print_msg $EZA_YELLOW "*" $FUNCTION_NAME "Generating..."
|
||||
|
||||
cat $TAPES/$NAME_TAPE | sed s/outfile/$GEN_FILE_ESCAPE/ | vhs &>/dev/null && echo $SUCCESS || echo $FAILURE
|
||||
|
||||
end
|
||||
|
||||
gen_test $argv[1]
|
||||
run_test $argv[1]
|
Loading…
Reference in a new issue