platform/upstream/gt.git
10 years agogt: Add config config command parse
Pawel Szewczyk [Thu, 21 Aug 2014 11:36:46 +0000 (13:36 +0200)]
gt: Add config config command parse

Change-Id: If79e268641f97b876f3a0ab034664216b5e7cd5d
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
10 years agogt: tests: Add config get/set commands parsing tests
Pawel Szewczyk [Tue, 26 Aug 2014 13:02:03 +0000 (15:02 +0200)]
gt: tests: Add config get/set commands parsing tests

Change-Id: I4675a9264ccbb401e1b3667548d8b25bb8be10b8
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
10 years agogt: Add config get/set commands parse
Pawel Szewczyk [Thu, 21 Aug 2014 11:35:59 +0000 (13:35 +0200)]
gt: Add config get/set commands parse

Change-Id: Ic375a283a4ab09c48869ef64ef8309f0dda4a63d
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
10 years agogt: tests: Add config create/rm commands parsing tests
Pawel Szewczyk [Tue, 26 Aug 2014 12:51:18 +0000 (14:51 +0200)]
gt: tests: Add config create/rm commands parsing tests

Change-Id: I51bbb1101d3780fa53fbc49794fe91a5216c7e22
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
10 years agogt: Add config create/rm commands parsing
Pawel Szewczyk [Fri, 8 Aug 2014 13:28:08 +0000 (15:28 +0200)]
gt: Add config create/rm commands parsing

Change-Id: I0c172397c9960a633930b27bec6d3560601b3884
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
10 years agogt: tests: Add gadget template comands parsing tests
Pawel Szewczyk [Tue, 26 Aug 2014 12:11:37 +0000 (14:11 +0200)]
gt: tests: Add gadget template comands parsing tests

Change-Id: Icaec7c9e62b446ca5196c7432f74bc407ed3c038
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
10 years agogt: Add gadget template command parsing
Pawel Szewczyk [Wed, 20 Aug 2014 11:26:44 +0000 (13:26 +0200)]
gt: Add gadget template command parsing

Change-Id: I61584d7ad774ee64118a92c71bba15ecf5055d29
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
10 years agogt: tests: Add gadget load/save commands parsing tests
Pawel Szewczyk [Tue, 26 Aug 2014 11:39:31 +0000 (13:39 +0200)]
gt: tests: Add gadget load/save commands parsing tests

Change-Id: Iec1bc37bd78caef581400951888af5526e207875
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
10 years agogt: Add gadget load and save commands parsing
Pawel Szewczyk [Wed, 6 Aug 2014 14:29:15 +0000 (16:29 +0200)]
gt: Add gadget load and save commands parsing

Change-Id: Iad7cbadb16830d417089656ddf3ee370d95ec7f3
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
10 years agogt: tests: Add gadget gadget comand parsing tests
Pawel Szewczyk [Tue, 26 Aug 2014 11:07:17 +0000 (13:07 +0200)]
gt: tests: Add gadget gadget comand parsing tests

Change-Id: Id0ddc71a67817c48c4fb49473c40aedafcb9bfea
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
10 years agogt: Add gadget gadget command parse
Pawel Szewczyk [Tue, 5 Aug 2014 14:46:25 +0000 (16:46 +0200)]
gt: Add gadget gadget command parse

Change-Id: Ib1b1d7ae9cae070facfc5c58d2d781e40e48631b
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
10 years agogt: tests: Add gadget enable/disable commands parsing tests
Pawel Szewczyk [Tue, 26 Aug 2014 10:24:59 +0000 (12:24 +0200)]
gt: tests: Add gadget enable/disable commands parsing tests

Change-Id: I422e42e30fec9aeb019b6cb357a0165d647ac6d7
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
10 years agogt: Add gadget enable and disable command parsing
Pawel Szewczyk [Wed, 20 Aug 2014 08:24:02 +0000 (10:24 +0200)]
gt: Add gadget enable and disable command parsing

Change-Id: I1764a97cf151fb0747707287c09d20f27b502380
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
10 years agogt: tests: Add gadget get/set commands parsing tests
Pawel Szewczyk [Thu, 28 Aug 2014 06:59:13 +0000 (08:59 +0200)]
gt: tests: Add gadget get/set commands parsing tests

Change-Id: If9a69155ea914167aebdc360f7f1e3d32730cda7
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
10 years agogt: Add gadget get and set comands parsing
Pawel Szewczyk [Tue, 5 Aug 2014 11:40:16 +0000 (13:40 +0200)]
gt: Add gadget get and set comands parsing

Change-Id: I206fca8de0f17f64d444381d3a9b38b5848f7ca9
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
10 years agogt: tests: Add gadget create and rm commands parsing tests
Pawel Szewczyk [Wed, 27 Aug 2014 15:24:37 +0000 (17:24 +0200)]
gt: tests: Add gadget create and rm commands parsing tests

Change-Id: Id064795de13162d3ba0e9afffc3ce59301e99db6
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
10 years agogt: Add gadget create and rm commands parsing
Pawel Szewczyk [Tue, 5 Aug 2014 11:19:53 +0000 (13:19 +0200)]
gt: Add gadget create and rm commands parsing

Change-Id: Iaac0802749e29b5f830288e39d587bd710699287
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
10 years agogt: tests: Add colours for OK and FAILED
Krzysztof Opasiak [Wed, 27 Aug 2014 12:41:57 +0000 (14:41 +0200)]
gt: tests: Add colours for OK and FAILED

Change-Id: If2c45fbe2002aeedf58e4fb942cdd5696fb65c3e
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
10 years agogt: tests: Add settings command test
Pawel Szewczyk [Wed, 27 Aug 2014 06:55:00 +0000 (08:55 +0200)]
gt: tests: Add settings command test

Change-Id: I67455a8cf892ae020f8c8d2866539db29ddfc42e
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
10 years agogt: Add setting command parsing
Pawel Szewczyk [Wed, 20 Aug 2014 13:48:41 +0000 (15:48 +0200)]
gt: Add setting command parsing

Change-Id: Ib1e5a484934b0e08977305d7824aa46399d3da01
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
10 years agogt: Add End of commands list macro
Pawel Szewczyk [Thu, 21 Aug 2014 08:13:07 +0000 (10:13 +0200)]
gt: Add End of commands list macro

Change-Id: I6b92275ef7a73f104320d2d6e02b7c14cf06a635
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
10 years agogt: Add parsing of known options flags
Pawel Szewczyk [Tue, 26 Aug 2014 08:33:51 +0000 (10:33 +0200)]
gt: Add parsing of known options flags

Change-Id: Icfa666fbf9ecd36c5566db2344d5375035953663
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
10 years agogt: Add parsing of common command attributes
Pawel Szewczyk [Tue, 26 Aug 2014 08:40:31 +0000 (10:40 +0200)]
gt: Add parsing of common command attributes

Change-Id: Iba87876d8b839f09e754515fa437bdbcb9873750
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
10 years agogt: Add zalloc function
Pawel Szewczyk [Tue, 26 Aug 2014 09:36:48 +0000 (11:36 +0200)]
gt: Add zalloc function

Change-Id: Ifd4de1238edf4ab95a65a5006e6761e7618e8bee
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
10 years agogt: Make defining default function for command_parse possible
Pawel Szewczyk [Wed, 13 Aug 2014 11:46:49 +0000 (13:46 +0200)]
gt: Make defining default function for command_parse possible

It's not error, when standard command parse reach end of arguments list.
We can define some non-help-printing behavior for this situation.

Change-Id: Ib4bed570f385883d8cda5f79b648cfc31cef1e2a
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
10 years agogt: Removed const from main arguments type
Pawel Szewczyk [Tue, 12 Aug 2014 07:32:28 +0000 (09:32 +0200)]
gt: Removed const from main arguments type

Argument passed to getopt should not be const char **

Change-Id: I0097802cd90d75a93a1e55efb40b75dac9e898f1
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
10 years agogt: packaging: Add packaging for generating rpm package
Krzysztof Opasiak [Thu, 31 Jul 2014 06:44:11 +0000 (08:44 +0200)]
gt: packaging: Add packaging for generating rpm package

Change-Id: I5a2bb400aad2d8c4303a5b2dcf959cd7388efae2
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
10 years agogt: cmake: Rewrite CMake scripts
Krzysztof Opasiak [Wed, 30 Jul 2014 07:35:28 +0000 (09:35 +0200)]
gt: cmake: Rewrite CMake scripts

Change-Id: I32f0f980b2f0fb67a3ea4af889480d87317ca015
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
10 years agogt: Adjust gitignore
Krzysztof Opasiak [Tue, 29 Jul 2014 11:37:35 +0000 (13:37 +0200)]
gt: Adjust gitignore

Change-Id: I66263b4d6196871b57be362bc25a2aab2d8a2ba4
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
10 years agogt: Addjust coding style to be more kernel-like
Krzysztof Opasiak [Tue, 29 Jul 2014 11:37:06 +0000 (13:37 +0200)]
gt: Addjust coding style to be more kernel-like

Change-Id: I034c485bd4fc58079e40f6e673a92b6bf30b052a
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
10 years agoFirst approach to implement a command line parser.
Krzysztof Opasiak [Fri, 8 Nov 2013 10:12:48 +0000 (11:12 +0100)]
First approach to implement a command line parser.

Add framework for parsing command line options.
Whole commands structure is a tree. We search from
root to leaves and print suitable help message if
an error occurred.

Change-Id: Ic3d3114b3d2380021da10410fafb50dcc8fe613a
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
10 years agoAdd LICENSE and .gitignore.
Krzysztof Opasiak [Mon, 25 Nov 2013 14:05:26 +0000 (15:05 +0100)]
Add LICENSE and .gitignore.

Add terms of Apache v2 license and .gitignore file.

Change-Id: I290eb43a88cae1784a5ba68262f0d90342080e43
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
11 years agoFirst approach to design of gadget tool.
Krzysztof Opasiak [Tue, 29 Oct 2013 13:25:18 +0000 (14:25 +0100)]
First approach to design of gadget tool.

Adds a document which describes reasons of this project,
goal to achieve and proposed command line calls.

Change-Id: I65f5e5a59d5b1b0ef7040755f207f32ccd2e021c
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
11 years agoInitial commit
kopasiak [Wed, 23 Oct 2013 11:21:29 +0000 (04:21 -0700)]
Initial commit