summaryrefslogtreecommitdiff
path: root/tests/ovsdb-monitor.at
Commit message (Collapse)AuthorAgeFilesLines
* tests: Automatically initialize OVS_*DIR vars when tests begin.Ben Pfaff2015-09-091-1/+0
| | | | | | | | | | A lot of tests need to initialize the OVS_RUNDIR, OVS_LOGDIR, etc. variables to point to the directory in which the tests run. Until now, each of them has had to do this individually, which is redundant. This commit starts to do this automatically. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Andy Zhou <azhou@nicira.com>
* ovsdb-monitor.at: Changes for Windows.Gurucharan Shetty2014-05-281-1/+7
| | | | | | | | | | | | | | | | ovsdb-client's 'monitor' command works with --detach such that the parent detaches after printing initial transactions in the database. This is a little tricky to implement in windows. So for windows, send the process to background with '&' and then sleep for a second to let the intial transactions printed. (We can do the same for Linux, but it slows down the test run) Also let the perl script that looks at the o/p be aware of CR LF in windows. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* ovsdb-server: Send update for _version for changes due to weak ref removal.Ben Pfaff2014-04-031-1/+1
| | | | | | | | | | | | | | | | | | When a row was deleted, and that caused the transaction manager to remove a remaining weak reference to the row, and no other change had been made to the row in that transaction, and a client was monitoring modifications of the _version column in the row, then the monitor update for the column did not include the old contents of the _version column, even though it should have. This commit fixes the problem. Probably most clients only look at the new value of the column, if they monitor _version at all, and this bug is really old, so it's probably not a serious bug. Found by inspection. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Andy Zhou <azhou@nicira.com>
* invoke perl as ${PERL}YAMAMOTO Takashi2013-04-221-1/+1
| | | | | | | as suggested by Ben Pfaff. Signed-off-by: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp> Signed-off-by: Ben Pfaff <blp@nicira.com>
* stream-unix: Use rundir as root for relative paths.Pavithra Ramesh2013-02-111-0/+1
| | | | | | | | | | | | | | Until now, "unix:" and "punix:" paths that are not absolute have been considered relative to the current working directory. It is more useful to consider them relative to the rundir, so this commit makes that change to the C and Python implementations of the stream code. This commit also relaxes the whitelist check in the bridge code so that any name that does not contain a "/" is considered OK. Signed-off-by: Pavithra Ramesh <paramesh@vmware.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* tests: Invoke daemons with --no-chdir so core files appear in test dir.Ben Pfaff2012-08-161-2/+2
| | | | | | | | | | | | | | | | | The OVS daemons "cd" to / as a normal part of their startup, since this is traditional for daemons under Unix. But this also means that, if the daemons happen to terminate with a core in the unit tests, then the core file won't be written because / has too-restrictive permissions. (Unless you run the unit tests as root, or you've got cores configured to go to a non-standard location.) This commit fixes the problem by invoking most daemons with --no-chdir so that the core files go to a test-specific directory. I didn't change invocations of the Python daemons, since Python doesn't normally terminate with a core. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Kyle Mestery <kmestery@cisco.com>
* Use `pwd` in place of $PWD, treewide.Ben Pfaff2012-03-131-3/+3
| | | | | | | | | | | | | | | | | The Autoconf manual says: Posix 1003.1-2001 requires that `cd' and `pwd' must update the `PWD' environment variable to point to the logical name of the current directory, but traditional shells do not support this. This can cause confusion if one shell instance maintains `PWD' but a subsidiary and different shell does not know about `PWD' and executes `cd'; in this case `PWD' points to the wrong directory. Use ``pwd`' rather than `$PWD'. so this commit replaces all uses of $PWD by `pwd`. Reported-by: Justin Pettit <jpettit@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* tests: Convert *_SCHEMA macros to shell functions.Ben Pfaff2012-03-071-16/+15
| | | | | | | This reduces tests/testsuite by about 70 kB, by collapsing a number of macro expansions into just one copy in a shell function. Signed-off-by: Ben Pfaff <blp@nicira.com>
* ovsdb: Extend "monitor" to select different operations in a single table.Ben Pfaff2010-07-011-9/+8
| | | | | | | | | | | Until now, "monitor" has only allowed the client to choose the kinds of changes that will be monitored on a per-table basis. However, it makes sense to be able to choose operations on a per-column basis. The immediate need for this is to make sure that the final statistics of deleted Interface records are known at time of deletion, even though the intermediate values of the statistics are not important. CC: Jeremy Stribling <strib@nicira.com>
* tests: Add OVSDB tests for monitors that select only certain operations.Ben Pfaff2010-06-301-5/+109
| | | | | This has been supported as long as table monitoring has been supported, but until now there were no tests, so this commit adds some.
* ovsdb-client: Serialize columns in predictable order on "monitor" command.Ben Pfaff2010-05-071-6/+6
| | | | | | | | | The "monitor" command goes to some trouble to write its output in a predictable order, so that test programs can reliably compare it against expectations. This commit fixes up one part that was missing, which is that the columns were not being ordered predictably (it depended on hash order, which differs between big-endian and little-endian systems). It also updates the test suite to expect the new order.
* ovsdb: Add support for weak references.Ben Pfaff2010-03-171-14/+48
|
* ovsdb-client: Add blank line between tables in CSV, tabular output.Ben Pfaff2010-02-151-0/+6
| | | | | Adding a blank line makes the output easier to read when there are multiple tables.
* ovsdb-client: Introduce new data formatting style as the default.Ben Pfaff2010-02-151-1/+1
| | | | | The new data formatting style is generally shorter and easier to read than the JSON representation (which is still available using "-d json").
* ovsdb: Add support for multiple databases to the protocol.Ben Pfaff2010-02-091-15/+29
| | | | | | This also adds protocol compatibility to the database itself and to ovsdb-client. It doesn't actually add multiple database support to ovsdb-server, since we don't really need that yet.
* Rework and simplify the "lcov" support for the testsuite.Ben Pfaff2010-02-021-5/+5
|
* tests: New macro OVS_WAIT_WHILE.Ben Pfaff2010-01-151-1/+1
| | | | For use by upcoming tests.
* ovsdb-server: Make database connections configurable from database itself.Ben Pfaff2010-01-041-1/+1
| | | | | Most importantly this adds a "managers" column to the vswitch database that specifies where the ovsdb-server should connect.
* ovsdb: Fix race conditions in test suite.Ben Pfaff2009-12-031-5/+7
|
* ovsdb: Add more tests for "monitor" feature.Ben Pfaff2009-11-181-3/+117
|
* ovsdb: Monitor support.Ben Pfaff2009-11-171-0/+46