mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
sbin/md5: fix test case to not write outside temp directory
The bsd-p-test did create files 1.out .. 8.out in the test directory. This has been fixed and the temporary output files are now written to the temporary directory. MFC after: 3 days
This commit is contained in:
parent
c2870e576b
commit
95d3044bbd
1 changed files with 2 additions and 2 deletions
|
|
@ -8,9 +8,9 @@ testloop () {
|
|||
|
||||
for algorithm in sha512; do
|
||||
for f in %%TESTSBASE%%/sbin/md5/*.inp; do
|
||||
outbase=%%TESTSBASE%%/sbin/md5/$(basename $f .inp)
|
||||
outbase=$(basename $f .inp)
|
||||
$algorithm$sum $opt -p < $f > $outbase.out
|
||||
diff $outbase.$algorithm$sum-p.chk $outbase.out || exitcode=1
|
||||
diff %%TESTSBASE%%/sbin/md5/$outbase.$algorithm$sum-p.chk $outbase.out || exitcode=1
|
||||
done
|
||||
done
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue