Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove some unnecessary test files now that qemu is being used

  • Loading branch information...
commit f75cc9e64531ec68b7b62a5ea0c2b0f9c0a03b97 1 parent 60fe2be
@substack authored
Showing with 0 additions and 251 deletions.
  1. BIN  test/data/00-rgba-0-0-720-400.dat
  2. BIN  test/data/01-rgba-80-389-16-7.dat
  3. BIN  test/data/02-rgba-96-390-16-5.dat
  4. BIN  test/data/03-rgba-80-397-32-2.dat
  5. BIN  test/data/04-rgba-96-386-16-10.dat
  6. BIN  test/data/05-rgba-96-397-32-2.dat
  7. BIN  test/data/06-rgba-96-397-32-2.dat
  8. BIN  test/data/07-rgba-112-386-16-10.dat
  9. BIN  test/data/08-rgba-112-397-32-2.dat
  10. BIN  test/data/09-rgba-112-389-32-7.dat
  11. BIN  test/data/10-rgba-112-397-32-2.dat
  12. BIN  test/data/11-rgba-128-386-16-10.dat
  13. BIN  test/data/12-rgba-128-397-32-2.dat
  14. BIN  test/data/13-rgba-144-386-16-10.dat
  15. BIN  test/data/14-rgba-144-397-32-2.dat
  16. BIN  test/data/15-rgba-144-389-16-7.dat
  17. BIN  test/data/16-rgba-144-397-32-2.dat
  18. BIN  test/data/17-rgba-160-393-16-6.dat
  19. BIN  test/data/18-rgba-176-397-16-2.dat
  20. BIN  test/data/19-rgba-160-397-32-2.dat
  21. BIN  test/data/20-rgba-176-386-16-10.dat
  22. BIN  test/data/21-rgba-176-397-32-2.dat
  23. BIN  test/data/22-rgba-176-386-16-10.dat
  24. BIN  test/data/23-rgba-192-389-16-7.dat
  25. BIN  test/data/24-rgba-176-397-32-2.dat
  26. BIN  test/data/25-rgba-192-386-16-2.dat
  27. BIN  test/data/26-rgba-192-389-16-7.dat
  28. BIN  test/data/27-rgba-192-397-32-2.dat
  29. BIN  test/data/28-rgba-208-389-16-7.dat
  30. BIN  test/data/29-rgba-192-390-16-1.dat
  31. BIN  test/data/30-rgba-192-394-16-1.dat
  32. BIN  test/data/31-rgba-192-397-48-2.dat
  33. BIN  test/data/32-rgba-208-397-32-2.dat
  34. BIN  test/data/33-rgba-224-386-16-2.dat
  35. BIN  test/data/34-rgba-224-389-16-7.dat
  36. BIN  test/data/35-rgba-224-397-32-2.dat
  37. BIN  test/data/36-rgba-224-389-16-7.dat
  38. BIN  test/data/37-rgba-240-390-16-1.dat
  39. BIN  test/data/38-rgba-240-394-16-1.dat
  40. BIN  test/data/39-rgba-224-397-32-2.dat
  41. BIN  test/data/40-rgba-240-397-32-2.dat
  42. BIN  test/data/41-rgba-240-389-32-9.dat
  43. BIN  test/data/42-rgba-256-398-16-1.dat
  44. BIN  test/data/43-rgba-256-389-16-7.dat
  45. BIN  test/data/44-rgba-256-397-32-2.dat
  46. BIN  test/data/45-rgba-256-389-32-7.dat
  47. BIN  test/data/46-rgba-256-397-32-2.dat
  48. BIN  test/data/47-rgba-272-389-16-10.dat
  49. BIN  test/data/48-rgba-288-397-16-2.dat
  50. BIN  test/data/49-rgba-288-389-16-7.dat
  51. BIN  test/data/50-rgba-288-397-32-2.dat
  52. BIN  test/data/51-rgba-288-389-16-7.dat
  53. BIN  test/data/52-rgba-288-397-32-2.dat
  54. BIN  test/data/53-rgba-304-389-16-7.dat
  55. BIN  test/data/54-rgba-304-397-32-2.dat
  56. BIN  test/data/55-rgba-304-389-32-7.dat
  57. BIN  test/data/56-rgba-304-397-32-2.dat
  58. BIN  test/data/57-rgba-320-386-16-2.dat
  59. BIN  test/data/58-rgba-320-389-16-7.dat
  60. BIN  test/data/59-rgba-320-397-32-2.dat
  61. BIN  test/data/60-rgba-320-389-32-7.dat
  62. BIN  test/data/61-rgba-320-397-32-2.dat
  63. BIN  test/data/62-rgba-336-389-16-10.dat
  64. BIN  test/data/63-rgba-352-397-16-2.dat
  65. BIN  test/data/64-rgba-336-397-48-2.dat
  66. BIN  test/data/65-rgba-352-389-16-7.dat
  67. BIN  test/data/66-rgba-352-397-32-2.dat
  68. BIN  test/data/67-rgba-368-389-16-7.dat
  69. BIN  test/data/68-rgba-368-397-32-2.dat
  70. BIN  test/data/69-rgba-368-386-16-2.dat
  71. BIN  test/data/70-rgba-368-389-16-7.dat
  72. BIN  test/data/71-rgba-368-397-32-2.dat
  73. BIN  test/data/72-rgba-384-386-16-10.dat
  74. BIN  test/data/73-rgba-384-397-32-2.dat
  75. BIN  test/data/74-rgba-384-386-16-10.dat
  76. BIN  test/data/75-rgba-400-389-16-1.dat
  77. BIN  test/data/76-rgba-400-394-16-2.dat
  78. BIN  test/data/77-rgba-384-397-32-2.dat
  79. BIN  test/data/78-rgba-400-386-16-10.dat
  80. BIN  test/data/79-rgba-400-397-32-2.dat
  81. BIN  test/data/80-rgba-400-389-32-7.dat
  82. BIN  test/data/81-rgba-416-396-16-3.dat
  83. BIN  test/data/82-rgba-400-397-16-1.dat
  84. BIN  test/data/83-rgba-416-394-16-2.dat
  85. BIN  test/data/84-rgba-416-397-32-2.dat
  86. BIN  test/data/85-rgba-80-5-64-7.dat
  87. BIN  test/data/86-rgba-16-18-64-10.dat
  88. +0 −199 tests/binary_rfb_server.js
  89. +0 −26 tests/ec2.js
  90. +0 −26 tests/raw_pngs.js
View
BIN  test/data/00-rgba-0-0-720-400.dat
Binary file not shown
View
BIN  test/data/01-rgba-80-389-16-7.dat
Binary file not shown
View
BIN  test/data/02-rgba-96-390-16-5.dat
Binary file not shown
View
BIN  test/data/03-rgba-80-397-32-2.dat
Binary file not shown
View
BIN  test/data/04-rgba-96-386-16-10.dat
Binary file not shown
View
BIN  test/data/05-rgba-96-397-32-2.dat
Binary file not shown
View
BIN  test/data/06-rgba-96-397-32-2.dat
Binary file not shown
View
BIN  test/data/07-rgba-112-386-16-10.dat
Binary file not shown
View
BIN  test/data/08-rgba-112-397-32-2.dat
Binary file not shown
View
BIN  test/data/09-rgba-112-389-32-7.dat
Binary file not shown
View
BIN  test/data/10-rgba-112-397-32-2.dat
Binary file not shown
View
BIN  test/data/11-rgba-128-386-16-10.dat
Binary file not shown
View
BIN  test/data/12-rgba-128-397-32-2.dat
Binary file not shown
View
BIN  test/data/13-rgba-144-386-16-10.dat
Binary file not shown
View
BIN  test/data/14-rgba-144-397-32-2.dat
Binary file not shown
View
BIN  test/data/15-rgba-144-389-16-7.dat
Binary file not shown
View
BIN  test/data/16-rgba-144-397-32-2.dat
Binary file not shown
View
BIN  test/data/17-rgba-160-393-16-6.dat
Binary file not shown
View
BIN  test/data/18-rgba-176-397-16-2.dat
Binary file not shown
View
BIN  test/data/19-rgba-160-397-32-2.dat
Binary file not shown
View
BIN  test/data/20-rgba-176-386-16-10.dat
Binary file not shown
View
BIN  test/data/21-rgba-176-397-32-2.dat
Binary file not shown
View
BIN  test/data/22-rgba-176-386-16-10.dat
Binary file not shown
View
BIN  test/data/23-rgba-192-389-16-7.dat
Binary file not shown
View
BIN  test/data/24-rgba-176-397-32-2.dat
Binary file not shown
View
BIN  test/data/25-rgba-192-386-16-2.dat
Binary file not shown
View
BIN  test/data/26-rgba-192-389-16-7.dat
Binary file not shown
View
BIN  test/data/27-rgba-192-397-32-2.dat
Binary file not shown
View
BIN  test/data/28-rgba-208-389-16-7.dat
Binary file not shown
View
BIN  test/data/29-rgba-192-390-16-1.dat
Binary file not shown
View
BIN  test/data/30-rgba-192-394-16-1.dat
Binary file not shown
View
BIN  test/data/31-rgba-192-397-48-2.dat
Binary file not shown
View
BIN  test/data/32-rgba-208-397-32-2.dat
Binary file not shown
View
BIN  test/data/33-rgba-224-386-16-2.dat
Binary file not shown
View
BIN  test/data/34-rgba-224-389-16-7.dat
Binary file not shown
View
BIN  test/data/35-rgba-224-397-32-2.dat
Binary file not shown
View
BIN  test/data/36-rgba-224-389-16-7.dat
Binary file not shown
View
BIN  test/data/37-rgba-240-390-16-1.dat
Binary file not shown
View
BIN  test/data/38-rgba-240-394-16-1.dat
Binary file not shown
View
BIN  test/data/39-rgba-224-397-32-2.dat
Binary file not shown
View
BIN  test/data/40-rgba-240-397-32-2.dat
Binary file not shown
View
BIN  test/data/41-rgba-240-389-32-9.dat
Binary file not shown
View
BIN  test/data/42-rgba-256-398-16-1.dat
Binary file not shown
View
BIN  test/data/43-rgba-256-389-16-7.dat
Binary file not shown
View
BIN  test/data/44-rgba-256-397-32-2.dat
Binary file not shown
View
BIN  test/data/45-rgba-256-389-32-7.dat
Binary file not shown
View
BIN  test/data/46-rgba-256-397-32-2.dat
Binary file not shown
View
BIN  test/data/47-rgba-272-389-16-10.dat
Binary file not shown
View
BIN  test/data/48-rgba-288-397-16-2.dat
Binary file not shown
View
BIN  test/data/49-rgba-288-389-16-7.dat
Binary file not shown
View
BIN  test/data/50-rgba-288-397-32-2.dat
Binary file not shown
View
BIN  test/data/51-rgba-288-389-16-7.dat
Binary file not shown
View
BIN  test/data/52-rgba-288-397-32-2.dat
Binary file not shown
View
BIN  test/data/53-rgba-304-389-16-7.dat
Binary file not shown
View
BIN  test/data/54-rgba-304-397-32-2.dat
Binary file not shown
View
BIN  test/data/55-rgba-304-389-32-7.dat
Binary file not shown
View
BIN  test/data/56-rgba-304-397-32-2.dat
Binary file not shown
View
BIN  test/data/57-rgba-320-386-16-2.dat
Binary file not shown
View
BIN  test/data/58-rgba-320-389-16-7.dat
Binary file not shown
View
BIN  test/data/59-rgba-320-397-32-2.dat
Binary file not shown
View
BIN  test/data/60-rgba-320-389-32-7.dat
Binary file not shown
View
BIN  test/data/61-rgba-320-397-32-2.dat
Binary file not shown
View
BIN  test/data/62-rgba-336-389-16-10.dat
Binary file not shown
View
BIN  test/data/63-rgba-352-397-16-2.dat
Binary file not shown
View
BIN  test/data/64-rgba-336-397-48-2.dat
Binary file not shown
View
BIN  test/data/65-rgba-352-389-16-7.dat
Binary file not shown
View
BIN  test/data/66-rgba-352-397-32-2.dat
Binary file not shown
View
BIN  test/data/67-rgba-368-389-16-7.dat
Binary file not shown
View
BIN  test/data/68-rgba-368-397-32-2.dat
Binary file not shown
View
BIN  test/data/69-rgba-368-386-16-2.dat
Binary file not shown
View
BIN  test/data/70-rgba-368-389-16-7.dat
Binary file not shown
View
BIN  test/data/71-rgba-368-397-32-2.dat
Binary file not shown
View
BIN  test/data/72-rgba-384-386-16-10.dat
Binary file not shown
View
BIN  test/data/73-rgba-384-397-32-2.dat
Binary file not shown
View
BIN  test/data/74-rgba-384-386-16-10.dat
Binary file not shown
View
BIN  test/data/75-rgba-400-389-16-1.dat
Binary file not shown
View
BIN  test/data/76-rgba-400-394-16-2.dat
Binary file not shown
View
BIN  test/data/77-rgba-384-397-32-2.dat
Binary file not shown
View
BIN  test/data/78-rgba-400-386-16-10.dat
Binary file not shown
View
BIN  test/data/79-rgba-400-397-32-2.dat
Binary file not shown
View
BIN  test/data/80-rgba-400-389-32-7.dat
Binary file not shown
View
BIN  test/data/81-rgba-416-396-16-3.dat
Binary file not shown
View
BIN  test/data/82-rgba-400-397-16-1.dat
Binary file not shown
View
BIN  test/data/83-rgba-416-394-16-2.dat
Binary file not shown
View
BIN  test/data/84-rgba-416-397-32-2.dat
Binary file not shown
View
BIN  test/data/85-rgba-80-5-64-7.dat
Binary file not shown
View
BIN  test/data/86-rgba-16-18-64-10.dat
Binary file not shown
View
199 tests/binary_rfb_server.js
@@ -1,199 +0,0 @@
-#!/usr/bin/env node
-// Starts a rfb server that listens on port 59000 and serves rectangles from
-// ./tests/rfb-test-data directory
-
-var sys = require('sys');
-var net = require('net');
-var fs = require('fs');
-var path = require('path');
-
-function Word8(x) {
- return String.fromCharCode(x);
-}
-
-function Word16be(x) {
- return String.fromCharCode((x>>8)&0xFF) + String.fromCharCode(x&0xFF);
-}
-
-function Word32be(x) {
- return String.fromCharCode((x>>24)&0xFF)
- + String.fromCharCode((x>>16)&0xFF)
- + String.fromCharCode((x>>8)&0xFF)
- + String.fromCharCode(x&0xFF)
- ;
-}
-
-var S_EXPECT_RFB = 0;
-var S_EXPECT_SECNUM = 1;
-var S_EXPECT_SHARED = 2;
-var S_EXPECT_FB_UPDATE = 3;
-
-var RFBServer = net.createServer(function (stream) {
- var state = S_EXPECT_RFB;
- stream.setEncoding('binary');
- stream.addListener('connect', function () {
- sys.log('client connected, sending RFB version to client');
- stream.write('RFB 003.008\n');
- });
- stream.addListener('data', function (data) {
- if (state == S_EXPECT_RFB) {
- if (!/RFB 003\.008\n/.test(data)) {
- sys.log('client sent wrong RFB version string: ' + data);
- stream.end();
- return;
- }
- sys.log('got RFB version from client, writing secLen 1 and secTypes 1');
- stream.write('\x01', 'binary'); // secLen of 1
- stream.write('\x01', 'binary'); // secTypes 1
- state = S_EXPECT_SECNUM;
- }
- else if (state == S_EXPECT_SECNUM) {
- stream.write('\x00\x00\x00\x00'); // secRes
- state = S_EXPECT_SHARED;
- }
- else if (state == S_EXPECT_SHARED) {
- stream.write(Word16be(720), 'binary');
- stream.write(Word16be(400), 'binary');
- stream.write(Word8(32), 'binary');
- stream.write(Word8(1), 'binary');
- stream.write(Word8(2), 'binary');
- stream.write(Word8(3), 'binary');
- stream.write(Word16be(4), 'binary');
- stream.write(Word16be(5), 'binary');
- stream.write(Word16be(6), 'binary');
- stream.write(Word8(7), 'binary');
- stream.write(Word8(8), 'binary');
- stream.write(Word8(9), 'binary');
-
- stream.write(Word8(10), 'binary'); // padding 3 bytes
- stream.write(Word8(11), 'binary');
- stream.write(Word8(12), 'binary');
-
- stream.write(Word32be(4), 'binary'); // nameLength
- stream.write("test");
-
- state = S_EXPECT_FB_UPDATE;
- }
- else if (state = S_EXPECT_FB_UPDATE) {
- // here the fun begins, send the updates from rfb-test-data directory
- //
-
- var SEND_TYPE = 'one'; // send one rect at a time, use 'all' to send all
-
- fs.readdir(__dirname + '/rfb-test-data', function (err, files) {
- function rectDim(fileName) {
- var m = fileName.match(/^\d+-rgba-(\d+)-(\d+)-(\d+)-(\d+).dat$/);
- var dim = [m[1], m[2], m[3], m[4]].map(function (n) {
- return parseInt(n, 10);
- });
- return { x: dim[0], y: dim[1], w: dim[2], h: dim[3] }
- }
-
- function sendFile(fileName) {
- var dim = rectDim(fileName);
- var data = fs.readFileSync(__dirname + '/rfb-test-data/' + fileName, 'binary');
-
- sys.log('sending ' + rgbaFiles[i]);
-
- /* writing data individually makes node-rfb go nuts */
-
- stream.write('\x00', 'binary'); // serverMsgTypes.fbUpdate
- stream.write('\x00', 'binary'); // skip 1 byte
- stream.write(Word16be(1), 'binary'); // nRects
- stream.write(Word16be(dim.x), 'binary'); // x
- stream.write(Word16be(dim.y), 'binary'); // y
- stream.write(Word16be(dim.w), 'binary'); // w
- stream.write(Word16be(dim.h), 'binary'); // h
- stream.write(Word32be(0), 'binary'); // encodingType
- stream.write(data, 'binary');
-
-
-
- /*
-
- var buf = [];
-
- buf.push('\x00'); // serverMsgTypes.fbUpdate
- buf.push('\x00'); // skip 1 byte
- buf.push(Word16be(1)); // nRects
- buf.push(Word16be(dim.x)); // x
- buf.push(Word16be(dim.y)); // y
- buf.push(Word16be(dim.w)); // w
- buf.push(Word16be(dim.h)); // h
- buf.push(Word32be(0)); // encodingType
- buf.push(data);
- sys.log(data.length);
-
- var toSend = buf.join('');
- stream.write(toSend, 'binary');
-
- */
- }
-
- function sendAll(files) {
-
- /* writing data individually makes node-rfb go nuts
-
- stream.write('\x00', 'binary'); // serverMsgTypes.fbUpdate
- stream.write('\x00', 'binary'); // skip 1 byte
- stream.write(Word16be(files.length), 'binary'); // nRects
- for (var i = 0; i<files.length; i++) {
- var fileName = files[i];
- var dim = rectDim(fileName);
- var data = fs.readFileSync(__dirname + '/rfb-test-data/' + fileName, 'binary');
- stream.write(Word16be(dim.x), 'binary'); // x
- stream.write(Word16be(dim.y), 'binary'); // y
- stream.write(Word16be(dim.w), 'binary'); // w
- stream.write(Word16be(dim.h), 'binary'); // h
- stream.write(Word32be(0), 'binary'); // encodingType
- stream.write(data, 'binary');
- }
-
- */
-
- var buf = [];
-
- buf.push('\x00'); // serverMsgTypes.fbUpdate
- buf.push('\x00'); // skip 1 byte
- buf.push(Word16be(files.length)); // nRects
- for (var i = 0; i<files.length; i++) {
- var fileName = files[i];
- var dim = rectDim(fileName);
- var data = fs.readFileSync(__dirname + '/rfb-test-data/' + fileName, 'binary');
- buf.push(Word16be(dim.x)); // x
- buf.push(Word16be(dim.y)); // y
- buf.push(Word16be(dim.w)); // w
- buf.push(Word16be(dim.h)); // h
- buf.push(Word32be(0)); // encodingType
- buf.push(data);
- }
-
- var toSend = buf.join('');
- stream.write(toSend, 'binary');
- }
-
- var rgbaFiles = files.filter(function (file) {
- return file.match(/^\d+-rgba-\d+-\d+-\d+-\d+\.dat$/)
- }).sort();
-
- if (SEND_TYPE == 'one') { // sends the files one-by-one
- for (var i=0; i<rgbaFiles.length; i++) {
- sendFile(rgbaFiles[i]);
- }
- }
- else if (SEND_TYPE == 'all') { // sends all the files at once
- sendAll(rgbaFiles);
- }
- else {
- sys.log('unknown SEND_TYPE');
- process.exit(1);
- }
- });
- }
- });
- stream.addListener('end', function () {
- sys.log('client disconnected');
- });
-}).listen(59000);
-
-sys.log('rfb server on port 59000');
View
26 tests/ec2.js
@@ -1,26 +0,0 @@
-var RFB = require('rfb');
-var Png = require('png').Png;
-var fs = require('fs');
-
-var host = 'ec2-184-72-203-1.compute-1.amazonaws.com';
-var port = 443;
-
-var rfb = new RFB({
- host : host,
- port : port,
- engine : 'tightvnc'
-});
-
-rfb.on('raw', function (raw) {
- console.log('screen %sx%s', raw.width, raw.height);
- var png = new Png(raw.fb, raw.width, raw.height, 'bgra');
- var file = 'ec2.png';
- png.encode(function (data, error) {
- if (error) {
- throw new Error(error);
- }
- fs.writeFileSync(file, data.toString('binary'), 'binary');
- console.log(file + ' written');
- process.exit(0);
- });
-});
View
26 tests/raw_pngs.js
@@ -1,26 +0,0 @@
-#!/usr/bin/env node
-// Write out png files for every raw framebuffer update.
-
-var sys = require('sys');
-var fs = require('fs');
-
-var Png = require('png').Png;
-var RFB = require('rfb').RFB;
-
-var rfb = new RFB({ port : process.argv[2] || 5900 });
-rfb.requestRedraw();
-
-var counter = 0;
-rfb.addListener('raw', function (raw) {
- var png = new Png(raw.fb, raw.width, raw.height, 'rgb');
- var filename = 'fb-' + (counter ++) + '.png';
- png.encode(function (data, err) {
- if (err) {
- console.log('Error: ' + err.toString());
- }
- else {
- fs.writeFileSync(filename, data, 'binary');
- sys.log(filename + ' written');
- }
- });
-});
Please sign in to comment.
Something went wrong with that request. Please try again.