summaryrefslogtreecommitdiff
path: root/test/scripts/e2e_subs/e2e-app-extra-pages.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/scripts/e2e_subs/e2e-app-extra-pages.sh')
-rwxr-xr-xtest/scripts/e2e_subs/e2e-app-extra-pages.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/test/scripts/e2e_subs/e2e-app-extra-pages.sh b/test/scripts/e2e_subs/e2e-app-extra-pages.sh
index c20b0eddb..4852918c6 100755
--- a/test/scripts/e2e_subs/e2e-app-extra-pages.sh
+++ b/test/scripts/e2e_subs/e2e-app-extra-pages.sh
@@ -84,9 +84,6 @@ if [[ $RES != *"${EXPERROR}"* ]]; then
fi
# App create with extra pages, succeeded
-${gcmd} app create --creator ${ACCOUNT} --approval-prog "${SMALL_TEAL_FILE}" --clear-prog "${SMALL_TEAL_FILE}" --extra-pages 1 --global-byteslices 1 --global-ints 0 --local-byteslices 0 --local-ints 0
-
-# App update
RES=$(${gcmd} app create --creator ${ACCOUNT} --approval-prog "${SMALL_TEAL_FILE}" --clear-prog "${SMALL_TEAL_FILE}" --extra-pages 1 --global-byteslices 1 --global-ints 0 --local-byteslices 0 --local-ints 0 2>&1 || true)
EXP="Created app"
APPID=$(echo $RES | awk '{print $NF}')
@@ -97,8 +94,13 @@ fi
RES=$(${gcmd} app info --app-id ${APPID} 2>&1 || true)
PROGHASH="Approval hash: 7356635AKR4FJOOKXXBWNN6HDJ5U3O2YWAOSK6NZBPMOGIQSWCL2N74VT4"
+EXTRAPAGES="Extra program pages: 1"
if [[ $RES != *"${PROGHASH}"* ]]; then
- date '+app-extra-pages-test FAIL the application info should succeed %Y%m%d_%H%M%S'
+ date '+app-extra-pages-test FAIL the application approval program hash is incorrect %Y%m%d_%H%M%S'
+ false
+fi
+if [[ $RES != *"${EXTRAPAGES}"* ]]; then
+ date '+app-extra-pages-test FAIL the application extra pages value is incorrect %Y%m%d_%H%M%S'
false
fi
@@ -114,3 +116,7 @@ if [[ $RES == *"${PROGHASH}"* ]]; then
date '+app-extra-pages-test FAIL the application approval program should have been updated %Y%m%d_%H%M%S'
false
fi
+if [[ $RES != *"${EXTRAPAGES}"* ]]; then
+ date '+app-extra-pages-test FAIL the application extra pages value is incorrect after update %Y%m%d_%H%M%S'
+ false
+fi