Skip to content

Instantly share code, notes, and snippets.

View gabrielschulhof's full-sized avatar

Gabriel Schulhof gabrielschulhof

  • California, USA
View GitHub Profile
17:48:33 -!- travis-ci [[email protected]] has joined #iotivity-node
17:48:34 < travis-ci> otcshare/iotivity-node#370 (gabriel-update-spec - 59960ef : Gabriel Schulhof): The build passed.
17:48:34 < travis-ci> Change view : https://github.com/otcshare/iotivity-node/compare/4e14c532b8cd...59960ef7789b
17:48:34 < travis-ci> Build details : https://travis-ci.org/otcshare/iotivity-node/builds/93543180
17:48:34 -!- travis-ci [[email protected]] has left #iotivity-node []
17:54:38 -!- travis-ci [[email protected]] has joined #iotivity-node
17:54:39 < travis-ci> otcshare/iotivity-node#370 (gabriel-update-spec - 59960ef : Gabriel Schulhof): The build passed.
17:54:39 < travis-ci> Change view : https://github.com/otcshare/iotivity-node/compare/4e14c532b8cd...59960ef7789b
17:54:39 < travis-ci> Build details : https://travis-ci.org/otcshare/iotivity-node/builds/93543180
17:54:39 -!- travis-ci [~travis-ci@ec2-107-22-5
g++ '-DNODE_GYP_MODULE_NAME=soletta' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' \
'-DBUILDING_NODE_EXTENSION' -I../node_modules/nan -I/home/nix/iot/soletta-js/src \
-I/home/nix/.node-gyp/4.0.0/include/node -I/home/nix/.node-gyp/4.0.0/src \
-I/home/nix/.node-gyp/4.0.0/deps/uv/include -I/home/nix/.node-gyp/4.0.0/deps/v8/include \
\
-fpermissive \
\
-I/home/nix/iot/soletta-js/depbuild/soletta/build/soletta_sysroot/usr/include/soletta -pthread \
-Wall -Wextra -Wno-unused-parameter -m32 -O3 -ffunction-sections -fdata-sections \
-fno-omit-frame-pointer -std=c++11 -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF \
/*
Compiled with
cc empty-server.c -g -Wall -O0 `pkg-config --cflags --libs glib-2.0` \
-I$(pwd)/resource/csdk/stack/include \
-I$(pwd)/resource/csdk/ocrandom/include \
-I$(pwd)/resource/c_common \
-DTCP_ADAPTER -DROUTING_EP \
-L$(pwd)/out/linux/x86/release -Wl,-rpath $(pwd)/out/linux/x86/release -loctbstack \
-o empty-server
new Promise( function( fulfill, reject ) {
var a = {};
a.b.c = 5;
} ).catch( function( error ) {
console.log( error );
throw error;
} );
#include <nan.h>
#include <node.h>
#include <v8.h>
using namespace v8;
int counter = 0;
extern void doSomething();
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
tmp.c:5:19: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions]
OtherStruct() = default;
^
tmp.c:20:35: error: non-aggregate type 'OtherStruct' cannot be initialized with an initializer list
SomeStruct useful = { 11, 19, { { 5, 7 } }, 2 };
^~~~~~~~
1 warning and 1 error generated.

Maintenance

Tests

To run the tests, simply run grunt test. A script called dist.sh is also provided. It runs npm install, runs the tests, then runs npm prune --production to remove all sources, headers, and build dependencies. After that, it copies relevant files to dist/ and creates a tarball from them. This is followed by running npm install again to restore the development environment.

The dist.sh script accepts the optional command line argument --testonly. This will cause the script to exit after having run the tests.

A crude way of estimating which functions still need to be tested is this:

iotivity-node

Description

This project provides [iotivity][] node.js bindings.

Build status

Build Status
#include <stdio.h>
#include <string.h>
#include <signal.h>
#include <glib.h>
#include <ocstack.h>
#include <ocpayload.h>
static int observationCount = 0;
#include <stdio.h>
#include <string.h>
#include <signal.h>
#include <glib.h>
#include <ocstack.h>
#include <ocpayload.h>
static int observationCount = 0;