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 <zab@versity.com>
This commit is contained in:
Zach Brown
2023-01-09 10:13:48 -08:00
parent 77c0ff89fb
commit fe33a492c2
2 changed files with 4 additions and 5 deletions

View File

@@ -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|
*

View File

@@ -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