summaryrefslogtreecommitdiff
path: root/testprogs/ejs/echo.js
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r18573: disable the echo.js testing of echo_TestCall() for now.Andrew Tridgell1-1/+3
Jelmer, we need to fix pidl to be able to handle the double pointers in the ejs generated code (This used to be commit 63760acbb7ef6bc32e82ac843adf4f0155f0cb0a)
2007-10-10r9599: fix formatting of echo outputAndrew Tridgell1-1/+1
(This used to be commit 47c11fd886d7c57cafe2e150d745d3ce17e3bb72)
2007-10-10r9491: fixed up a few scripts that need to be updated for the new GetOptions ↵Andrew Tridgell1-5/+3
syntax. Mimir, its a good idea to use grep -r to find places that need fixing when you change the syntax of a call :-) (This used to be commit 1ead49f8e823a69dbd9cd3df3f5be04dc17e0d1f)
2007-10-10r9345: used the data blob functions in the echo.js test codeAndrew Tridgell1-4/+6
(This used to be commit f217f08b679ec3ed4784ed0fe74e9cbb935cdce9)
2007-10-10r8821: continue the trend to move to a more OO style of interface for our jsAndrew Tridgell1-41/+34
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); (This used to be commit f7b49ecd0868c1f0fec75b371f132bbf357ad8c6)
2007-10-10r8483: switched our generated ejs rpc code over to the new OO interface. ThisAndrew Tridgell1-18/+20
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 (This used to be commit 57d7a585e8162d21c7152952aa0cc7471968784f)
2007-10-10r8317: convert the example scripts over to the new GetOptions() callAndrew Tridgell1-1/+16
(This used to be commit 5f079d74630cf6431ec8af7240f60054cf8b9ab7)
2007-10-10r8298: - started building a library of js routines in scripting/libjs/Andrew Tridgell1-42/+1
- switched the existing test programs over to using the library - added install of js lib (This used to be commit 2a444dedbe44347268affc6458196f93ca7d372b)
2007-10-10r8271: make the ejs test scripts directly executable scripts using:Andrew Tridgell1-0/+1
#!/usr/bin/env smbscript I'll be interested to see how portable this is in the build farm. (This used to be commit 757c22aab43fadc776006ac5970dbfb46a13fa3c)
2007-10-10r8269: added automatic testing of rpc calls from ejs in 'make test'Andrew Tridgell1-0/+1
(This used to be commit c760180119b4ac9307783bc50892a3dc57b2465e)
2007-10-10r8234: started on testing samr calls from ejs. So far it only does ↵Andrew Tridgell1-1/+1
samr_Connect() (This used to be commit 2e50a5b780bed20415620011130af83ef73c4f85)
2007-10-10r8220: added auto-generation of ENUM constants in ejs wrapper. So we can now ↵Andrew Tridgell1-8/+8
use the enum name instead of a integer in ejs scripts making rpc calls (This used to be commit a61cdee384c3002860016c1740276529493d318d)
2007-10-10r8218: added testing of echo_TestSurrounding() andAndrew Tridgell1-0/+45
echo_TestDoublePointer(). All echo.idl functions are now tested and working from ejs. (This used to be commit c065d677697d3e8dbe2575113823a7ac7109ca70)
2007-10-10r8217: added testing of echo_TestSleep() and echo_TestEnum() in echo js codeAndrew Tridgell1-0/+39
(This used to be commit 7fa9b8251dbab9482268f84dd98889123a9219e7)
2007-10-10r8214: added testing of echo_TestCall2(), which tests the union push codeAndrew Tridgell1-0/+17
(This used to be commit 1429b885fbcf93ed012c836e21d00ca5d8c58741)
2007-10-10r8199: - we don't need to pre-declare 'var status;' everywhereAndrew Tridgell1-4/+22
- added testing of echo_TestCall(), which uses strings (This used to be commit 67aa628413342fd812afd966c95ea9d470b3151b)
2007-10-10r8197: added testing of echo_SinkData() and echo_SourceData()Andrew Tridgell1-1/+42
(This used to be commit f1d6b328c46265b04fe7c0626d94bb2c844507c9)
2007-10-10r8196: - added testing of the EchoData interface in the echo test scriptAndrew Tridgell1-11/+75
- add asserts on all calls for correct results (This used to be commit 0b67754c281f387148b64ba00742437330dc68f7)
2007-10-10r8193: fixed the echo.js example code to work with the new syntax for rpcAndrew Tridgell1-1/+1
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 (This used to be commit 757bb7f31cc85b08885d55adf6e2ce7d925c0353)
2007-10-10r8074: demonstrate calling echo_AddOne() from ejsAndrew Tridgell1-14/+18
(This used to be commit 0c534699efb24abefd9879859cde6a9ac61e5af3)
2007-10-10r8070: a (as yet not working) example of how rpc calls might be made from js ↵Andrew Tridgell1-0/+34
scripts (This used to be commit b9e73fa932e8289b756b557faeca1690c02a21ed)