[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v6 13/15] qht: add test-qht-par to invoke qht-be
From: |
Sergey Fedorov |
Subject: |
Re: [Qemu-devel] [PATCH v6 13/15] qht: add test-qht-par to invoke qht-bench from 'check' target |
Date: |
Sun, 29 May 2016 23:53:42 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 |
On 25/05/16 04:13, Emilio G. Cota wrote:
> diff --git a/tests/test-qht-par.c b/tests/test-qht-par.c
> new file mode 100644
> index 0000000..fc0cb23
> --- /dev/null
> +++ b/tests/test-qht-par.c
> @@ -0,0 +1,56 @@
(snip)
> +
> +#define TEST_QHT_STRING "tests/qht-bench 1>/dev/null 2>&1 -R -S0.1 -D10000
> -N1"
> +
> +static void test_qht(int n_threads, int update_rate, int duration)
> +{
> + char *str;
> + int rc;
> +
> + str = g_strdup_printf(TEST_QHT_STRING "-n %d -u %d -d %d",
There needs to be an extra space either at the beginning of the literal
string, or at the end of the string defined by TEST_QHT_STRING, so that
we don't get "... -N1-n ...".
> + n_threads, update_rate, duration);
> + rc = system(str);
> + g_free(str);
> + g_assert_cmpint(rc, ==, 0);
> +}
> +
>
Kind regards,
Sergey
- [Qemu-devel] [PATCH v6 07/15] tb hash: hash phys_pc, pc, and flags with xxhash, (continued)
- [Qemu-devel] [PATCH v6 07/15] tb hash: hash phys_pc, pc, and flags with xxhash, Emilio G. Cota, 2016/05/24
- [Qemu-devel] [PATCH v6 12/15] qht: add qht-bench, a performance benchmark, Emilio G. Cota, 2016/05/24
- [Qemu-devel] [PATCH v6 10/15] qht: QEMU's fast, resizable and scalable Hash Table, Emilio G. Cota, 2016/05/24
- [Qemu-devel] [PATCH v6 08/15] qdist: add module to represent frequency distributions of data, Emilio G. Cota, 2016/05/24
- [Qemu-devel] [PATCH v6 13/15] qht: add test-qht-par to invoke qht-bench from 'check' target, Emilio G. Cota, 2016/05/24
- Re: [Qemu-devel] [PATCH v6 13/15] qht: add test-qht-par to invoke qht-bench from 'check' target,
Sergey Fedorov <=