* Test command pipelines.
(assert)
| 543 | * Test command pipelines. |
| 544 | */ |
| 545 | function testPipe(assert) { |
| 546 | |
| 547 | mockShell([ |
| 548 | { query: 8, method: 'shell.run', args: { tokens: [ [ 'ls' ], [ 'grep', '.js' ] ], ref: 7 } }, |
| 549 | ], function (messages, success) { |
| 550 | /* |
| 551 | for (i in messages) { |
| 552 | console.log(messages[i]); |
| 553 | messages[i].args && messages[i].args.objects && console.log('Objects', messages[i].args.objects); |
| 554 | } |
| 555 | */ |
| 556 | var last = messages[messages.length - 1]; |
| 557 | assert(last.success && last.answer == 8, "Run pipelined command"); |
| 558 | }); |
| 559 | |
| 560 | } |
| 561 | |
| 562 | /** |
| 563 | * Test binary handling. |