2017-08-29 03:58:09 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2017-09-06 01:41:13 +00:00
|
|
|
#make clean
|
2017-09-04 20:51:51 +00:00
|
|
|
make all
|
2017-08-29 03:58:09 +00:00
|
|
|
|
2017-09-06 01:41:13 +00:00
|
|
|
function verify {
|
2017-09-06 05:19:45 +00:00
|
|
|
diff "$1.bin" "$1.F1" \
|
|
|
|
&& echo "$1: files match" \
|
|
|
|
|| (
|
|
|
|
tput setaf 1 # red
|
|
|
|
tput blink
|
|
|
|
echo "************************************"
|
|
|
|
echo "*"
|
|
|
|
echo "* Bad: $1"
|
|
|
|
echo "*"
|
|
|
|
echo "************************************"
|
|
|
|
tput sgr0 # res
|
|
|
|
)
|
2017-09-06 01:41:13 +00:00
|
|
|
}
|
|
|
|
|
2017-08-29 03:58:09 +00:00
|
|
|
# Verify original and output match
|
2017-09-06 01:41:13 +00:00
|
|
|
verify "calculator"
|
|
|
|
verify "show_text_file"
|
2017-08-29 03:58:09 +00:00
|
|
|
|
2017-09-05 02:44:55 +00:00
|
|
|
cat show_image_file.F1 > mount/SHOW.IMAGE.FILE.\$F1 \
|
2017-09-04 23:00:09 +00:00
|
|
|
&& echo "Updated mounted file"
|