This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| before(function (done) { | |
| server.server(options, function (s, db, providers) { | |
| synchelper.waitForAll( | |
| function () { | |
| s.listen(); | |
| done(); | |
| }, | |
| function (callback) { db.notification.remove({}, callback); }, | |
| function (callback) { providers.provider1.insertBulk([item1, item2, item3], callback); }, | |
| function (callback) { providers.provider2.insertBulk([item1, item2, item3], callback); }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ar _ = require("underscore"), | |
| assert = require("assert"), | |
| synchelper = require("../js/synchelper.js"); | |
| describe("Sync helper", function () { | |
| it("should preserve the arguments", function (done) { | |
| synchelper.waitForAll( | |
| done, | |
| function (callback) { | |
| callback(1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var _ = require("underscore"); | |
| /** | |
| * First argument is the callback to call when all are done | |
| * all other callbacks are functions of the form | |
| * function (callback, ...) { } | |
| * and must call callback when they are done | |
| * the ... will be any additional parameters from the previous step as | |
| * the first parameter of all functions is partially applied to be the callback | |
| * on creation of sequence. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var actions = [ | |
| function () { | |
| /* code for step 1 */ | |
| callback(); | |
| }, function () { | |
| /* code for step 2 */ | |
| callback(); | |
| }, function () { | |
| /* code for step 3 */ | |
| callback(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| before(function (done) { | |
| server.server(options, function (s, db, providers) { | |
| //clear db and add a test user - "testuser" | |
| db.user.remove({}, function () { | |
| db.notification.remove({}, function () { | |
| providers.provider1.insertBulk(item1, item2, item3], | |
| function (err, result) { | |
| providers.provider2.insert([item1, item2, item3] | |
| function (err, result) { | |
| providers.provider3.insert([item1, item2, item3] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tempfile | |
| import os | |
| import libxml2 | |
| RECIPIENTS="builds@rorotika.com" | |
| for line in [x.strip() for x in open("projects.list").readlines()]: | |
| GIT_URL = "git://git.rorotika/" + line | |
| GROUP_ID = "A" | |
| ARTIFACT_ID = "A" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| guard 'shell' do | |
| watch(%r"tests/.*test\..*") {|m| | |
| `node bgtests.js` | |
| } | |
| watch(%r"js/.*js") {|m| | |
| `node bgtests.js` | |
| } | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var exec = require("child_process").exec, | |
| spawn = require("child_process").spawn, | |
| command = "mocha -R json tests/*-test.js", | |
| _ = require("underscore"); | |
| var child = exec(command, function (error, stdout, stderr) { | |
| var output, STATUS, ICON, status; | |
| if (stderr) { | |
| STATUS="BROKEN"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -d "username=c&password=c&email=c" http://localhost:8080/admin/add # post data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vmware-modconfig --console --install-all |