summaryrefslogtreecommitdiffhomepage
path: root/test/nxt_tests.h
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2017-11-21 18:55:28 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2017-11-21 18:55:28 +0300
commit78a77c3e38593a5dd1ba0970d036ed5f5100f88d (patch)
tree3011f02b551c623a926e85ed1532986b947da300 /test/nxt_tests.h
parent89a1c66dd0c396cda30a960e790817d28dc9a2de (diff)
downloadunit-78a77c3e38593a5dd1ba0970d036ed5f5100f88d.tar.gz
unit-78a77c3e38593a5dd1ba0970d036ed5f5100f88d.tar.bz2
Tests: move existing tests to "src" folder.
Diffstat (limited to 'test/nxt_tests.h')
-rw-r--r--test/nxt_tests.h69
1 files changed, 0 insertions, 69 deletions
diff --git a/test/nxt_tests.h b/test/nxt_tests.h
deleted file mode 100644
index be4168cf..00000000
--- a/test/nxt_tests.h
+++ /dev/null
@@ -1,69 +0,0 @@
-
-/*
- * Copyright (C) Igor Sysoev
- * Copyright (C) NGINX, Inc.
- */
-
-#ifndef _NXT_TESTS_H_INCLUDED_
-#define _NXT_TESTS_H_INCLUDED_
-
-
-typedef nxt_bool_t (*nxt_msec_less_t)(nxt_msec_t first, nxt_msec_t second);
-
-
-#define NXT_RBT_NODES 1500
-
-
-#if (__i386__ || __i386 || __amd64__ || __amd64)
-#if (NXT_GCC || NXT_CLANG)
-
-#define NXT_TEST_RTDTSC 1
-
-nxt_inline uint64_t
-nxt_rdtsc(void)
-{
- uint32_t eax, edx;
-
- __asm__ volatile ("rdtsc" : "=a" (eax), "=d" (edx));
-
- return ((uint64_t) edx << 32) | eax;
-}
-
-#endif
-#endif
-
-
-nxt_int_t nxt_term_parse_test(nxt_thread_t *thr);
-nxt_int_t nxt_msec_diff_test(nxt_thread_t *thr, nxt_msec_less_t);
-
-nxt_int_t nxt_rbtree_test(nxt_thread_t *thr, nxt_uint_t n);
-nxt_int_t nxt_rbtree1_test(nxt_thread_t *thr, nxt_uint_t n);
-
-#if (NXT_TEST_RTDTSC)
-
-nxt_int_t nxt_rbtree_mb_start(nxt_thread_t *thr);
-void nxt_rbtree_mb_insert(nxt_thread_t *thr);
-void nxt_rbtree_mb_delete(nxt_thread_t *thr);
-
-nxt_int_t nxt_rbtree1_mb_start(nxt_thread_t *thr);
-void nxt_rbtree1_mb_insert(nxt_thread_t *thr);
-void nxt_rbtree1_mb_delete(nxt_thread_t *thr);
-
-#endif
-
-nxt_int_t nxt_mp_test(nxt_thread_t *thr, nxt_uint_t runs, nxt_uint_t nblocks,
- size_t max_size);
-nxt_int_t nxt_mem_zone_test(nxt_thread_t *thr, nxt_uint_t runs,
- nxt_uint_t nblocks, size_t max_size);
-nxt_int_t nxt_lvlhsh_test(nxt_thread_t *thr, nxt_uint_t n,
- nxt_bool_t use_pool);
-
-nxt_int_t nxt_gmtime_test(nxt_thread_t *thr);
-nxt_int_t nxt_sprintf_test(nxt_thread_t *thr);
-nxt_int_t nxt_malloc_test(nxt_thread_t *thr);
-nxt_int_t nxt_utf8_test(nxt_thread_t *thr);
-nxt_int_t nxt_http_parse_test(nxt_thread_t *thr);
-nxt_int_t nxt_strverscmp_test(nxt_thread_t *thr);
-
-
-#endif /* _NXT_TESTS_H_INCLUDED_ */