1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-04 08:23:50 +03:00
Commit Graph

21 Commits

Author SHA1 Message Date
Andrew Tridgell
63760acbb7 r18573: disable the echo.js testing of echo_TestCall() for now.
Jelmer, we need to fix pidl to be able to handle the double pointers
in the ejs generated code
2007-10-10 14:18:48 -05:00
Andrew Tridgell
47c11fd886 r9599: fix formatting of echo output 2007-10-10 13:34:33 -05:00
Andrew Tridgell
1ead49f8e8 r9491: fixed up a few scripts that need to be updated for the new GetOptions syntax. Mimir, its
a good idea to use grep -r to find places that need fixing when you change the syntax of
a call :-)
2007-10-10 13:34:21 -05:00
Andrew Tridgell
f217f08b67 r9345: used the data blob functions in the echo.js test code 2007-10-10 13:33:26 -05:00
Andrew Tridgell
f7b49ecd08 r8821: continue the trend to move to a more OO style of interface for our js
calls. This changes the generated RPC and IRPC calls to use the 'this'
object pointer instead of requiring the passing of the object on each
call. So typical usage is now:

var echo = echo_init();
var io = irpcObj();

status = echo.connect("ncacn_np:server");
assert(status.is_ok);

io.input.in_data = 7;
status = echo.AddOne(io);
assert(status.is_ok);
2007-10-10 13:30:08 -05:00
Andrew Tridgell
57d7a585e8 r8483: switched our generated ejs rpc code over to the new OO interface. This
means we don't pollute the name space, and also makes for faster
startup times as we only create variables for the pipes that we use,
not all pipes
2007-10-10 13:23:08 -05:00
Andrew Tridgell
5f079d7463 r8317: convert the example scripts over to the new GetOptions() call 2007-10-10 13:20:06 -05:00
Andrew Tridgell
2a444dedbe 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
2007-10-10 13:19:33 -05:00
Andrew Tridgell
757c22aab4 r8271: make the ejs test scripts directly executable scripts using:
#!/usr/bin/env smbscript

I'll be interested to see how portable this is in the build farm.
2007-10-10 13:19:28 -05:00
Andrew Tridgell
c760180119 r8269: added automatic testing of rpc calls from ejs in 'make test' 2007-10-10 13:19:28 -05:00
Andrew Tridgell
2e50a5b780 r8234: started on testing samr calls from ejs. So far it only does samr_Connect() 2007-10-10 13:19:23 -05:00
Andrew Tridgell
a61cdee384 r8220: added auto-generation of ENUM constants in ejs wrapper. So we can now use the enum name
instead of a integer in ejs scripts making rpc calls
2007-10-10 13:19:21 -05:00
Andrew Tridgell
c065d67769 r8218: added testing of echo_TestSurrounding() and
echo_TestDoublePointer(). All echo.idl functions are now tested and
working from ejs.
2007-10-10 13:19:21 -05:00
Andrew Tridgell
7fa9b8251d r8217: added testing of echo_TestSleep() and echo_TestEnum() in echo js code 2007-10-10 13:19:21 -05:00
Andrew Tridgell
1429b885fb r8214: added testing of echo_TestCall2(), which tests the union push code 2007-10-10 13:19:20 -05:00
Andrew Tridgell
67aa628413 r8199: - we don't need to pre-declare 'var status;' everywhere
- added testing of echo_TestCall(), which uses strings
2007-10-10 13:19:19 -05:00
Andrew Tridgell
f1d6b328c4 r8197: added testing of echo_SinkData() and echo_SourceData() 2007-10-10 13:19:19 -05:00
Andrew Tridgell
0b67754c28 r8196: - added testing of the EchoData interface in the echo test script
- add asserts on all calls for correct results
2007-10-10 13:19:18 -05:00
Andrew Tridgell
757bb7f31c r8193: fixed the echo.js example code to work with the new syntax for rpc
calls from js. I chose the new syntax to match the C calling syntax,
so if you are familiar with using the Samba4 rpc libraries from C,
then using them from js should be easy
2007-10-10 13:19:18 -05:00
Andrew Tridgell
0c534699ef r8074: demonstrate calling echo_AddOne() from ejs 2007-10-10 13:19:05 -05:00
Andrew Tridgell
b9e73fa932 r8070: a (as yet not working) example of how rpc calls might be made from js scripts 2007-10-10 13:19:05 -05:00