commit: 9e39a1ab738a31ba424ef53cd943ec063b46d4c3
parent f5b2fdaa30df10d519545b24bceb751265cf6153
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sat, 6 Nov 2021 19:21:18 +0100
test-bin: Put fixtures in ./inputs and ./outputs
Diffstat:
5 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/test-bin/cat b/test-bin/cat
@@ -1,12 +1,12 @@
#!/usr/bin/env atf-sh
atf_test_case openfile
openfile_body() {
- atf_check -o file:all_bytes ../bin/cat all_bytes
+ atf_check -o file:inputs/all_bytes ../bin/cat inputs/all_bytes
}
atf_test_case stdinput
stdinput_body() {
- atf_check -o file:all_bytes ../bin/cat <all_bytes
+ atf_check -o file:inputs/all_bytes ../bin/cat <inputs/all_bytes
}
atf_test_case devnull
diff --git a/test-bin/all_bytes b/test-bin/inputs/all_bytes
Binary files differ.
diff --git a/test-bin/xcd_all_bytes.fixture b/test-bin/outputs/xcd/all_bytes
diff --git a/test-bin/tee b/test-bin/tee
@@ -1,13 +1,13 @@
#!/usr/bin/env atf-sh
atf_test_case noargs
noargs_body() {
- atf_check -o file:all_bytes ../bin/tee <all_bytes
+ atf_check -o file:inputs/all_bytes ../bin/tee <inputs/all_bytes
}
atf_test_case writefile
writefile_body() {
echo 'hello' > tmp_tee.log
- atf_check -o file:all_bytes ../bin/tee tmp_tee.log <all_bytes
+ atf_check -o file:inputs/all_bytes ../bin/tee tmp_tee.log <inputs/all_bytes
atf_check -o empty -s exit:1 grep hello tmp_tee.log
}
writefile_cleanup() {
@@ -17,8 +17,8 @@ writefile_cleanup() {
atf_test_case appendfile
appendfile_body() {
echo 'hello' > tmp_tee.log
- atf_check -o file:all_bytes ../bin/tee tmp_tee.log <all_bytes
- atf_check -o file:all_bytes cat tmp_tee.log
+ atf_check -o file:inputs/all_bytes ../bin/tee tmp_tee.log <inputs/all_bytes
+ atf_check -o file:inputs/all_bytes cat tmp_tee.log
}
appendfile_cleanup() {
rm tmp_tee.log
diff --git a/test-bin/xcd b/test-bin/xcd
@@ -1,12 +1,12 @@
#!/usr/bin/env atf-sh
atf_test_case openfile
openfile_body() {
- atf_check -o file:xcd_all_bytes.fixture ../bin/xcd all_bytes
+ atf_check -o file:outputs/xcd/all_bytes ../bin/xcd inputs/all_bytes
}
atf_test_case stdinput
stdinput_body() {
- atf_check -o file:xcd_all_bytes.fixture ../bin/xcd <all_bytes
+ atf_check -o file:outputs/xcd/all_bytes ../bin/xcd <inputs/all_bytes
}
atf_init_test_cases() {