Eric Blake
38d4bf49a0
tests: add helper to determine when to skip expensive tests
...
The logic set up in previous patch for exposing VIR_TEST_EXPENSIVE
to individual tests is as follows:
make check VIR_TEST_EXPENSIVE=0 => getenv("VIR_TEST_EXPENSIVE") sees "0"
make check VIR_TEST_EXPENSIVE=1 => getenv("VIR_TEST_EXPENSIVE") sees "1"
make check => getenv("VIR_TEST_EXPENSIVE") sees
either "0" or "1", based on configure options
cd tests; ./FOOtest => getenv("VIR_TEST_EXPENSIVE") sees
whatever is in your environment (usually NULL, but possibly garbage)
Merely checking if VIR_TEST_EXPENSIVE is set in the environment
does the wrong thing; likewise, it is unsafe to assume the
variable will always contain a valid number.
As such, it helps to have helper functions, instead of making each
expensive test repeat the probe of the environment.
* tests/testutils.h (virTestGetExpensive): New prototype.
* tests/testutils.c (virTestGetExpensive): Implement it.
* tests/test-lib.sh (very_expensive_): Rename...
(test_expensive): ...and tweak to use VIR_TEST_EXPENSIVE.
Signed-off-by: Eric Blake <eblake@redhat.com>
2013-08-12 10:06:41 -06:00
..
2013-07-01 14:30:42 +02:00
2013-05-06 14:01:08 -06:00
2013-07-22 13:57:53 +02:00
2013-04-15 17:35:31 +01:00
2013-04-25 13:05:10 +02:00
2013-05-13 17:24:18 +08:00
2013-05-13 13:15:19 +01:00
2013-06-25 00:22:36 -04:00
2013-06-25 00:22:36 -04:00
2013-06-26 14:10:56 -04:00
2013-05-13 18:30:26 +08:00
2013-07-16 11:47:39 +02:00
2013-08-06 13:37:36 -04:00
2013-08-06 13:37:36 -04:00
2013-05-17 08:33:22 +02:00
2013-07-16 12:16:37 +02:00
2013-07-16 12:16:37 +02:00
2013-05-17 08:35:08 +02:00
2013-07-25 13:27:41 +02:00
2013-07-25 13:26:41 +02:00
2013-07-25 13:26:41 +02:00
2013-04-04 11:07:31 +01:00
2013-04-02 15:53:43 +02:00
2013-08-01 17:04:28 -04:00
2013-07-11 14:18:11 -04:00
2013-07-18 12:18:24 +01:00
2013-07-22 13:57:53 +02:00
2013-07-10 11:07:31 +02:00
2013-07-10 17:40:13 +01:00
2013-07-10 17:40:13 +01:00
2013-07-10 11:07:31 +02:00
2013-05-31 10:51:33 -06:00
2013-07-10 11:07:31 +02:00
2013-08-01 17:04:28 -04:00
2013-07-10 11:07:33 +02:00
2013-07-10 11:07:31 +02:00
2013-08-12 10:02:38 -06:00
2013-07-10 11:07:31 +02:00
2013-07-10 11:07:31 +02:00
2013-07-10 11:07:31 +02:00
2013-07-10 17:40:13 +01:00
2013-07-10 11:07:31 +02:00
2013-04-24 10:59:53 +01:00
2013-07-10 17:40:13 +01:00
2013-08-12 14:53:31 +02:00
2013-07-10 11:07:31 +02:00
2013-07-29 13:31:20 +08:00
2013-07-18 15:28:45 +02:00
2013-07-22 16:59:14 +02:00
2013-07-10 17:40:13 +01:00
2013-08-02 12:28:58 +02:00
2013-07-31 14:25:43 +02:00
2013-08-06 13:37:36 -04:00
2013-08-05 15:47:49 -04:00
2013-05-20 20:14:19 +08:00
2013-06-06 17:22:53 +02:00
2013-05-09 11:46:45 -06:00
2013-05-10 11:54:29 +02:00
2013-07-10 11:07:33 +02:00
2013-07-10 11:07:33 +02:00
2013-07-10 11:07:31 +02:00
2013-05-21 09:22:21 -04:00
2013-07-29 13:09:39 -06:00
2013-06-07 15:21:57 +02:00
2013-07-29 13:09:39 -06:00
2013-05-10 08:52:43 -04:00
2013-05-17 08:33:22 +02:00
2013-07-16 12:16:37 +02:00
2013-05-17 08:35:08 +02:00
2013-07-26 14:17:02 +02:00
2013-07-25 13:26:41 +02:00
2013-07-10 11:07:31 +02:00
2013-07-10 11:07:31 +02:00
2013-03-19 13:13:28 -06:00
2013-08-12 10:06:41 -06:00
2013-08-12 10:06:41 -06:00
2013-08-12 10:06:41 -06:00
2013-04-04 22:42:39 +02:00
2013-05-20 20:14:19 +08:00
2013-05-31 11:35:34 -06:00
2013-04-04 22:42:39 +02:00
2013-04-04 22:42:39 +02:00
2013-07-10 17:40:13 +01:00
2013-07-10 17:40:13 +01:00
2013-05-02 16:56:55 +02:00
2013-07-10 17:40:13 +01:00
2013-07-10 11:07:31 +02:00
2013-05-14 15:00:22 +01:00
2013-07-31 19:27:19 +01:00
2013-08-09 08:57:01 -06:00
2013-05-02 16:56:55 +02:00
2013-07-18 14:05:46 +02:00
2013-05-02 16:56:55 +02:00
2013-04-08 10:03:20 +01:00
2013-05-02 16:56:55 +02:00
2013-05-10 13:09:30 -04:00
2013-07-10 11:07:33 +02:00
2013-07-10 17:40:13 +01:00
2013-08-09 11:54:41 +01:00
2013-08-09 11:54:41 +01:00
2013-08-09 11:54:41 +01:00
2013-08-09 11:54:41 +01:00
2013-05-10 13:09:30 -04:00
2013-04-03 08:49:30 +02:00
2013-07-10 11:07:31 +02:00
2013-07-10 17:40:13 +01:00
2013-05-31 10:51:33 -06:00
2013-08-08 16:33:55 -06:00
2013-07-31 19:24:53 +01:00
2013-05-02 16:56:55 +02:00
2013-05-21 23:41:45 +08:00
2013-05-10 11:54:29 +02:00
2013-07-10 11:07:31 +02:00
2013-07-10 11:07:31 +02:00
2013-07-10 11:07:31 +02:00
2013-05-10 11:54:29 +02:00