1/* 2 * This file and its contents are supplied under the terms of the 3 * Common Development and Distribution License ("CDDL"), version 1.0. 4 * You may only use this file in accordance with the terms of version 5 * 1.0 of the CDDL. 6 * 7 * A full copy of the text of the CDDL should have accompanied this 8 * source. A copy of the CDDL is also available via the Internet at 9 * http://www.illumos.org/license/CDDL. 10 */ 11 12/* 13 * Copyright 2017 Panzura. All rights reserved. 14 */ 15 16/* 17 * ASSERTION: 18 * Positive test for normalization() of stddev() 19 * 20 * SECTION: Aggregations/Normalization 21 * 22 */ 23 24#pragma D option quiet 25#pragma D option aggrate=1ms 26#pragma D option switchrate=50ms 27 28BEGIN 29{ 30 i = 0; 31} 32 33tick-100ms 34/i < 11/ 35{ 36 @ = stddev(i * 100); 37 i++; 38} 39 40tick-100ms 41/i == 11/ 42{ 43 printf("normalized data:\n"); 44 normalize(@, 10); 45 exit(0); 46} 47