summaryrefslogtreecommitdiff
path: root/testprogs/ejs/echo.js
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-11 00:23:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:19:33 -0500
commitf9ff72cbda6b4e59448fd79ef9e12f264d48015f (patch)
treed0bff5e1f6ae70bb9ba3ec563c7ed03cf0cc5fa2 /testprogs/ejs/echo.js
parentb2f132182174d13c8bcb535f62522687675947c2 (diff)
downloadsamba-f9ff72cbda6b4e59448fd79ef9e12f264d48015f.tar.gz
samba-f9ff72cbda6b4e59448fd79ef9e12f264d48015f.tar.bz2
samba-f9ff72cbda6b4e59448fd79ef9e12f264d48015f.zip
r8298: - started building a library of js routines in scripting/libjs/
- switched the existing test programs over to using the library - added install of js lib (This used to be commit 2a444dedbe44347268affc6458196f93ca7d372b)
Diffstat (limited to 'testprogs/ejs/echo.js')
-rwxr-xr-xtestprogs/ejs/echo.js43
1 files changed, 1 insertions, 42 deletions
diff --git a/testprogs/ejs/echo.js b/testprogs/ejs/echo.js
index 4f0fc79f9a..312e599d50 100755
--- a/testprogs/ejs/echo.js
+++ b/testprogs/ejs/echo.js
@@ -3,16 +3,7 @@
test echo pipe calls from ejs
*/
-
-/*
- helper function to setup a rpc io object, ready for input
-*/
-function irpcObj()
-{
- var o = new Object();
- o.input = new Object();
- return o;
-}
+libinclude("base.js");
/*
generate a ramp as an integer array
@@ -28,38 +19,6 @@ function ramp_array(N)
/*
- check that a status result is OK
-*/
-function check_status_ok(status)
-{
- if (status.is_ok != true) {
- printVars(status);
- }
- assert(status.is_ok == true);
-}
-
-/*
- check that two arrays are equal
-*/
-function check_array_equal(a1, a2)
-{
- assert(a1.length == a2.length);
- for (i=0; i<a1.length; i++) {
- assert(a1[i] == a2[i]);
- }
-}
-
-/*
- check that an array is all zeros
-*/
-function check_array_zero(a)
-{
- for (i=0; i<a.length; i++) {
- assert(a[i] == 0);
- }
-}
-
-/*
test the echo_AddOne interface
*/
function test_AddOne(conn)