From a07a5e899ace0a9ae3764ee2c5f10eba417b6df6 Mon Sep 17 00:00:00 2001 From: Michael Gary Date: Fri, 28 Jun 2002 17:49:40 +0000 Subject: [PATCH] Added test of water mark, called test_water.php svn path=/trunk/boinc/; revision=139 --- test/test_water.php | 20 ++++++++++++++++++++ test/tw_correct | 1 + 2 files changed, 21 insertions(+) create mode 100644 test/test_water.php create mode 100644 test/tw_correct diff --git a/test/test_water.php b/test/test_water.php new file mode 100644 index 0000000000..b67f115a0a --- /dev/null +++ b/test/test_water.php @@ -0,0 +1,20 @@ +#! /usr/local/bin/php +' > tw_results", + $retval + ); + if($retval) { + echo "test_uc.php did not run correctly\n"; + } + $f = fopen("tw_results", "r"); + fscanf($f, "%d", $val); + if($val > 2) { + echo "Water marks are working\n"; + } else { + echo "Water marks are not working\n"; + } +?> diff --git a/test/tw_correct b/test/tw_correct new file mode 100644 index 0000000000..00750edc07 --- /dev/null +++ b/test/tw_correct @@ -0,0 +1 @@ +3