vrange-test: Fix purged flag logic

Ensure the purged flag isn't overwritten with the last return value used.

Reported-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
volatile-test: Fix purge flag bug

This patch from Minchan fixes a bug with the purge flag
logic, where we end up overwriting the purge value with
whatever the last call returns. Instead we should OR
the results together to see if any data was purged.

Signed-off-by: John Stultz <john.stultz@linaro.org>
Rename setup-vrange-anon.sh to fetch-external-tests.sh

Since the script fetches and builds external tests
like ebizzy and jemalloc, reanme it appropriately

Signed-off-by: John Stultz <john.stultz@linaro.org>
Makefile: Integrate fetching/building of external tests into the Makefile

Integrates the fetch-external-tests.sh into Makefile.

Also renames the test file to be more explicit

Signed-off-by: John Stultz <john.stultz@linaro.org>
volatile-test: Update test c files to use new syscall number and arguments

Update test to use current vrange syscall definition

Signed-off-by: John Stultz <john.stultz@linaro.org>
vrange-test: Add sigbus option and chunk output managed in page units

Add option flag to sigbus on purged pages.

Also output chunks in page units

Signed-off-by: John Stultz <john.stultz@linaro.org>
Merge remote-tracking branch 'testvm/master' into send-upstream

Conflicts:
	volatile-test.c
Merge remote-tracking branch 'github/master' into send-upstream

Conflicts:
	volatile-test.c