#!/usr/bin/env smbscript /* test echo pipe calls from ejs */ var options = GetOptions(ARGV, "POPT_AUTOHELP", "POPT_COMMON_SAMBA", "POPT_COMMON_CREDENTIALS"); if (options == undefined) { println("Failed to parse options"); return -1; } libinclude("base.js"); /* generate a ramp as an integer array */ function ramp_array(N) { var a = new Array(N); var data = datablob_init(); for (i=0;i"); return -1; } var binding = options.ARGV[0]; var echo = rpcecho_init(); datablob_init(echo); print("Connecting to " + binding + "\n"); status = echo.connect(binding); if (status.is_ok != true) { printf("Failed to connect to %s - %s\n", binding, status.errstr); return; } test_AddOne(echo); test_EchoData(echo); test_SinkData(echo); test_SourceData(echo); print("SKIPPING test_TestCall as pidl cannot generate code for it\n"); /* test_TestCall(echo); */ test_TestCall2(echo); test_TestSleep(echo); test_TestEnum(echo); test_TestSurrounding(echo); test_TestDoublePointer(echo); println("All OK\n"); return 0;