Major restructuring to switch build system from old scripts to GNU Automake.

This commit is contained in:
Andrew Wood
2023-08-28 10:04:39 +01:00
parent 5495e0e808
commit e99548ea8a
90 changed files with 1704 additions and 3521 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/bin/sh
#
# Transfer a large chunk of data through pv and check data correctness
# afterwards.
# Dummy assignments for "shellcheck".
testSubject="${testSubject:-false}"; workFile1="${workFile1:-.tmp1}"; workFile2="${workFile2:-.tmp2}"
# generate some data
dd if=/dev/urandom of="${workFile1}" bs=1024 count=10240 2>/dev/null
inputChecksum=$(cksum "${workFile1}" | awk '{print $1}')
# read through pv and test afterwards
"${testSubject}" -B 100000 -q "${workFile1}" > "${workFile2}"
outputChecksum=$(cksum "${workFile2}" | awk '{print $1}')
test "${inputChecksum}" = "${outputChecksum}" || exit 1
exit 0
# EOF