test/env: move vtophys to subdirectory
This prepares for some additional env tests. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I577faad44fb9ae5c83785b406728224b16396f26
This commit is contained in:
parent
4db2eb4053
commit
076fb28427
@ -79,7 +79,7 @@ run_test test/lib/bdev/blockdev.sh
|
|||||||
run_test test/lib/event/event.sh
|
run_test test/lib/event/event.sh
|
||||||
run_test test/lib/nvme/nvme.sh
|
run_test test/lib/nvme/nvme.sh
|
||||||
run_test test/lib/nvmf/nvmf.sh
|
run_test test/lib/nvmf/nvmf.sh
|
||||||
run_test test/lib/env/vtophys.sh
|
run_test test/lib/env/env.sh
|
||||||
run_test test/lib/ioat/ioat.sh
|
run_test test/lib/ioat/ioat.sh
|
||||||
run_test test/lib/json/json.sh
|
run_test test/lib/json/json.sh
|
||||||
run_test test/lib/jsonrpc/jsonrpc.sh
|
run_test test/lib/jsonrpc/jsonrpc.sh
|
||||||
|
19
test/lib/env/Makefile
vendored
19
test/lib/env/Makefile
vendored
@ -34,20 +34,11 @@
|
|||||||
SPDK_ROOT_DIR := $(abspath $(CURDIR)/../../..)
|
SPDK_ROOT_DIR := $(abspath $(CURDIR)/../../..)
|
||||||
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
|
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
|
||||||
|
|
||||||
APP = vtophys
|
DIRS-y = vtophys
|
||||||
|
|
||||||
C_SRCS = vtophys.c
|
.PHONY: all clean $(DIRS-y)
|
||||||
|
|
||||||
CFLAGS += $(ENV_CFLAGS)
|
all: $(DIRS-y)
|
||||||
|
clean: $(DIRS-y)
|
||||||
|
|
||||||
LIBS += $(SPDK_LIBS) $(ENV_LINKER_ARGS)
|
include $(SPDK_ROOT_DIR)/mk/spdk.subdirs.mk
|
||||||
|
|
||||||
all: $(APP)
|
|
||||||
|
|
||||||
$(APP): $(OBJS) $(SPDK_LIBS) $(ENV_LIBS)
|
|
||||||
$(LINK_C)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(CLEAN_C) $(APP)
|
|
||||||
|
|
||||||
include $(SPDK_ROOT_DIR)/mk/spdk.deps.mk
|
|
||||||
|
@ -3,13 +3,13 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
testdir=$(readlink -f $(dirname $0))
|
testdir=$(readlink -f $(dirname $0))
|
||||||
rootdir="$testdir/../../.."
|
rootdir=$testdir/../../..
|
||||||
source $rootdir/scripts/autotest_common.sh
|
source $rootdir/scripts/autotest_common.sh
|
||||||
|
|
||||||
timing_enter env
|
timing_enter env
|
||||||
|
|
||||||
timing_enter vtophys
|
timing_enter vtophys
|
||||||
$testdir/vtophys
|
$testdir/vtophys/vtophys
|
||||||
timing_exit vtophys
|
timing_exit vtophys
|
||||||
|
|
||||||
timing_exit env
|
timing_exit env
|
53
test/lib/env/vtophys/Makefile
vendored
Normal file
53
test/lib/env/vtophys/Makefile
vendored
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
#
|
||||||
|
# BSD LICENSE
|
||||||
|
#
|
||||||
|
# Copyright (c) Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use in source and binary forms, with or without
|
||||||
|
# modification, are permitted provided that the following conditions
|
||||||
|
# are met:
|
||||||
|
#
|
||||||
|
# * Redistributions of source code must retain the above copyright
|
||||||
|
# notice, this list of conditions and the following disclaimer.
|
||||||
|
# * Redistributions in binary form must reproduce the above copyright
|
||||||
|
# notice, this list of conditions and the following disclaimer in
|
||||||
|
# the documentation and/or other materials provided with the
|
||||||
|
# distribution.
|
||||||
|
# * Neither the name of Intel Corporation nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived
|
||||||
|
# from this software without specific prior written permission.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
|
||||||
|
SPDK_ROOT_DIR := $(abspath $(CURDIR)/../../../..)
|
||||||
|
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
|
||||||
|
|
||||||
|
APP = vtophys
|
||||||
|
|
||||||
|
C_SRCS = vtophys.c
|
||||||
|
|
||||||
|
CFLAGS += $(ENV_CFLAGS)
|
||||||
|
|
||||||
|
LIBS += $(SPDK_LIBS) $(ENV_LINKER_ARGS)
|
||||||
|
|
||||||
|
all: $(APP)
|
||||||
|
|
||||||
|
$(APP): $(OBJS) $(SPDK_LIBS) $(ENV_LIBS)
|
||||||
|
$(LINK_C)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
$(CLEAN_C) $(APP)
|
||||||
|
|
||||||
|
include $(SPDK_ROOT_DIR)/mk/spdk.deps.mk
|
Loading…
Reference in New Issue
Block a user