From fe33a492c213452e3052c9744e9701dcb22f399e Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Mon, 9 Jan 2023 10:13:48 -0800 Subject: [PATCH] Make o_tmpfile test more generic The o_tmpfile test only did one thing, clean it up a bit so we can add more tests to the file. Signed-off-by: Zach Brown --- tests/golden/o_tmpfile | 1 + tests/tests/o_tmpfile.sh | 8 +++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/golden/o_tmpfile b/tests/golden/o_tmpfile index 71496330..a1d111f0 100644 --- a/tests/golden/o_tmpfile +++ b/tests/golden/o_tmpfile @@ -1,3 +1,4 @@ +== stage from tmpfile total file size 33669120 00000000 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 |AAAAAAAAAAAAAAAA| * diff --git a/tests/tests/o_tmpfile.sh b/tests/tests/o_tmpfile.sh index 5a77ed8f..9de214ef 100644 --- a/tests/tests/o_tmpfile.sh +++ b/tests/tests/o_tmpfile.sh @@ -1,15 +1,13 @@ # -# Run tmpfile_stage and check the output with hexdump. +# basic tests of O_TMPFILE # t_require_commands stage_tmpfile hexdump +echo "== stage from tmpfile" DEST_FILE="$T_D0/dest_file" - stage_tmpfile $T_D0 $DEST_FILE - hexdump -C "$DEST_FILE" - -rm -fr "$DEST_FILE" +rm -f "$DEST_FILE" t_pass