04a readme and corrections

This commit is contained in:
pommicket 2021-11-17 22:58:17 -05:00
parent 3922fc11cd
commit 17cf6b6fa0
6 changed files with 44 additions and 13 deletions

View file

@ -39,7 +39,7 @@ cd ..
echo 'Processing stage 01...'
cd 01
rm -f out0[01]
rm -f out*
make -s out01
if [ "$(./out01)" != 'Hello, world!' ]; then
echo_red 'Stage 01 failed.'
@ -50,7 +50,7 @@ cd ..
echo 'Processing stage 02...'
cd 02
rm -rf out0[12]
rm -f out*
make -s out02
if [ "$(./out02)" != 'Hello, world!' ]; then
echo_red 'Stage 02 failed.'
@ -60,7 +60,7 @@ cd ..
echo 'Processing stage 03...'
cd 03
rm -rf out0[23]
rm -f out*
make -s out03
if [ "$(./out03)" != 'Hello, world!' ]; then
echo_red 'Stage 03 failed.'
@ -68,5 +68,15 @@ if [ "$(./out03)" != 'Hello, world!' ]; then
fi
cd ..
echo 'Processing stage 04a...'
cd 04a
rm -f out*
make -s out04a
if [ "$(cat out04a)" != "$(printf '\n\nHello, world!')" ]; then
echo_red 'Stage 04a failed.'
exit 1
fi
cd ..
echo_green 'all stages completed successfully!'