Commit 18d73381 authored by Greg Williams's avatar Greg Williams
Browse files

Updated README for new test utility API.

Bumped version to 0.5.1 for new release
parent ba604986
Loading
Loading
Loading
Loading
+9 −21
Original line number Diff line number Diff line
@@ -60,36 +60,24 @@ NOTE: Prefix the following commands with `bundle exec` so that they execute in t
* Build/install Google Protocol Buffers support for the Kinetic-Protocol
    * `rake proto`
* Enable verbose output (for current Rake run)
    * `rake verbose *<task_A>* *<task_B>*`
    * `rake verbose <task_A> <task_B>...`

Examples
========

The following examples are provided for development reference and as utilities to aid development

In order to execute a given example, execute `kinetic-c` with a given example name and optional arguments (below)
In order to execute a given example, execute `kinetic-c` with a given example name and optional arguments (below), you must first
`cd` into the `build/artifacts/release` folder, and then execute the desired command.

**Optional Arguments**
* `--host [HostName/IP]` or `-h [HostName/IP]` - Set the Kinetic Device host
* `--tls` - Use the TLS port to execute the specified operation(s)

First, `cd` into the `build/release` folder, and then execute the desired command.
If no command is specified, kinetic-c will execute all of the example commands.


**e.g.** - Execute the NoOp operation against default host: `localhost`:

```
cd build/release
kinetic-c noop
```

**e.g.** - Execute the NoOp operation against `my-kinetic-server.com`:

```
cd build/release
kinetic-c noop --host my-kinetic-server.com
```


`noop [--hostname|-h "some_host.com"|123.253.253.23]`
* `noop` - Execute a NoOp to see if the Kinetic Device is online
	* `kinetic-c noop` - Execute the NoOp operation against default host: `localhost`:
	* `kinetic-c --host my-kinetic-server.com noop` - Execute the NoOp operation against `my-kinetic-server.com`:

`read_file_blocking` (incomplete!)

+1 −1
Original line number Diff line number Diff line
0.5.0
0.5.1
+1 −6
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ int main(int argc, char** argv)
        {0, 0, 0, 0}
    };

    while ((opt = getopt_long(argc, argv, "npgdh:z:", long_options, &optIndex)) != -1)
    while ((opt = getopt_long(argc, argv, "h", long_options, &optIndex)) != -1)
    {
        // Parse options until we reach the end of the argument list
        if (opt != -1)
@@ -75,11 +75,6 @@ int main(int argc, char** argv)
                    // If this option set a flag, do nothing else now.
                    if (long_options[optIndex].flag != 0)
                        break;
                    printf ("option %s", long_options[optIndex].name);
                    if (optarg)
                        printf (" with arg %s", optarg);
                    printf ("\n");
                    break;
                case 'h':
                    strcpy(cfg.host, optarg);
                    break;