Commit ae431e31 authored by Konrad Sztyber's avatar Konrad Sztyber Committed by Tomasz Zawadzki
Browse files

test/unit: move spdk_cunit.h to include/spdk_internal



It'll make it easier to include this file outside of unit tests.

Signed-off-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Change-Id: I171ddb8649f67b5786f08647560e2907603d0574
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19284


Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarAleksey Marchuk <alexeymar@nvidia.com>
parent 7adbcfb2
Loading
Loading
Loading
Loading
+0 −0

File moved.

+1 −1
Original line number Diff line number Diff line
@@ -242,7 +242,7 @@ function check_cunit_style() {

	echo -n "Checking for use of forbidden CUnit macros..."

	git grep --line-number -w 'CU_ASSERT_FATAL' -- 'test/*' ':!test/spdk_cunit.h' > badcunit.log || true
	git grep --line-number -w 'CU_ASSERT_FATAL' -- 'test/*' ':!include/spdk_internal/cunit.h' > badcunit.log || true
	if [ -s badcunit.log ]; then
		echo " Forbidden CU_ASSERT_FATAL usage detected - use SPDK_CU_ASSERT_FATAL instead"
		cat badcunit.log
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
 *   All rights reserved.
 */

#include "spdk_cunit.h"
#include "spdk_internal/cunit.h"
#include "spdk/thread.h"
#include "spdk_internal/mock.h"

+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@

#include "spdk/util.h"
#include "spdk/queue.h"
#include "spdk_cunit.h"
#include "spdk_internal/cunit.h"

#include <rte_config.h>
#include <rte_version.h>
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
#define UNIT_TEST_NO_VTOPHYS
#define UNIT_TEST_NO_PCI_ADDR
#include "common/lib/test_env.c"
#include "spdk_cunit.h"
#include "spdk_internal/cunit.h"

#include "spdk/bit_array.h"

Loading