{"action":"created","comment":{"url":"https://api.github.com/repos/01org/parameter-framework/pulls/comments/26847569","id":26847569,"diff_hunk":"@@ -0,0 +1,111 @@\n+/*\n+* Copyright (c) 2011-2015, Intel Corporation\n+* All rights reserved.\n+*\n+* Redistribution and use in source and binary forms, with or without modification,\n+* are permitted provided that the following conditions are met:\n+*\n+* 1. Redistributions of source code must retain the above copyright notice, this\n+* list of conditions and the following disclaimer.\n+*\n+* 2. Redistributions in binary form must reproduce the above copyright notice,\n+* this list of conditions and the following disclaimer in the documentation and/or\n+* other materials provided with the distribution.\n+*\n+* 3. Neither the name of the copyright holder nor the names of its contributors\n+* may be used to endorse or promote products derived from this software without\n+* specific prior written permission.\n+*\n+* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n+* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n+* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n+* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR\n+* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n+* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n+* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\n+* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n+* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+*/\n+#include <fstream>\n+#include <assert.h>\n+#include \"TESTSubsystem.h\"\n+#include \"TESTSubsystemBinary.h\"\n+#include \"TESTSubsystemString.h\"\n+#include \"TESTMappingKeys.h\"\n+#include \"SubsystemObjectFactory.h\"\n+#include <stdlib.h>\n+#include <stdio.h>\n+\n+#define base CSubsystem\n+\n+// Directory for isAlive and NeedResync files\n+const char* gacFwNamePropName = getenv(\"PFW_FS\");\n+\n+// Implementation\n+CTESTSubsystem::CTESTSubsystem(const std::string& strName) : base(strName)\n+{\n+    // Provide mapping keys to upper layer\n+    addContextMappingKey(\"Directory\");\n+    addContextMappingKey(\"Log\");\n+\n+    // Provide creators to upper layer\n+    addSubsystemObjectFactory(new TSubsystemObjectFactory<CTESTSubsystemBinary>(\"Binary\", 1 << ETESTDirectory));\n+    addSubsystemObjectFactory(new TSubsystemObjectFactory<CTESTSubsystemString>(\"String\", 1 << ETESTDirectory));\n+}\n+\n+// Susbsystem sanity health\n+bool CTESTSubsystem::isAlive() const\n+{\n+    return read(std::string(gacFwNamePropName) + \"/isAlive\") == \"true\";","path":"test/test-subsystem/TESTSubsystem.cpp","position":60,"original_position":60,"commit_id":"a114cc8f7cae1cabb7089d043cc6387eb0a61c0d","original_commit_id":"a114cc8f7cae1cabb7089d043cc6387eb0a61c0d","user":{"login":"AdrienMQ","id":9973873,"avatar_url":"https://avatars.githubusercontent.com/u/9973873?v=3","gravatar_id":"","url":"https://api.github.com/users/AdrienMQ","html_url":"https://github.com/AdrienMQ","followers_url":"https://api.github.com/users/AdrienMQ/followers","following_url":"https://api.github.com/users/AdrienMQ/following{/other_user}","gists_url":"https://api.github.com/users/AdrienMQ/gists{/gist_id}","starred_url":"https://api.github.com/users/AdrienMQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdrienMQ/subscriptions","organizations_url":"https://api.github.com/users/AdrienMQ/orgs","repos_url":"https://api.github.com/users/AdrienMQ/repos","events_url":"https://api.github.com/users/AdrienMQ/events{/privacy}","received_events_url":"https://api.github.com/users/AdrienMQ/received_events","type":"User","site_admin":false},"body":"done","created_at":"2015-03-20T15:19:32Z","updated_at":"2015-03-20T15:19:32Z","html_url":"https://github.com/01org/parameter-framework/pull/69#discussion_r26847569","pull_request_url":"https://api.github.com/repos/01org/parameter-framework/pulls/69","_links":{"self":{"href":"https://api.github.com/repos/01org/parameter-framework/pulls/comments/26847569"},"html":{"href":"https://github.com/01org/parameter-framework/pull/69#discussion_r26847569"},"pull_request":{"href":"https://api.github.com/repos/01org/parameter-framework/pulls/69"}}},"pull_request":{"url":"https://api.github.com/repos/01org/parameter-framework/pulls/69","id":31356105,"html_url":"https://github.com/01org/parameter-framework/pull/69","diff_url":"https://github.com/01org/parameter-framework/pull/69.diff","patch_url":"https://github.com/01org/parameter-framework/pull/69.patch","issue_url":"https://api.github.com/repos/01org/parameter-framework/issues/69","number":69,"state":"open","locked":false,"title":"Functionnal test","user":{"login":"AdrienMQ","id":9973873,"avatar_url":"https://avatars.githubusercontent.com/u/9973873?v=3","gravatar_id":"","url":"https://api.github.com/users/AdrienMQ","html_url":"https://github.com/AdrienMQ","followers_url":"https://api.github.com/users/AdrienMQ/followers","following_url":"https://api.github.com/users/AdrienMQ/following{/other_user}","gists_url":"https://api.github.com/users/AdrienMQ/gists{/gist_id}","starred_url":"https://api.github.com/users/AdrienMQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdrienMQ/subscriptions","organizations_url":"https://api.github.com/users/AdrienMQ/orgs","repos_url":"https://api.github.com/users/AdrienMQ/repos","events_url":"https://api.github.com/users/AdrienMQ/events{/privacy}","received_events_url":"https://api.github.com/users/AdrienMQ/received_events","type":"User","site_admin":false},"body":"These patches add the functionnal tests to the parameter-framework.\r\nThey also dissociate the make install and the make test.","created_at":"2015-03-17T17:09:24Z","updated_at":"2015-03-20T15:19:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9149fe2bf7ec0e0e904672371471c6bce8e2307c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/01org/parameter-framework/pulls/69/commits","review_comments_url":"https://api.github.com/repos/01org/parameter-framework/pulls/69/comments","review_comment_url":"https://api.github.com/repos/01org/parameter-framework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/01org/parameter-framework/issues/69/comments","statuses_url":"https://api.github.com/repos/01org/parameter-framework/statuses/a114cc8f7cae1cabb7089d043cc6387eb0a61c0d","head":{"label":"AdrienMQ:functionnal_test","ref":"functionnal_test","sha":"a114cc8f7cae1cabb7089d043cc6387eb0a61c0d","user":{"login":"AdrienMQ","id":9973873,"avatar_url":"https://avatars.githubusercontent.com/u/9973873?v=3","gravatar_id":"","url":"https://api.github.com/users/AdrienMQ","html_url":"https://github.com/AdrienMQ","followers_url":"https://api.github.com/users/AdrienMQ/followers","following_url":"https://api.github.com/users/AdrienMQ/following{/other_user}","gists_url":"https://api.github.com/users/AdrienMQ/gists{/gist_id}","starred_url":"https://api.github.com/users/AdrienMQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdrienMQ/subscriptions","organizations_url":"https://api.github.com/users/AdrienMQ/orgs","repos_url":"https://api.github.com/users/AdrienMQ/repos","events_url":"https://api.github.com/users/AdrienMQ/events{/privacy}","received_events_url":"https://api.github.com/users/AdrienMQ/received_events","type":"User","site_admin":false},"repo":{"id":32165103,"name":"parameter-framework","full_name":"AdrienMQ/parameter-framework","owner":{"login":"AdrienMQ","id":9973873,"avatar_url":"https://avatars.githubusercontent.com/u/9973873?v=3","gravatar_id":"","url":"https://api.github.com/users/AdrienMQ","html_url":"https://github.com/AdrienMQ","followers_url":"https://api.github.com/users/AdrienMQ/followers","following_url":"https://api.github.com/users/AdrienMQ/following{/other_user}","gists_url":"https://api.github.com/users/AdrienMQ/gists{/gist_id}","starred_url":"https://api.github.com/users/AdrienMQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdrienMQ/subscriptions","organizations_url":"https://api.github.com/users/AdrienMQ/orgs","repos_url":"https://api.github.com/users/AdrienMQ/repos","events_url":"https://api.github.com/users/AdrienMQ/events{/privacy}","received_events_url":"https://api.github.com/users/AdrienMQ/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AdrienMQ/parameter-framework","description":"Plugin-based and rule-based framework for describing and controlling parameters","fork":true,"url":"https://api.github.com/repos/AdrienMQ/parameter-framework","forks_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/forks","keys_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/teams","hooks_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/hooks","issue_events_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/issues/events{/number}","events_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/events","assignees_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/assignees{/user}","branches_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/branches{/branch}","tags_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/tags","blobs_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/languages","stargazers_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/stargazers","contributors_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/contributors","subscribers_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/subscribers","subscription_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/subscription","commits_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/contents/{+path}","compare_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/merges","archive_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/downloads","issues_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/issues{/number}","pulls_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/labels{/name}","releases_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/releases{/id}","created_at":"2015-03-13T15:52:32Z","updated_at":"2015-03-16T08:28:59Z","pushed_at":"2015-03-19T10:07:45Z","git_url":"git://github.com/AdrienMQ/parameter-framework.git","ssh_url":"git@github.com:AdrienMQ/parameter-framework.git","clone_url":"https://github.com/AdrienMQ/parameter-framework.git","svn_url":"https://github.com/AdrienMQ/parameter-framework","homepage":"","size":37574,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"01org:master","ref":"master","sha":"0038f36e0b04d25c1da46b061e67e2547c0553b0","user":{"login":"01org","id":1635439,"avatar_url":"https://avatars.githubusercontent.com/u/1635439?v=3","gravatar_id":"","url":"https://api.github.com/users/01org","html_url":"https://github.com/01org","followers_url":"https://api.github.com/users/01org/followers","following_url":"https://api.github.com/users/01org/following{/other_user}","gists_url":"https://api.github.com/users/01org/gists{/gist_id}","starred_url":"https://api.github.com/users/01org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/01org/subscriptions","organizations_url":"https://api.github.com/users/01org/orgs","repos_url":"https://api.github.com/users/01org/repos","events_url":"https://api.github.com/users/01org/events{/privacy}","received_events_url":"https://api.github.com/users/01org/received_events","type":"Organization","site_admin":false},"repo":{"id":16009363,"name":"parameter-framework","full_name":"01org/parameter-framework","owner":{"login":"01org","id":1635439,"avatar_url":"https://avatars.githubusercontent.com/u/1635439?v=3","gravatar_id":"","url":"https://api.github.com/users/01org","html_url":"https://github.com/01org","followers_url":"https://api.github.com/users/01org/followers","following_url":"https://api.github.com/users/01org/following{/other_user}","gists_url":"https://api.github.com/users/01org/gists{/gist_id}","starred_url":"https://api.github.com/users/01org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/01org/subscriptions","organizations_url":"https://api.github.com/users/01org/orgs","repos_url":"https://api.github.com/users/01org/repos","events_url":"https://api.github.com/users/01org/events{/privacy}","received_events_url":"https://api.github.com/users/01org/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/01org/parameter-framework","description":"Plugin-based and rule-based framework for describing and controlling parameters","fork":false,"url":"https://api.github.com/repos/01org/parameter-framework","forks_url":"https://api.github.com/repos/01org/parameter-framework/forks","keys_url":"https://api.github.com/repos/01org/parameter-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/01org/parameter-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/01org/parameter-framework/teams","hooks_url":"https://api.github.com/repos/01org/parameter-framework/hooks","issue_events_url":"https://api.github.com/repos/01org/parameter-framework/issues/events{/number}","events_url":"https://api.github.com/repos/01org/parameter-framework/events","assignees_url":"https://api.github.com/repos/01org/parameter-framework/assignees{/user}","branches_url":"https://api.github.com/repos/01org/parameter-framework/branches{/branch}","tags_url":"https://api.github.com/repos/01org/parameter-framework/tags","blobs_url":"https://api.github.com/repos/01org/parameter-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/01org/parameter-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/01org/parameter-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/01org/parameter-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/01org/parameter-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/01org/parameter-framework/languages","stargazers_url":"https://api.github.com/repos/01org/parameter-framework/stargazers","contributors_url":"https://api.github.com/repos/01org/parameter-framework/contributors","subscribers_url":"https://api.github.com/repos/01org/parameter-framework/subscribers","subscription_url":"https://api.github.com/repos/01org/parameter-framework/subscription","commits_url":"https://api.github.com/repos/01org/parameter-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/01org/parameter-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/01org/parameter-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/01org/parameter-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/01org/parameter-framework/contents/{+path}","compare_url":"https://api.github.com/repos/01org/parameter-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/01org/parameter-framework/merges","archive_url":"https://api.github.com/repos/01org/parameter-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/01org/parameter-framework/downloads","issues_url":"https://api.github.com/repos/01org/parameter-framework/issues{/number}","pulls_url":"https://api.github.com/repos/01org/parameter-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/01org/parameter-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/01org/parameter-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/01org/parameter-framework/labels{/name}","releases_url":"https://api.github.com/repos/01org/parameter-framework/releases{/id}","created_at":"2014-01-17T19:24:01Z","updated_at":"2015-03-19T18:43:52Z","pushed_at":"2015-03-20T08:07:37Z","git_url":"git://github.com/01org/parameter-framework.git","ssh_url":"git@github.com:01org/parameter-framework.git","clone_url":"https://github.com/01org/parameter-framework.git","svn_url":"https://github.com/01org/parameter-framework","homepage":"","size":38910,"stargazers_count":7,"watchers_count":7,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":12,"mirror_url":null,"open_issues_count":17,"forks":12,"open_issues":17,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/01org/parameter-framework/pulls/69"},"html":{"href":"https://github.com/01org/parameter-framework/pull/69"},"issue":{"href":"https://api.github.com/repos/01org/parameter-framework/issues/69"},"comments":{"href":"https://api.github.com/repos/01org/parameter-framework/issues/69/comments"},"review_comments":{"href":"https://api.github.com/repos/01org/parameter-framework/pulls/69/comments"},"review_comment":{"href":"https://api.github.com/repos/01org/parameter-framework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/01org/parameter-framework/pulls/69/commits"},"statuses":{"href":"https://api.github.com/repos/01org/parameter-framework/statuses/a114cc8f7cae1cabb7089d043cc6387eb0a61c0d"}}}}