diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-06-11 03:47:24 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-06-11 03:57:55 +0200 |
commit | 62a8ad385fe5644583a465debcc42db917afed56 (patch) | |
tree | 1fc313d3f73e89efc777a0b6555aa5f7e902406c /onlineupdate/qa | |
parent | bad96903a39ab37a1feee483e98ac16560b94d2b (diff) |
add a way to manually test the automatic updater with a simple test project
This reduced my development iterations from around 15 minutes to a few seconds.
Change-Id: I758a3e534862e8feca2544ee9e80f0330d06b992
Diffstat (limited to 'onlineupdate/qa')
-rw-r--r-- | onlineupdate/qa/updater/Makefile | 14 | ||||
-rw-r--r-- | onlineupdate/qa/updater/README | 1 | ||||
-rw-r--r-- | onlineupdate/qa/updater/updater.zip | bin | 0 -> 1523 bytes |
3 files changed, 15 insertions, 0 deletions
diff --git a/onlineupdate/qa/updater/Makefile b/onlineupdate/qa/updater/Makefile new file mode 100644 index 000000000000..5b240c356d01 --- /dev/null +++ b/onlineupdate/qa/updater/Makefile @@ -0,0 +1,14 @@ +gb_Side := host +include ../../../config_host.mk + +unpack: + @echo "Unpacking the updater test project" + @rm -r $(WORKDIR)/updater || true + @unzip updater.zip -d $(WORKDIR) > /dev/null + +call: unpack + @echo "Update the test project" + @$(INSTDIR)/program/updater $(WORKDIR)/updater/user/patch $(WORKDIR)/updater $(WORKDIR)/updater/user/update /replace + +call-gdb: unpack + gdb --args $(INSTDIR)/program/updater $(WORKDIR)/updater/user/patch $(WORKDIR)/updater $(WORKDIR)/updater/user/update /replace diff --git a/onlineupdate/qa/updater/README b/onlineupdate/qa/updater/README new file mode 100644 index 000000000000..dab8d8a753db --- /dev/null +++ b/onlineupdate/qa/updater/README @@ -0,0 +1 @@ +After calling 'make call' the content in workdir/updater/program/datei.txt should say "new". diff --git a/onlineupdate/qa/updater/updater.zip b/onlineupdate/qa/updater/updater.zip Binary files differnew file mode 100644 index 000000000000..79b8f8ec78ec --- /dev/null +++ b/onlineupdate/qa/updater/updater.zip |