From eb53c23236cccb6b698b7ca70ee783da1c574b5f Mon Sep 17 00:00:00 2001 From: paul luse Date: Wed, 2 Nov 2022 08:49:40 -0700 Subject: [PATCH] add (c) and SPDX header to bash files as needed per Intel policy to include file commit date using git cmd below. The policy does not apply to non-Intel (C) notices. git log --follow -C90% --format=%ad --date default | tail -1 and then pull just the year from the result. Intel copyrights were not added to files where Intel either had no contribution ot the contribution lacked substance (ie license header updates, formatting changes, etc) For intel copyrights added, --follow and -C95% were used. Signed-off-by: paul luse Change-Id: I2ef86976095b88a9bf5b1003e59f3943cd6bbe4c Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15209 Tested-by: SPDK CI Jenkins Community-CI: Mellanox Build Bot Reviewed-by: Ben Walker Reviewed-by: Krzysztof Karas Reviewed-by: Jim Harris --- autobuild.sh | 4 ++++ autopackage.sh | 4 ++++ autorun.sh | 4 ++++ autotest.sh | 4 ++++ configure | 4 ++++ docker/build_base/post-install | 5 +++++ docker/spdk-app/init | 4 ++++ docker/traffic-generator/init | 4 ++++ rpmbuild/rpm-deps.sh | 4 ++++ rpmbuild/rpm.sh | 4 ++++ scripts/ar-xnvme-fixer | 4 ++++ scripts/arm_cross_compile.sh | 3 +++ scripts/bpf/gen_enums.sh | 5 +++++ scripts/bpftrace.sh | 5 +++++ scripts/ceph/start.sh | 4 ++++ scripts/ceph/stop.sh | 5 ++++- scripts/check_format.sh | 5 ++++- scripts/common.sh | 5 +++++ scripts/core-collector.sh | 4 ++++ scripts/detect_cc.sh | 5 ++++- scripts/eofnl | 4 ++++ scripts/fio-wrapper | 4 ++++ scripts/gen_ftl.sh | 5 ++++- scripts/gen_nvme.sh | 5 ++++- scripts/get-pmr | 4 ++++ scripts/lspci | 3 +++ scripts/pc.sh | 4 ++++ scripts/pc_libs.sh | 5 +++++ scripts/pc_modules.sh | 4 ++++ scripts/perf/nvme/run_fio_test.sh | 5 ++++- scripts/perf/pm/collect-bmc-pm | 4 ++++ scripts/perf/vhost/run_vhost_test.sh | 4 ++++ scripts/pkgdep.sh | 4 ++++ scripts/pkgdep/arch.sh | 5 ++++- scripts/pkgdep/clear-linux-os.sh | 5 ++++- scripts/pkgdep/common.sh | 5 ++++- scripts/pkgdep/debian.sh | 4 ++++ scripts/pkgdep/freebsd.sh | 5 ++++- scripts/pkgdep/rhel.sh | 4 ++++ scripts/pkgdep/sles.sh | 5 ++++- scripts/prep_benchmarks.sh | 5 ++++- scripts/qat_setup.sh | 4 ++++ scripts/rxe_cfg_small.sh | 4 ++++ scripts/setup.sh | 5 ++++- scripts/spdx.sh | 4 ++++ scripts/sync_dev_uevents.sh | 4 ++++ scripts/vagrant/create_nvme_img.sh | 4 ++++ scripts/vagrant/create_vbox.sh | 5 ++++- scripts/vagrant/run-autorun.sh | 1 + scripts/vagrant/update.sh | 5 ++++- test/accel/accel.sh | 4 ++++ test/bdev/bdev_raid.sh | 5 ++++- test/bdev/bdevperf/test_config.sh | 4 ++++ test/bdev/blockdev.sh | 5 ++++- test/bdev/nbd_common.sh | 5 +++++ test/blobfs/blobfs.sh | 5 ++++- test/blobfs/rocksdb/rocksdb.sh | 5 ++++- test/blobstore/blob_io_wait/blob_io_wait.sh | 5 ++++- test/blobstore/blobstore.sh | 5 ++++- test/blobstore/blobstore_grow/blobstore_grow.sh | 3 +++ test/common/applications.sh | 5 +++++ test/common/autotest_common.sh | 5 ++++- test/common/config/vm_setup.sh | 5 ++++- test/compress/compress.sh | 5 ++++- test/dd/basic_rw.sh | 4 ++++ test/dd/bdev_to_bdev.sh | 4 ++++ test/dd/common.sh | 5 +++++ test/dd/dd.sh | 4 ++++ test/dd/malloc.sh | 5 +++++ test/dd/posix.sh | 4 ++++ test/dd/sparse.sh | 4 ++++ test/dd/uring.sh | 5 +++++ test/dpdk_memory_utility/test_dpdk_mem_info.sh | 5 ++++- test/env/env.sh | 5 ++++- test/event/event.sh | 5 ++++- test/event/scheduler/scheduler.sh | 4 ++++ test/external_code/nvme/identify.sh | 4 ++++ test/external_code/test_make.sh | 5 ++++- test/ftl/bdevperf.sh | 5 ++++- test/ftl/common.sh | 5 +++++ test/ftl/dirty_shutdown.sh | 5 ++++- test/ftl/fio.sh | 5 ++++- test/ftl/ftl.sh | 5 ++++- test/ftl/restore.sh | 5 ++++- test/ftl/trim.sh | 4 ++++ test/ftl/write_after_write.sh | 4 ++++ test/fuzz/autofuzz.sh | 5 ++++- test/fuzz/autofuzz_iscsi.sh | 5 ++++- test/fuzz/autofuzz_nvmf.sh | 5 ++++- test/fuzz/autofuzz_vhost.sh | 5 ++++- test/fuzz/llvm.sh | 4 ++++ test/fuzz/llvm/nvmf/run.sh | 5 ++++- test/fuzz/llvm/vfio/run.sh | 4 ++++ test/interrupt/reactor_set_interrupt.sh | 5 ++++- test/interrupt/reap_unregistered_poller.sh | 5 ++++- test/ioat/ioat.sh | 5 ++++- test/iscsi_tgt/bdev_io_wait/bdev_io_wait.sh | 5 ++++- test/iscsi_tgt/calsoft/calsoft.sh | 4 ++++ test/iscsi_tgt/common.sh | 5 +++++ test/iscsi_tgt/digests/digests.sh | 5 ++++- test/iscsi_tgt/ext4test/ext4test.sh | 5 ++++- test/iscsi_tgt/filesystem/filesystem.sh | 5 ++++- test/iscsi_tgt/fio/fio.sh | 5 ++++- test/iscsi_tgt/fuzz/fuzz.sh | 5 ++++- test/iscsi_tgt/initiator/initiator.sh | 5 ++++- test/iscsi_tgt/ip_migration/ip_migration.sh | 5 ++++- test/iscsi_tgt/iscsi_tgt.sh | 4 ++++ test/iscsi_tgt/login_redirection/login_redirection.sh | 4 ++++ test/iscsi_tgt/lvol/iscsi_lvol.sh | 5 ++++- test/iscsi_tgt/multiconnection/multiconnection.sh | 5 ++++- test/iscsi_tgt/nvme_remote/fio_remote_nvme.sh | 5 ++++- test/iscsi_tgt/perf/iscsi_initiator.sh | 4 ++++ test/iscsi_tgt/perf/iscsi_target.sh | 5 ++++- test/iscsi_tgt/pmem/iscsi_pmem.sh | 5 ++++- test/iscsi_tgt/qos/qos.sh | 5 ++++- test/iscsi_tgt/rbd/rbd.sh | 5 ++++- test/iscsi_tgt/reset/reset.sh | 5 ++++- test/iscsi_tgt/resize/resize.sh | 4 ++++ test/iscsi_tgt/rpc_config/rpc_config.sh | 5 ++++- test/iscsi_tgt/sock/sock.sh | 5 ++++- test/iscsi_tgt/trace_record/trace_record.sh | 5 ++++- test/json_config/alias_rpc/alias_rpc.sh | 5 ++++- test/json_config/json_config.sh | 5 ++++- test/json_config/json_config_extra_key.sh | 4 ++++ test/json_config/json_diff.sh | 5 ++++- test/lvol/basic.sh | 5 ++++- test/lvol/common.sh | 5 +++++ test/lvol/hotremove.sh | 5 ++++- test/lvol/lvol.sh | 5 ++++- test/lvol/rename.sh | 5 ++++- test/lvol/resize.sh | 5 ++++- test/lvol/snapshot_clone.sh | 5 ++++- test/lvol/tasting.sh | 5 ++++- test/lvol/thin_provisioning.sh | 5 ++++- test/make/check_so_deps.sh | 4 ++++ test/nvme/cmb/cmb.sh | 5 +++++ test/nvme/cmb/cmb_copy.sh | 5 +++++ test/nvme/compliance/compliance.sh | 5 ++++- test/nvme/cuse/nvme_cuse.sh | 5 ++++- test/nvme/cuse/nvme_cuse_rpc.sh | 5 ++++- test/nvme/cuse/nvme_ns_manage_cuse.sh | 5 ++++- test/nvme/cuse/spdk_nvme_cli_cuse.sh | 5 ++++- test/nvme/cuse/spdk_smartctl_cuse.sh | 5 ++++- test/nvme/hw_hotplug.sh | 4 ++++ test/nvme/nvme.sh | 5 ++++- test/nvme/nvme_bp.sh | 3 +++ test/nvme/nvme_opal.sh | 5 ++++- test/nvme/nvme_pmr.sh | 3 +++ test/nvme/nvme_rpc.sh | 5 ++++- test/nvme/nvme_rpc_timeouts.sh | 3 +++ test/nvme/nvme_scc.sh | 3 +++ test/nvme/perf/common.sh | 4 ++++ test/nvme/perf/run_perf.sh | 4 ++++ test/nvme/sw_hotplug.sh | 5 ++++- test/nvme/xnvme/xnvme.sh | 5 +++++ test/nvme/zns/zns.sh | 5 +++++ test/nvmf/common.sh | 5 +++++ test/nvmf/host/aer.sh | 5 ++++- test/nvmf/host/async_init.sh | 5 ++++- test/nvmf/host/bdevperf.sh | 5 ++++- test/nvmf/host/discovery.sh | 5 ++++- test/nvmf/host/dma.sh | 4 ++++ test/nvmf/host/failover.sh | 5 ++++- test/nvmf/host/fio.sh | 5 ++++- test/nvmf/host/identify.sh | 5 ++++- test/nvmf/host/identify_kernel_nvmf.sh | 5 ++++- test/nvmf/host/multicontroller.sh | 5 ++++- test/nvmf/host/multipath.sh | 5 ++++- test/nvmf/host/perf.sh | 5 ++++- test/nvmf/host/target_disconnect.sh | 5 ++++- test/nvmf/host/timeout.sh | 5 ++++- test/nvmf/nvmf.sh | 4 ++++ test/nvmf/target/abort.sh | 5 ++++- test/nvmf/target/abort_qd_sizes.sh | 4 ++++ test/nvmf/target/bdev_io_wait.sh | 5 ++++- test/nvmf/target/bdevio.sh | 5 ++++- test/nvmf/target/connect_disconnect.sh | 5 ++++- test/nvmf/target/connect_stress.sh | 4 ++++ test/nvmf/target/delete_subsystem.sh | 4 ++++ test/nvmf/target/dif.sh | 4 ++++ test/nvmf/target/discovery.sh | 5 ++++- test/nvmf/target/fabrics_fuzz.sh | 5 ++++- test/nvmf/target/filesystem.sh | 5 ++++- test/nvmf/target/fio.sh | 5 ++++- test/nvmf/target/fused_ordering.sh | 4 ++++ test/nvmf/target/host_management.sh | 5 ++++- test/nvmf/target/identify_passthru.sh | 5 ++++- test/nvmf/target/initiator_timeout.sh | 5 ++++- test/nvmf/target/invalid.sh | 5 ++++- test/nvmf/target/multiconnection.sh | 5 ++++- test/nvmf/target/multipath.sh | 5 ++++- test/nvmf/target/multitarget.sh | 4 ++++ test/nvmf/target/nmic.sh | 5 ++++- test/nvmf/target/ns_hotplug_stress.sh | 5 ++++- test/nvmf/target/nvme_cli.sh | 5 ++++- test/nvmf/target/nvmf_example.sh | 5 ++++- test/nvmf/target/nvmf_lvol.sh | 5 ++++- test/nvmf/target/nvmf_vfio_user.sh | 5 ++++- test/nvmf/target/nvmf_vhost.sh | 5 ++++- test/nvmf/target/perf_adq.sh | 5 ++++- test/nvmf/target/queue_depth.sh | 4 ++++ test/nvmf/target/rpc.sh | 5 ++++- test/nvmf/target/shutdown.sh | 5 ++++- test/nvmf/target/srq_overwhelm.sh | 5 ++++- test/nvmf/target/tls.sh | 3 +++ test/nvmf/target/vfio_user_fuzz.sh | 4 ++++ test/nvmf/target/zcopy.sh | 5 ++++- test/ocf/common.sh | 5 +++++ test/ocf/integrity/bdevperf-iotypes.sh | 5 ++++- test/ocf/integrity/fio-modes.sh | 5 ++++- test/ocf/integrity/stats.sh | 5 ++++- test/ocf/management/configuration-change.sh | 5 ++++- test/ocf/management/create-destruct.sh | 5 ++++- test/ocf/management/multicore.sh | 5 ++++- test/ocf/management/persistent-metadata.sh | 5 ++++- test/ocf/management/remove.sh | 5 ++++- test/ocf/ocf.sh | 5 ++++- test/openstack/install_devstack.sh | 5 ++++- test/openstack/run_openstack_tests.sh | 5 ++++- test/packaging/packaging.sh | 4 ++++ test/packaging/rpm/rpm.sh | 4 ++++ test/pmem/common.sh | 5 +++++ test/pmem/pmem.sh | 5 ++++- test/rpc/rpc.sh | 5 ++++- test/rpc_client/rpc_client.sh | 5 ++++- test/scheduler/common.sh | 5 +++++ test/scheduler/governor.sh | 5 ++++- test/scheduler/idle.sh | 4 ++++ test/scheduler/interrupt.sh | 5 ++++- test/scheduler/load_balancing.sh | 5 ++++- test/scheduler/scheduler.sh | 5 ++++- test/setup/acl.sh | 4 ++++ test/setup/common.sh | 5 +++++ test/setup/devices.sh | 4 ++++ test/setup/driver.sh | 5 +++++ test/setup/hugepages.sh | 4 ++++ test/setup/test-setup.sh | 4 ++++ test/sma/common.sh | 5 +++++ test/sma/crypto.sh | 4 ++++ test/sma/discovery.sh | 5 ++++- test/sma/nvmf_tcp.sh | 5 ++++- test/sma/plugins.sh | 5 ++++- test/sma/qos.sh | 4 ++++ test/sma/sma.sh | 5 ++++- test/sma/vfiouser_qemu.sh | 5 ++++- test/sma/vhost_blk.sh | 5 ++++- test/spdkcli/common.sh | 5 +++++ test/spdkcli/iscsi.sh | 5 ++++- test/spdkcli/nvmf.sh | 5 ++++- test/spdkcli/pmem.sh | 5 ++++- test/spdkcli/raid.sh | 5 ++++- test/spdkcli/rbd.sh | 5 ++++- test/spdkcli/tcp.sh | 5 ++++- test/spdkcli/vhost.sh | 5 ++++- test/spdkcli/virtio.sh | 5 ++++- test/thread/thread.sh | 3 +++ test/unit/unittest.sh | 3 +++ test/vfio_user/common.sh | 5 +++++ test/vfio_user/nvme/vfio_user_fio.sh | 5 ++++- test/vfio_user/nvme/vfio_user_restart_vm.sh | 4 ++++ test/vfio_user/vfio_user.sh | 4 ++++ test/vfio_user/virtio/fio_restart_vm.sh | 5 +++++ test/vhost/common.sh | 5 +++++ test/vhost/fio/fio.sh | 5 ++++- test/vhost/fiotest/fio.sh | 5 ++++- test/vhost/fuzz/fuzz.sh | 4 ++++ test/vhost/hotplug/blk_hotremove.sh | 5 +++++ test/vhost/hotplug/common.sh | 5 +++++ test/vhost/hotplug/scsi_hotattach.sh | 5 ++++- test/vhost/hotplug/scsi_hotdetach.sh | 5 ++++- test/vhost/hotplug/scsi_hotplug.sh | 5 ++++- test/vhost/hotplug/scsi_hotremove.sh | 5 +++++ test/vhost/initiator/blockdev.sh | 5 ++++- test/vhost/integrity/integrity_start.sh | 5 ++++- test/vhost/integrity/integrity_vm.sh | 4 ++++ test/vhost/lvol/lvol_test.sh | 5 ++++- test/vhost/manual.sh | 5 ++++- test/vhost/migration/migration-tc1.sh | 5 +++++ test/vhost/migration/migration-tc2.sh | 5 +++++ test/vhost/migration/migration.sh | 5 ++++- test/vhost/other/negative.sh | 5 ++++- test/vhost/perf_bench/vhost_perf.sh | 5 ++++- test/vhost/readonly/delete_partition_vm.sh | 5 ++++- test/vhost/readonly/disabled_readonly_vm.sh | 5 ++++- test/vhost/readonly/enabled_readonly_vm.sh | 5 ++++- test/vhost/readonly/readonly.sh | 5 ++++- test/vhost/shared/shared.sh | 5 ++++- test/vhost/vhost.sh | 4 ++++ test/vhost/vhost_boot/vhost_boot.sh | 4 ++++ test/vhost/windows/windows_scsi_compliance.sh | 5 ++++- test/vmd/vmd.sh | 5 ++++- 291 files changed, 1184 insertions(+), 172 deletions(-) diff --git a/autobuild.sh b/autobuild.sh index 690600584..c13f7a16f 100755 --- a/autobuild.sh +++ b/autobuild.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2015 Intel Corporation +# All rights reserved. +# set -e diff --git a/autopackage.sh b/autopackage.sh index e63be9c05..5caf865b8 100755 --- a/autopackage.sh +++ b/autopackage.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2015 Intel Corporation +# All rights reserved. +# set -e diff --git a/autorun.sh b/autorun.sh index 51d803190..231964aa2 100755 --- a/autorun.sh +++ b/autorun.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2016 Intel Corporation +# All rights reserved. +# set -e diff --git a/autotest.sh b/autotest.sh index fdf3a514e..cd0634261 100755 --- a/autotest.sh +++ b/autotest.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2015 Intel Corporation +# All rights reserved. +# rootdir=$(readlink -f $(dirname $0)) diff --git a/configure b/configure index 082b2fc10..547df894a 100755 --- a/configure +++ b/configure @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# set -e diff --git a/docker/build_base/post-install b/docker/build_base/post-install index 6b843bacc..2fa313716 100755 --- a/docker/build_base/post-install +++ b/docker/build_base/post-install @@ -1,4 +1,9 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# + set -e dnf install -y /tmp/*.rpm diff --git a/docker/spdk-app/init b/docker/spdk-app/init index a9d933fa9..4651dc347 100755 --- a/docker/spdk-app/init +++ b/docker/spdk-app/init @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# app=spdk_tgt args=() limit_args=() diff --git a/docker/traffic-generator/init b/docker/traffic-generator/init index eb8850598..a47f0ad89 100755 --- a/docker/traffic-generator/init +++ b/docker/traffic-generator/init @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# args=() diff --git a/rpmbuild/rpm-deps.sh b/rpmbuild/rpm-deps.sh index 740e95957..de7db953a 100755 --- a/rpmbuild/rpm-deps.sh +++ b/rpmbuild/rpm-deps.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# # This script simply iterates over all libs SPDK binaries link # to and returns a list of .rpm packages SPDK may depend on. At # the end, the list strictly relates to how the SPDK build was diff --git a/rpmbuild/rpm.sh b/rpmbuild/rpm.sh index 8e2e3f48c..667422c77 100755 --- a/rpmbuild/rpm.sh +++ b/rpmbuild/rpm.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# set -e diff --git a/scripts/ar-xnvme-fixer b/scripts/ar-xnvme-fixer index 462e3d06d..f2ad2a509 100755 --- a/scripts/ar-xnvme-fixer +++ b/scripts/ar-xnvme-fixer @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation +# All rights reserved. + # The xnvme build executes library_bundler.py which wraps itself around ar # to create libxnvme.a. It builds a set of MRI commands which then is # passed to ar via stdin. The set of members is declared via ADDLIB diff --git a/scripts/arm_cross_compile.sh b/scripts/arm_cross_compile.sh index c3fc54d46..3760e2c14 100755 --- a/scripts/arm_cross_compile.sh +++ b/scripts/arm_cross_compile.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# All rights reserved. +# # exit on errors set -e diff --git a/scripts/bpf/gen_enums.sh b/scripts/bpf/gen_enums.sh index aef763ff0..a4826d810 100755 --- a/scripts/bpf/gen_enums.sh +++ b/scripts/bpf/gen_enums.sh @@ -1,4 +1,9 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# + set -e rootdir=$(git rev-parse --show-toplevel) diff --git a/scripts/bpftrace.sh b/scripts/bpftrace.sh index 12050d0e7..123bc0e3e 100755 --- a/scripts/bpftrace.sh +++ b/scripts/bpftrace.sh @@ -1,4 +1,9 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# + set -e if [ $# -lt 2 ]; then diff --git a/scripts/ceph/start.sh b/scripts/ceph/start.sh index 448e78503..0a5903d37 100755 --- a/scripts/ceph/start.sh +++ b/scripts/ceph/start.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# # create mon set -x diff --git a/scripts/ceph/stop.sh b/scripts/ceph/stop.sh index 40bcf8a7e..060d28f00 100755 --- a/scripts/ceph/stop.sh +++ b/scripts/ceph/stop.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# set -x base_dir=/var/tmp/ceph diff --git a/scripts/check_format.sh b/scripts/check_format.sh index 137d9ef36..d9dbc81a0 100755 --- a/scripts/check_format.sh +++ b/scripts/check_format.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2015 Intel Corporation +# All rights reserved. +# if [[ $(uname -s) == Darwin ]]; then # SPDK is not supported on MacOS, but as a developer # convenience we support running the check_format.sh diff --git a/scripts/common.sh b/scripts/common.sh index e1328a669..23ab34ba6 100644 --- a/scripts/common.sh +++ b/scripts/common.sh @@ -1,3 +1,8 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# + # Common shell utility functions # Check if PCI device is in PCI_ALLOWED and not in PCI_BLOCKED diff --git a/scripts/core-collector.sh b/scripts/core-collector.sh index b7355df52..27cd4cdba 100755 --- a/scripts/core-collector.sh +++ b/scripts/core-collector.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# # We don't want to tell kernel to include %e or %E since these # can include whitespaces or other funny characters, and working # with those on the cmdline would be a nightmare. Use procfs for diff --git a/scripts/detect_cc.sh b/scripts/detect_cc.sh index a05ff9adf..6e2c0d1c8 100755 --- a/scripts/detect_cc.sh +++ b/scripts/detect_cc.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2016 Intel Corporation +# All rights reserved. +# set -e function err() { diff --git a/scripts/eofnl b/scripts/eofnl index 59544561d..d83e7b522 100755 --- a/scripts/eofnl +++ b/scripts/eofnl @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2016 Intel Corporation +# All rights reserved. + # Make sure file has a trailing newline f="$1" diff --git a/scripts/fio-wrapper b/scripts/fio-wrapper index 3a89f025d..bac678d90 100755 --- a/scripts/fio-wrapper +++ b/scripts/fio-wrapper @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. + rootdir=$(readlink -f "$(dirname "$0")/../") shopt -s nullglob extglob diff --git a/scripts/gen_ftl.sh b/scripts/gen_ftl.sh index acde64962..96d164245 100755 --- a/scripts/gen_ftl.sh +++ b/scripts/gen_ftl.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# set -e rootdir=$(readlink -f $(dirname $0))/.. diff --git a/scripts/gen_nvme.sh b/scripts/gen_nvme.sh index 59ae841f2..d373bb81b 100755 --- a/scripts/gen_nvme.sh +++ b/scripts/gen_nvme.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# set -e rootdir=$(readlink -f $(dirname $0))/.. diff --git a/scripts/get-pmr b/scripts/get-pmr index a4c2e8cec..f0ecb1234 100755 --- a/scripts/get-pmr +++ b/scripts/get-pmr @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. + # We simply check if BAR2 is present as that's where PMR or CMB is # meant to be located under qemu. If found, print some stats then exit. shopt -s nullglob diff --git a/scripts/lspci b/scripts/lspci index a2ed25d5e..2cd8b43f2 100755 --- a/scripts/lspci +++ b/scripts/lspci @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. set -e diff --git a/scripts/pc.sh b/scripts/pc.sh index 306a44a61..36cadc683 100755 --- a/scripts/pc.sh +++ b/scripts/pc.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# cat << EOF Description: SPDK $3 library Name: spdk_$3 diff --git a/scripts/pc_libs.sh b/scripts/pc_libs.sh index 6a0cfb117..666ae1e07 100755 --- a/scripts/pc_libs.sh +++ b/scripts/pc_libs.sh @@ -1,4 +1,9 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# + cat << EOF Description: $3 libraries used by SPDK Name: $4 diff --git a/scripts/pc_modules.sh b/scripts/pc_modules.sh index 295ba0fab..1ea1410a7 100755 --- a/scripts/pc_modules.sh +++ b/scripts/pc_modules.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# cat << EOF Description: SPDK $1 modules Name: spdk_$1_modules diff --git a/scripts/perf/nvme/run_fio_test.sh b/scripts/perf/nvme/run_fio_test.sh index bc888d0f4..7ccd20dac 100755 --- a/scripts/perf/nvme/run_fio_test.sh +++ b/scripts/perf/nvme/run_fio_test.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) diff --git a/scripts/perf/pm/collect-bmc-pm b/scripts/perf/pm/collect-bmc-pm index 7fee16e1d..23321ed5e 100755 --- a/scripts/perf/pm/collect-bmc-pm +++ b/scripts/perf/pm/collect-bmc-pm @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation +# All rights reserved. + set -e hex() { printf '0x%02x\n' "$@"; } diff --git a/scripts/perf/vhost/run_vhost_test.sh b/scripts/perf/vhost/run_vhost_test.sh index 5386497da..1483c7a0e 100755 --- a/scripts/perf/vhost/run_vhost_test.sh +++ b/scripts/perf/vhost/run_vhost_test.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation +# All rights reserved. +# curdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$curdir/../../../") diff --git a/scripts/pkgdep.sh b/scripts/pkgdep.sh index 5246b54d4..583cd8469 100755 --- a/scripts/pkgdep.sh +++ b/scripts/pkgdep.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# # Please run this script as root. set -e diff --git a/scripts/pkgdep/arch.sh b/scripts/pkgdep/arch.sh index 6cc404199..9475215cd 100755 --- a/scripts/pkgdep/arch.sh +++ b/scripts/pkgdep/arch.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# # Install main dependencies pacman -Sy --needed --noconfirm gcc make cunit libaio openssl \ libutil-linux libiscsi python ncurses json-c cmocka ninja meson diff --git a/scripts/pkgdep/clear-linux-os.sh b/scripts/pkgdep/clear-linux-os.sh index 113d02a86..a815802b7 100755 --- a/scripts/pkgdep/clear-linux-os.sh +++ b/scripts/pkgdep/clear-linux-os.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# # Install main dependencies swupd bundle-add -y c-basic make dev-utils openssl devpkg-libiscsi \ devpkg-ncurses python3-basic python-extras devpkg-open-iscsi devpkg-json-c \ diff --git a/scripts/pkgdep/common.sh b/scripts/pkgdep/common.sh index f42bbc824..a2c197f7e 100755 --- a/scripts/pkgdep/common.sh +++ b/scripts/pkgdep/common.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# install_liburing() { local GIT_REPO_LIBURING=https://github.com/axboe/liburing.git local liburing_dir=/usr/local/src/liburing diff --git a/scripts/pkgdep/debian.sh b/scripts/pkgdep/debian.sh index 6461b5e4f..f6423a1e3 100755 --- a/scripts/pkgdep/debian.sh +++ b/scripts/pkgdep/debian.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# VERSION_ID_NUM=$(sed 's/\.//g' <<< $VERSION_ID) # Includes Ubuntu, Debian diff --git a/scripts/pkgdep/freebsd.sh b/scripts/pkgdep/freebsd.sh index d4f6b63d6..902f5d0e1 100755 --- a/scripts/pkgdep/freebsd.sh +++ b/scripts/pkgdep/freebsd.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# # Minimal install pkg install -y gmake cunit openssl git bash misc/e2fsprogs-libuuid python \ ncurses ninja meson diff --git a/scripts/pkgdep/rhel.sh b/scripts/pkgdep/rhel.sh index d17b043b6..d49fa05ca 100755 --- a/scripts/pkgdep/rhel.sh +++ b/scripts/pkgdep/rhel.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# disclaimer() { case "$ID" in diff --git a/scripts/pkgdep/sles.sh b/scripts/pkgdep/sles.sh index ecf6a081e..520b53b93 100755 --- a/scripts/pkgdep/sles.sh +++ b/scripts/pkgdep/sles.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# # Minimal install zypper install -y gcc gcc-c++ make cunit-devel libaio-devel libopenssl-devel \ libuuid-devel python-base ncurses-devel libjson-c-devel libcmocka-devel \ diff --git a/scripts/prep_benchmarks.sh b/scripts/prep_benchmarks.sh index 01d8c47da..8dbdd0e8b 100755 --- a/scripts/prep_benchmarks.sh +++ b/scripts/prep_benchmarks.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# function configure_performance() { echo -n "Placing all CPUs in performance mode..." for governor in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do diff --git a/scripts/qat_setup.sh b/scripts/qat_setup.sh index 0b5ae4bc0..b8b17d890 100755 --- a/scripts/qat_setup.sh +++ b/scripts/qat_setup.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# shopt -s nullglob rootdir=$(readlink -f $(dirname $0))/.. diff --git a/scripts/rxe_cfg_small.sh b/scripts/rxe_cfg_small.sh index 82c4e6b18..8d4d9f8a3 100755 --- a/scripts/rxe_cfg_small.sh +++ b/scripts/rxe_cfg_small.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# [[ $(uname -s) == Linux ]] || exit 0 shopt -s extglob nullglob diff --git a/scripts/setup.sh b/scripts/setup.sh index a1b20a048..b0d948582 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2016 Intel Corporation +# All rights reserved. +# set -e shopt -s nullglob extglob diff --git a/scripts/spdx.sh b/scripts/spdx.sh index b2248bed2..2e5534424 100755 --- a/scripts/spdx.sh +++ b/scripts/spdx.sh @@ -1,4 +1,8 @@ #!/bin/bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation +# All rights reserved. +# ( cat << 'END' diff --git a/scripts/sync_dev_uevents.sh b/scripts/sync_dev_uevents.sh index 30a17c1c9..64c1411d3 100755 --- a/scripts/sync_dev_uevents.sh +++ b/scripts/sync_dev_uevents.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# shopt -s extglob exec {err}>&2 diff --git a/scripts/vagrant/create_nvme_img.sh b/scripts/vagrant/create_nvme_img.sh index 6885cc2a8..7452b0af6 100755 --- a/scripts/vagrant/create_nvme_img.sh +++ b/scripts/vagrant/create_nvme_img.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# SYSTEM=$(uname -s) size="1024M" nvme_disk="/var/lib/libvirt/images/nvme_disk.img" diff --git a/scripts/vagrant/create_vbox.sh b/scripts/vagrant/create_vbox.sh index 62a6cfd7d..415dda168 100755 --- a/scripts/vagrant/create_vbox.sh +++ b/scripts/vagrant/create_vbox.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# # create_vbox.sh # # Creates a virtual box with vagrant in the $PWD. diff --git a/scripts/vagrant/run-autorun.sh b/scripts/vagrant/run-autorun.sh index 5fa112c85..ee62b0fe6 100755 --- a/scripts/vagrant/run-autorun.sh +++ b/scripts/vagrant/run-autorun.sh @@ -1,5 +1,6 @@ #!/bin/bash # SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation. # Copyright (c) 2018 by NetApp, Inc. # All Rights Reserved. diff --git a/scripts/vagrant/update.sh b/scripts/vagrant/update.sh index 87bb21c9d..30881649c 100755 --- a/scripts/vagrant/update.sh +++ b/scripts/vagrant/update.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# if [ ! "$USER" = "root" ]; then echo echo Error: must be run as root! diff --git a/test/accel/accel.sh b/test/accel/accel.sh index ebfb89f2d..7886de457 100755 --- a/test/accel/accel.sh +++ b/test/accel/accel.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) diff --git a/test/bdev/bdev_raid.sh b/test/bdev/bdev_raid.sh index d7427cb24..70723cca4 100755 --- a/test/bdev/bdev_raid.sh +++ b/test/bdev/bdev_raid.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) rpc_server=/var/tmp/spdk-raid.sock diff --git a/test/bdev/bdevperf/test_config.sh b/test/bdev/bdevperf/test_config.sh index 911d4e27d..82a9fddb5 100755 --- a/test/bdev/bdevperf/test_config.sh +++ b/test/bdev/bdevperf/test_config.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) diff --git a/test/bdev/blockdev.sh b/test/bdev/blockdev.sh index 0e98ae338..33d45ea30 100755 --- a/test/bdev/blockdev.sh +++ b/test/bdev/blockdev.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2016 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/bdev/nbd_common.sh b/test/bdev/nbd_common.sh index fa3383f80..904de15b3 100644 --- a/test/bdev/nbd_common.sh +++ b/test/bdev/nbd_common.sh @@ -1,3 +1,8 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# + set -e function nbd_start_disks() { diff --git a/test/blobfs/blobfs.sh b/test/blobfs/blobfs.sh index 46975b01b..c9d75f53e 100755 --- a/test/blobfs/blobfs.sh +++ b/test/blobfs/blobfs.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# SYSTEM=$(uname -s) if [ $SYSTEM = "FreeBSD" ]; then echo "blobfs.sh cannot run on FreeBSD currently." diff --git a/test/blobfs/rocksdb/rocksdb.sh b/test/blobfs/rocksdb/rocksdb.sh index 87f47dae8..034bcc9d9 100755 --- a/test/blobfs/rocksdb/rocksdb.sh +++ b/test/blobfs/rocksdb/rocksdb.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/blobstore/blob_io_wait/blob_io_wait.sh b/test/blobstore/blob_io_wait/blob_io_wait.sh index f83c4237e..b5d88c938 100755 --- a/test/blobstore/blob_io_wait/blob_io_wait.sh +++ b/test/blobstore/blob_io_wait/blob_io_wait.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# SYSTEM=$(uname -s) if [ $SYSTEM = "FreeBSD" ]; then echo "blob_io_wait.sh cannot run on FreeBSD currently." diff --git a/test/blobstore/blobstore.sh b/test/blobstore/blobstore.sh index fce187c5b..dfcee56bb 100755 --- a/test/blobstore/blobstore.sh +++ b/test/blobstore/blobstore.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# SYSTEM=$(uname -s) if [ $SYSTEM = "FreeBSD" ]; then echo "blobstore.sh cannot run on FreeBSD currently." diff --git a/test/blobstore/blobstore_grow/blobstore_grow.sh b/test/blobstore/blobstore_grow/blobstore_grow.sh index c36751eec..d6af700ce 100755 --- a/test/blobstore/blobstore_grow/blobstore_grow.sh +++ b/test/blobstore/blobstore_grow/blobstore_grow.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# All rights reserved. +# SYSTEM=$(uname -s) if [ $SYSTEM = "FreeBSD" ]; then diff --git a/test/common/applications.sh b/test/common/applications.sh index 4d5a52c44..25d5ff801 100644 --- a/test/common/applications.sh +++ b/test/common/applications.sh @@ -1,3 +1,8 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# + # Default set of apps used in functional testing _root=$(readlink -f "$(dirname "${BASH_SOURCE[0]}")") diff --git a/test/common/autotest_common.sh b/test/common/autotest_common.sh index 3a38757a6..f4440e01c 100755 --- a/test/common/autotest_common.sh +++ b/test/common/autotest_common.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2015 Intel Corporation +# All rights reserved. +# rpc_py=rpc_cmd function xtrace_fd() { diff --git a/test/common/config/vm_setup.sh b/test/common/config/vm_setup.sh index 43a4795d4..bf3f5d115 100755 --- a/test/common/config/vm_setup.sh +++ b/test/common/config/vm_setup.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# # Virtual Machine environment requirements: # 8 GiB of RAM (for DPDK) # enable intel_kvm on your host machine diff --git a/test/compress/compress.sh b/test/compress/compress.sh index 2a1c81454..26c52868f 100755 --- a/test/compress/compress.sh +++ b/test/compress/compress.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# set -e testdir=$(readlink -f $(dirname $0)) diff --git a/test/dd/basic_rw.sh b/test/dd/basic_rw.sh index 14edbfb47..d6c20c35d 100755 --- a/test/dd/basic_rw.sh +++ b/test/dd/basic_rw.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../../") source "$testdir/common.sh" diff --git a/test/dd/bdev_to_bdev.sh b/test/dd/bdev_to_bdev.sh index ad84915e5..989e824c6 100755 --- a/test/dd/bdev_to_bdev.sh +++ b/test/dd/bdev_to_bdev.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../../") source "$testdir/common.sh" diff --git a/test/dd/common.sh b/test/dd/common.sh index 738aacb25..fb97f9406 100644 --- a/test/dd/common.sh +++ b/test/dd/common.sh @@ -1,3 +1,8 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# + source "$rootdir/test/common/autotest_common.sh" source "$rootdir/scripts/common.sh" diff --git a/test/dd/dd.sh b/test/dd/dd.sh index cd10b3049..5144d5d9b 100755 --- a/test/dd/dd.sh +++ b/test/dd/dd.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../../") source "$testdir/common.sh" diff --git a/test/dd/malloc.sh b/test/dd/malloc.sh index 754210778..1b28af11e 100755 --- a/test/dd/malloc.sh +++ b/test/dd/malloc.sh @@ -1,4 +1,9 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# + testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../../") source "$testdir/common.sh" diff --git a/test/dd/posix.sh b/test/dd/posix.sh index d561df4a6..8fc602582 100755 --- a/test/dd/posix.sh +++ b/test/dd/posix.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../../") source "$testdir/common.sh" diff --git a/test/dd/sparse.sh b/test/dd/sparse.sh index fe9632cc1..76296d94d 100755 --- a/test/dd/sparse.sh +++ b/test/dd/sparse.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# All rights reserved. +# + testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../../") source "$testdir/common.sh" diff --git a/test/dd/uring.sh b/test/dd/uring.sh index 4d2b78bce..c15855cee 100755 --- a/test/dd/uring.sh +++ b/test/dd/uring.sh @@ -1,4 +1,9 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# + testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../../") source "$testdir/common.sh" diff --git a/test/dpdk_memory_utility/test_dpdk_mem_info.sh b/test/dpdk_memory_utility/test_dpdk_mem_info.sh index f581ddb4a..4dec6eb00 100755 --- a/test/dpdk_memory_utility/test_dpdk_mem_info.sh +++ b/test/dpdk_memory_utility/test_dpdk_mem_info.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/env/env.sh b/test/env/env.sh index 696c14b08..a6473d25c 100755 --- a/test/env/env.sh +++ b/test/env/env.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/event/event.sh b/test/event/event.sh index 1d90fc5dd..56cd35812 100755 --- a/test/event/event.sh +++ b/test/event/event.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/event/scheduler/scheduler.sh b/test/event/scheduler/scheduler.sh index 4a105aabb..c2d3045dd 100755 --- a/test/event/scheduler/scheduler.sh +++ b/test/event/scheduler/scheduler.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) diff --git a/test/external_code/nvme/identify.sh b/test/external_code/nvme/identify.sh index 3476bcdd0..457f4f609 100755 --- a/test/external_code/nvme/identify.sh +++ b/test/external_code/nvme/identify.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$testdir/../../.. diff --git a/test/external_code/test_make.sh b/test/external_code/test_make.sh index 56bc29ec6..3e2150bca 100755 --- a/test/external_code/test_make.sh +++ b/test/external_code/test_make.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# test_root=$(readlink -f $(dirname $0)) rootdir="$test_root/../.." diff --git a/test/ftl/bdevperf.sh b/test/ftl/bdevperf.sh index 4e7b9426c..e93df3401 100755 --- a/test/ftl/bdevperf.sh +++ b/test/ftl/bdevperf.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/ftl/common.sh b/test/ftl/common.sh index 5b68c3c58..c346f19c7 100644 --- a/test/ftl/common.sh +++ b/test/ftl/common.sh @@ -1,3 +1,8 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# + # Common utility functions to be sourced by the libftl test scripts function clear_lvols() { diff --git a/test/ftl/dirty_shutdown.sh b/test/ftl/dirty_shutdown.sh index 8598bdf95..b88ba762a 100755 --- a/test/ftl/dirty_shutdown.sh +++ b/test/ftl/dirty_shutdown.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/ftl/fio.sh b/test/ftl/fio.sh index e525aee86..fd72f59ce 100755 --- a/test/ftl/fio.sh +++ b/test/ftl/fio.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/ftl/ftl.sh b/test/ftl/ftl.sh index 6108d486f..5ec29fc15 100755 --- a/test/ftl/ftl.sh +++ b/test/ftl/ftl.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/ftl/restore.sh b/test/ftl/restore.sh index 13302f7b4..be19c3bf8 100755 --- a/test/ftl/restore.sh +++ b/test/ftl/restore.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/ftl/trim.sh b/test/ftl/trim.sh index 9925e8b2a..9f5bc4bb5 100755 --- a/test/ftl/trim.sh +++ b/test/ftl/trim.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) diff --git a/test/ftl/write_after_write.sh b/test/ftl/write_after_write.sh index d538ea56b..786301a13 100755 --- a/test/ftl/write_after_write.sh +++ b/test/ftl/write_after_write.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) diff --git a/test/fuzz/autofuzz.sh b/test/fuzz/autofuzz.sh index 5c2099322..85626b7e9 100755 --- a/test/fuzz/autofuzz.sh +++ b/test/fuzz/autofuzz.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) diff --git a/test/fuzz/autofuzz_iscsi.sh b/test/fuzz/autofuzz_iscsi.sh index 645f1db5d..7890ba1fd 100755 --- a/test/fuzz/autofuzz_iscsi.sh +++ b/test/fuzz/autofuzz_iscsi.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/fuzz/autofuzz_nvmf.sh b/test/fuzz/autofuzz_nvmf.sh index 948712e6b..bed6b6a5f 100755 --- a/test/fuzz/autofuzz_nvmf.sh +++ b/test/fuzz/autofuzz_nvmf.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/fuzz/autofuzz_vhost.sh b/test/fuzz/autofuzz_vhost.sh index ec7bd89bd..367188a59 100755 --- a/test/fuzz/autofuzz_vhost.sh +++ b/test/fuzz/autofuzz_vhost.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# rootdir=$(readlink -f $(dirname $0))/../.. source $rootdir/test/common/autotest_common.sh source "$rootdir/scripts/common.sh" diff --git a/test/fuzz/llvm.sh b/test/fuzz/llvm.sh index d52ce287e..4095ee051 100755 --- a/test/fuzz/llvm.sh +++ b/test/fuzz/llvm.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../../") diff --git a/test/fuzz/llvm/nvmf/run.sh b/test/fuzz/llvm/nvmf/run.sh index 421a7c063..623472a45 100755 --- a/test/fuzz/llvm/nvmf/run.sh +++ b/test/fuzz/llvm/nvmf/run.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# if [[ $SPDK_TEST_FUZZER_SHORT -eq 0 ]]; then TIME=60000 else diff --git a/test/fuzz/llvm/vfio/run.sh b/test/fuzz/llvm/vfio/run.sh index 8241d32a4..e7fdf7dd1 100755 --- a/test/fuzz/llvm/vfio/run.sh +++ b/test/fuzz/llvm/vfio/run.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation +# All rights reserved. +# if [[ $SPDK_TEST_FUZZER_SHORT -eq 0 ]]; then TIME=60000 else diff --git a/test/interrupt/reactor_set_interrupt.sh b/test/interrupt/reactor_set_interrupt.sh index c3b8a4512..5ab459c09 100755 --- a/test/interrupt/reactor_set_interrupt.sh +++ b/test/interrupt/reactor_set_interrupt.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/interrupt/reap_unregistered_poller.sh b/test/interrupt/reap_unregistered_poller.sh index a2989026a..4046609d4 100755 --- a/test/interrupt/reap_unregistered_poller.sh +++ b/test/interrupt/reap_unregistered_poller.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/ioat/ioat.sh b/test/ioat/ioat.sh index 705aedcef..42fcebc78 100755 --- a/test/ioat/ioat.sh +++ b/test/ioat/ioat.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2015 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/iscsi_tgt/bdev_io_wait/bdev_io_wait.sh b/test/iscsi_tgt/bdev_io_wait/bdev_io_wait.sh index ac54010de..49343e7a6 100755 --- a/test/iscsi_tgt/bdev_io_wait/bdev_io_wait.sh +++ b/test/iscsi_tgt/bdev_io_wait/bdev_io_wait.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/iscsi_tgt/calsoft/calsoft.sh b/test/iscsi_tgt/calsoft/calsoft.sh index 048b529d5..5e48e56c4 100755 --- a/test/iscsi_tgt/calsoft/calsoft.sh +++ b/test/iscsi_tgt/calsoft/calsoft.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2016 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/iscsi_tgt/common.sh b/test/iscsi_tgt/common.sh index ad9cc5cae..0dda4700a 100644 --- a/test/iscsi_tgt/common.sh +++ b/test/iscsi_tgt/common.sh @@ -1,3 +1,8 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# + # Network configuration # There is one initiator interface and it is accessed directly. # There are two target interfaces and they are accessed through an namespace. diff --git a/test/iscsi_tgt/digests/digests.sh b/test/iscsi_tgt/digests/digests.sh index 3769e3fc0..06a1cc0f0 100755 --- a/test/iscsi_tgt/digests/digests.sh +++ b/test/iscsi_tgt/digests/digests.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/iscsi_tgt/ext4test/ext4test.sh b/test/iscsi_tgt/ext4test/ext4test.sh index 6c3847409..57af30b25 100755 --- a/test/iscsi_tgt/ext4test/ext4test.sh +++ b/test/iscsi_tgt/ext4test/ext4test.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2016 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/iscsi_tgt/filesystem/filesystem.sh b/test/iscsi_tgt/filesystem/filesystem.sh index 7bc32c704..241ab43b7 100755 --- a/test/iscsi_tgt/filesystem/filesystem.sh +++ b/test/iscsi_tgt/filesystem/filesystem.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2016 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/iscsi_tgt/fio/fio.sh b/test/iscsi_tgt/fio/fio.sh index bbd8a4184..2fb95f16d 100755 --- a/test/iscsi_tgt/fio/fio.sh +++ b/test/iscsi_tgt/fio/fio.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2016 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/iscsi_tgt/fuzz/fuzz.sh b/test/iscsi_tgt/fuzz/fuzz.sh index 609f4ce7e..c7313a417 100755 --- a/test/iscsi_tgt/fuzz/fuzz.sh +++ b/test/iscsi_tgt/fuzz/fuzz.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/iscsi_tgt/initiator/initiator.sh b/test/iscsi_tgt/initiator/initiator.sh index 2a3c4fc86..634411638 100755 --- a/test/iscsi_tgt/initiator/initiator.sh +++ b/test/iscsi_tgt/initiator/initiator.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/iscsi_tgt/ip_migration/ip_migration.sh b/test/iscsi_tgt/ip_migration/ip_migration.sh index 649b62605..8500f5c38 100755 --- a/test/iscsi_tgt/ip_migration/ip_migration.sh +++ b/test/iscsi_tgt/ip_migration/ip_migration.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2016 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/iscsi_tgt/iscsi_tgt.sh b/test/iscsi_tgt/iscsi_tgt.sh index 10297458c..b6752b26a 100755 --- a/test/iscsi_tgt/iscsi_tgt.sh +++ b/test/iscsi_tgt/iscsi_tgt.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/iscsi_tgt/login_redirection/login_redirection.sh b/test/iscsi_tgt/login_redirection/login_redirection.sh index c9fb998cb..8266a4d14 100755 --- a/test/iscsi_tgt/login_redirection/login_redirection.sh +++ b/test/iscsi_tgt/login_redirection/login_redirection.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) diff --git a/test/iscsi_tgt/lvol/iscsi_lvol.sh b/test/iscsi_tgt/lvol/iscsi_lvol.sh index 39ff87a41..8424fa078 100755 --- a/test/iscsi_tgt/lvol/iscsi_lvol.sh +++ b/test/iscsi_tgt/lvol/iscsi_lvol.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/iscsi_tgt/multiconnection/multiconnection.sh b/test/iscsi_tgt/multiconnection/multiconnection.sh index 78e3fcd3e..f97f67434 100755 --- a/test/iscsi_tgt/multiconnection/multiconnection.sh +++ b/test/iscsi_tgt/multiconnection/multiconnection.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/iscsi_tgt/nvme_remote/fio_remote_nvme.sh b/test/iscsi_tgt/nvme_remote/fio_remote_nvme.sh index 2af90a44a..0437f3030 100755 --- a/test/iscsi_tgt/nvme_remote/fio_remote_nvme.sh +++ b/test/iscsi_tgt/nvme_remote/fio_remote_nvme.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2016 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/iscsi_tgt/perf/iscsi_initiator.sh b/test/iscsi_tgt/perf/iscsi_initiator.sh index b7d08bbc2..47165d921 100755 --- a/test/iscsi_tgt/perf/iscsi_initiator.sh +++ b/test/iscsi_tgt/perf/iscsi_initiator.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) ISCSI_PORT=3260 FIO_PATH=$1 diff --git a/test/iscsi_tgt/perf/iscsi_target.sh b/test/iscsi_tgt/perf/iscsi_target.sh index de68b1e20..1b265d61b 100755 --- a/test/iscsi_tgt/perf/iscsi_target.sh +++ b/test/iscsi_tgt/perf/iscsi_target.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/iscsi_tgt/pmem/iscsi_pmem.sh b/test/iscsi_tgt/pmem/iscsi_pmem.sh index cf64e2d1f..e609de9b1 100755 --- a/test/iscsi_tgt/pmem/iscsi_pmem.sh +++ b/test/iscsi_tgt/pmem/iscsi_pmem.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/iscsi_tgt/qos/qos.sh b/test/iscsi_tgt/qos/qos.sh index f1e9f5515..ed616c9d8 100755 --- a/test/iscsi_tgt/qos/qos.sh +++ b/test/iscsi_tgt/qos/qos.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/iscsi_tgt/rbd/rbd.sh b/test/iscsi_tgt/rbd/rbd.sh index 752e9f026..1368694c0 100755 --- a/test/iscsi_tgt/rbd/rbd.sh +++ b/test/iscsi_tgt/rbd/rbd.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2016 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/iscsi_tgt/reset/reset.sh b/test/iscsi_tgt/reset/reset.sh index 969bd1d12..86026510e 100755 --- a/test/iscsi_tgt/reset/reset.sh +++ b/test/iscsi_tgt/reset/reset.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2016 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/iscsi_tgt/resize/resize.sh b/test/iscsi_tgt/resize/resize.sh index f7363fce6..fc911c6db 100755 --- a/test/iscsi_tgt/resize/resize.sh +++ b/test/iscsi_tgt/resize/resize.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) diff --git a/test/iscsi_tgt/rpc_config/rpc_config.sh b/test/iscsi_tgt/rpc_config/rpc_config.sh index 76f27b008..b36729f15 100755 --- a/test/iscsi_tgt/rpc_config/rpc_config.sh +++ b/test/iscsi_tgt/rpc_config/rpc_config.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2016 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/iscsi_tgt/sock/sock.sh b/test/iscsi_tgt/sock/sock.sh index 8e08bcaec..9abb390e9 100755 --- a/test/iscsi_tgt/sock/sock.sh +++ b/test/iscsi_tgt/sock/sock.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/iscsi_tgt/trace_record/trace_record.sh b/test/iscsi_tgt/trace_record/trace_record.sh index 0cd1e5479..f5ca3ff2a 100755 --- a/test/iscsi_tgt/trace_record/trace_record.sh +++ b/test/iscsi_tgt/trace_record/trace_record.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/json_config/alias_rpc/alias_rpc.sh b/test/json_config/alias_rpc/alias_rpc.sh index 81f8dd71e..6d0d589df 100755 --- a/test/json_config/alias_rpc/alias_rpc.sh +++ b/test/json_config/alias_rpc/alias_rpc.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/json_config/json_config.sh b/test/json_config/json_config.sh index c7e021de2..c82022636 100755 --- a/test/json_config/json_config.sh +++ b/test/json_config/json_config.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# rootdir=$(readlink -f $(dirname $0)/../..) source "$rootdir/test/common/autotest_common.sh" source "$rootdir/test/nvmf/common.sh" diff --git a/test/json_config/json_config_extra_key.sh b/test/json_config/json_config_extra_key.sh index 592b465dc..0ed3c5d3e 100755 --- a/test/json_config/json_config_extra_key.sh +++ b/test/json_config/json_config_extra_key.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# rootdir=$(readlink -f $(dirname $0)/../..) source "$rootdir/test/common/autotest_common.sh" diff --git a/test/json_config/json_diff.sh b/test/json_config/json_diff.sh index e6b9e223d..d4df09bf1 100755 --- a/test/json_config/json_diff.sh +++ b/test/json_config/json_diff.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# set -x if [ $# -ne 2 ]; then diff --git a/test/lvol/basic.sh b/test/lvol/basic.sh index 004ebdb48..8f1bf1ad0 100755 --- a/test/lvol/basic.sh +++ b/test/lvol/basic.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/lvol/common.sh b/test/lvol/common.sh index b0fd119b3..e54eb62e1 100644 --- a/test/lvol/common.sh +++ b/test/lvol/common.sh @@ -1,3 +1,8 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# + MALLOC_SIZE_MB=128 MALLOC_BS=512 AIO_SIZE_MB=400 diff --git a/test/lvol/hotremove.sh b/test/lvol/hotremove.sh index 8306b301c..17ea4e9e0 100755 --- a/test/lvol/hotremove.sh +++ b/test/lvol/hotremove.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/lvol/lvol.sh b/test/lvol/lvol.sh index 3c33ca64b..6122c1036 100755 --- a/test/lvol/lvol.sh +++ b/test/lvol/lvol.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/lvol/rename.sh b/test/lvol/rename.sh index d920539f0..71b8819cd 100755 --- a/test/lvol/rename.sh +++ b/test/lvol/rename.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/lvol/resize.sh b/test/lvol/resize.sh index be0410275..74c2953c7 100755 --- a/test/lvol/resize.sh +++ b/test/lvol/resize.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/lvol/snapshot_clone.sh b/test/lvol/snapshot_clone.sh index 630d43406..bdb3c7223 100755 --- a/test/lvol/snapshot_clone.sh +++ b/test/lvol/snapshot_clone.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/lvol/tasting.sh b/test/lvol/tasting.sh index 4c17fe82c..ee025be3b 100755 --- a/test/lvol/tasting.sh +++ b/test/lvol/tasting.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/lvol/thin_provisioning.sh b/test/lvol/thin_provisioning.sh index 45b25e8cf..db4a16cba 100755 --- a/test/lvol/thin_provisioning.sh +++ b/test/lvol/thin_provisioning.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/make/check_so_deps.sh b/test/make/check_so_deps.sh index ab70a12df..e87097a25 100755 --- a/test/make/check_so_deps.sh +++ b/test/make/check_so_deps.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# shopt -s extglob git_repo_abi="https://github.com/spdk/spdk-abi.git" diff --git a/test/nvme/cmb/cmb.sh b/test/nvme/cmb/cmb.sh index d2a597778..bef9a6683 100755 --- a/test/nvme/cmb/cmb.sh +++ b/test/nvme/cmb/cmb.sh @@ -1,4 +1,9 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# + testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../../../") source "$rootdir/test/common/autotest_common.sh" diff --git a/test/nvme/cmb/cmb_copy.sh b/test/nvme/cmb/cmb_copy.sh index a056809de..7deb45adc 100755 --- a/test/nvme/cmb/cmb_copy.sh +++ b/test/nvme/cmb/cmb_copy.sh @@ -1,4 +1,9 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# + testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../../../") source "$rootdir/test/common/autotest_common.sh" diff --git a/test/nvme/compliance/compliance.sh b/test/nvme/compliance/compliance.sh index 9061d3b68..5de5ed0b7 100755 --- a/test/nvme/compliance/compliance.sh +++ b/test/nvme/compliance/compliance.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvme/cuse/nvme_cuse.sh b/test/nvme/cuse/nvme_cuse.sh index 9f8c20a9e..c4e73f962 100755 --- a/test/nvme/cuse/nvme_cuse.sh +++ b/test/nvme/cuse/nvme_cuse.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/scripts/common.sh diff --git a/test/nvme/cuse/nvme_cuse_rpc.sh b/test/nvme/cuse/nvme_cuse_rpc.sh index eaf0dbd9c..e3e832e59 100755 --- a/test/nvme/cuse/nvme_cuse_rpc.sh +++ b/test/nvme/cuse/nvme_cuse_rpc.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/scripts/common.sh diff --git a/test/nvme/cuse/nvme_ns_manage_cuse.sh b/test/nvme/cuse/nvme_ns_manage_cuse.sh index f2fb271bf..51a50ea0f 100755 --- a/test/nvme/cuse/nvme_ns_manage_cuse.sh +++ b/test/nvme/cuse/nvme_ns_manage_cuse.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/scripts/common.sh diff --git a/test/nvme/cuse/spdk_nvme_cli_cuse.sh b/test/nvme/cuse/spdk_nvme_cli_cuse.sh index 66b17f746..95725ba96 100755 --- a/test/nvme/cuse/spdk_nvme_cli_cuse.sh +++ b/test/nvme/cuse/spdk_nvme_cli_cuse.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/scripts/common.sh diff --git a/test/nvme/cuse/spdk_smartctl_cuse.sh b/test/nvme/cuse/spdk_smartctl_cuse.sh index 2697d7712..903445681 100755 --- a/test/nvme/cuse/spdk_smartctl_cuse.sh +++ b/test/nvme/cuse/spdk_smartctl_cuse.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/scripts/common.sh diff --git a/test/nvme/hw_hotplug.sh b/test/nvme/hw_hotplug.sh index c03a1c3d6..886130660 100755 --- a/test/nvme/hw_hotplug.sh +++ b/test/nvme/hw_hotplug.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# shopt -s nullglob testdir=$(readlink -f $(dirname $0)) diff --git a/test/nvme/nvme.sh b/test/nvme/nvme.sh index b12a8c335..504dabbca 100755 --- a/test/nvme/nvme.sh +++ b/test/nvme/nvme.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2015 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/scripts/common.sh diff --git a/test/nvme/nvme_bp.sh b/test/nvme/nvme_bp.sh index dc6b70718..d4dccc108 100755 --- a/test/nvme/nvme_bp.sh +++ b/test/nvme/nvme_bp.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) diff --git a/test/nvme/nvme_opal.sh b/test/nvme/nvme_opal.sh index f45ad8750..b5c51ca65 100755 --- a/test/nvme/nvme_opal.sh +++ b/test/nvme/nvme_opal.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# set -e testdir=$(readlink -f $(dirname $0)) diff --git a/test/nvme/nvme_pmr.sh b/test/nvme/nvme_pmr.sh index d400948f1..74c080f2d 100755 --- a/test/nvme/nvme_pmr.sh +++ b/test/nvme/nvme_pmr.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) diff --git a/test/nvme/nvme_rpc.sh b/test/nvme/nvme_rpc.sh index da7cf50d3..327291ed2 100755 --- a/test/nvme/nvme_rpc.sh +++ b/test/nvme/nvme_rpc.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/scripts/common.sh diff --git a/test/nvme/nvme_rpc_timeouts.sh b/test/nvme/nvme_rpc_timeouts.sh index 257737e3c..999001211 100755 --- a/test/nvme/nvme_rpc_timeouts.sh +++ b/test/nvme/nvme_rpc_timeouts.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# All rights reserved. +# ## Test goal: Confirm that rpc setting of bdev_nvme_set_options timeout values is working ## Test steps: diff --git a/test/nvme/nvme_scc.sh b/test/nvme/nvme_scc.sh index ce16f6e8a..b21b86a88 100755 --- a/test/nvme/nvme_scc.sh +++ b/test/nvme/nvme_scc.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) diff --git a/test/nvme/perf/common.sh b/test/nvme/perf/common.sh index 89b28a454..3910c474b 100755 --- a/test/nvme/perf/common.sh +++ b/test/nvme/perf/common.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# source "$rootdir/test/dd/common.sh" function discover_bdevs() { diff --git a/test/nvme/perf/run_perf.sh b/test/nvme/perf/run_perf.sh index f1ac9898f..34798f31d 100755 --- a/test/nvme/perf/run_perf.sh +++ b/test/nvme/perf/run_perf.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# set -e # Dir variables and sourcing common files diff --git a/test/nvme/sw_hotplug.sh b/test/nvme/sw_hotplug.sh index c351d6c58..02803d403 100755 --- a/test/nvme/sw_hotplug.sh +++ b/test/nvme/sw_hotplug.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/scripts/common.sh diff --git a/test/nvme/xnvme/xnvme.sh b/test/nvme/xnvme/xnvme.sh index 8b8b3e3ec..fc5688ccc 100755 --- a/test/nvme/xnvme/xnvme.sh +++ b/test/nvme/xnvme/xnvme.sh @@ -1,4 +1,9 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation +# All rights reserved. +# + testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../../../") # Hook into dd suite to perform some basic IO tests diff --git a/test/nvme/zns/zns.sh b/test/nvme/zns/zns.sh index 36b12234d..204c81009 100755 --- a/test/nvme/zns/zns.sh +++ b/test/nvme/zns/zns.sh @@ -1,4 +1,9 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# + testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../../../") source "$rootdir/test/common/autotest_common.sh" diff --git a/test/nvmf/common.sh b/test/nvmf/common.sh index aea7456d5..f2a95eefa 100644 --- a/test/nvmf/common.sh +++ b/test/nvmf/common.sh @@ -1,3 +1,8 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2016 Intel Corporation +# All rights reserved. +# + NVMF_PORT=4420 NVMF_SECOND_PORT=4421 NVMF_THIRD_PORT=4422 diff --git a/test/nvmf/host/aer.sh b/test/nvmf/host/aer.sh index 24dd781d4..73ef22e95 100755 --- a/test/nvmf/host/aer.sh +++ b/test/nvmf/host/aer.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/host/async_init.sh b/test/nvmf/host/async_init.sh index 3a40ec312..9d1b25c66 100755 --- a/test/nvmf/host/async_init.sh +++ b/test/nvmf/host/async_init.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) rpc_py=$rootdir/scripts/rpc.py diff --git a/test/nvmf/host/bdevperf.sh b/test/nvmf/host/bdevperf.sh index 361a2709c..a17d523ae 100755 --- a/test/nvmf/host/bdevperf.sh +++ b/test/nvmf/host/bdevperf.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/host/discovery.sh b/test/nvmf/host/discovery.sh index b7a89f60d..cd8cccd33 100755 --- a/test/nvmf/host/discovery.sh +++ b/test/nvmf/host/discovery.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/host/dma.sh b/test/nvmf/host/dma.sh index ba3a90cc7..57ab8e2b4 100755 --- a/test/nvmf/host/dma.sh +++ b/test/nvmf/host/dma.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) diff --git a/test/nvmf/host/failover.sh b/test/nvmf/host/failover.sh index 78145b747..84e63e195 100755 --- a/test/nvmf/host/failover.sh +++ b/test/nvmf/host/failover.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/host/fio.sh b/test/nvmf/host/fio.sh index 61f8022e9..9d6a50918 100755 --- a/test/nvmf/host/fio.sh +++ b/test/nvmf/host/fio.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/host/identify.sh b/test/nvmf/host/identify.sh index 9ec8f8fd7..847c02a25 100755 --- a/test/nvmf/host/identify.sh +++ b/test/nvmf/host/identify.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2016 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/host/identify_kernel_nvmf.sh b/test/nvmf/host/identify_kernel_nvmf.sh index d6dd2916b..e79a79c6a 100755 --- a/test/nvmf/host/identify_kernel_nvmf.sh +++ b/test/nvmf/host/identify_kernel_nvmf.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2016 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/host/multicontroller.sh b/test/nvmf/host/multicontroller.sh index 34e38b9aa..306828bec 100755 --- a/test/nvmf/host/multicontroller.sh +++ b/test/nvmf/host/multicontroller.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/host/multipath.sh b/test/nvmf/host/multipath.sh index 011d90bfe..1f4c05738 100755 --- a/test/nvmf/host/multipath.sh +++ b/test/nvmf/host/multipath.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/host/perf.sh b/test/nvmf/host/perf.sh index 075670a45..1096452cc 100755 --- a/test/nvmf/host/perf.sh +++ b/test/nvmf/host/perf.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2016 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/host/target_disconnect.sh b/test/nvmf/host/target_disconnect.sh index a681b5dad..2c778617d 100755 --- a/test/nvmf/host/target_disconnect.sh +++ b/test/nvmf/host/target_disconnect.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/host/timeout.sh b/test/nvmf/host/timeout.sh index 015dd993a..88013b515 100755 --- a/test/nvmf/host/timeout.sh +++ b/test/nvmf/host/timeout.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/nvmf.sh b/test/nvmf/nvmf.sh index 8c891ba7f..12fe487b2 100755 --- a/test/nvmf/nvmf.sh +++ b/test/nvmf/nvmf.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/target/abort.sh b/test/nvmf/target/abort.sh index 6531da558..f0680ce00 100755 --- a/test/nvmf/target/abort.sh +++ b/test/nvmf/target/abort.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/target/abort_qd_sizes.sh b/test/nvmf/target/abort_qd_sizes.sh index 64e1c9295..df2933aae 100755 --- a/test/nvmf/target/abort_qd_sizes.sh +++ b/test/nvmf/target/abort_qd_sizes.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../../../") diff --git a/test/nvmf/target/bdev_io_wait.sh b/test/nvmf/target/bdev_io_wait.sh index b155f2f4c..59b69af77 100755 --- a/test/nvmf/target/bdev_io_wait.sh +++ b/test/nvmf/target/bdev_io_wait.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/target/bdevio.sh b/test/nvmf/target/bdevio.sh index 25f4efec0..3da9c193a 100755 --- a/test/nvmf/target/bdevio.sh +++ b/test/nvmf/target/bdevio.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/target/connect_disconnect.sh b/test/nvmf/target/connect_disconnect.sh index 8eb60feb9..90443f132 100755 --- a/test/nvmf/target/connect_disconnect.sh +++ b/test/nvmf/target/connect_disconnect.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/target/connect_stress.sh b/test/nvmf/target/connect_stress.sh index 8c218d90f..ad01e9fc0 100755 --- a/test/nvmf/target/connect_stress.sh +++ b/test/nvmf/target/connect_stress.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) diff --git a/test/nvmf/target/delete_subsystem.sh b/test/nvmf/target/delete_subsystem.sh index e79cdbd8f..20edd697f 100755 --- a/test/nvmf/target/delete_subsystem.sh +++ b/test/nvmf/target/delete_subsystem.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) diff --git a/test/nvmf/target/dif.sh b/test/nvmf/target/dif.sh index b08bace1e..4f68eac41 100755 --- a/test/nvmf/target/dif.sh +++ b/test/nvmf/target/dif.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../../../") diff --git a/test/nvmf/target/discovery.sh b/test/nvmf/target/discovery.sh index 755adc28c..c9f698127 100755 --- a/test/nvmf/target/discovery.sh +++ b/test/nvmf/target/discovery.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2016 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/target/fabrics_fuzz.sh b/test/nvmf/target/fabrics_fuzz.sh index ddf1305fb..1e1eabb8c 100755 --- a/test/nvmf/target/fabrics_fuzz.sh +++ b/test/nvmf/target/fabrics_fuzz.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/target/filesystem.sh b/test/nvmf/target/filesystem.sh index 440c326ff..a3106a790 100755 --- a/test/nvmf/target/filesystem.sh +++ b/test/nvmf/target/filesystem.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2016 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/setup/common.sh diff --git a/test/nvmf/target/fio.sh b/test/nvmf/target/fio.sh index 4b0442c3c..339f6abf5 100755 --- a/test/nvmf/target/fio.sh +++ b/test/nvmf/target/fio.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2016 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/target/fused_ordering.sh b/test/nvmf/target/fused_ordering.sh index 1cb22a820..a35ca0e49 100755 --- a/test/nvmf/target/fused_ordering.sh +++ b/test/nvmf/target/fused_ordering.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) diff --git a/test/nvmf/target/host_management.sh b/test/nvmf/target/host_management.sh index 9129a9fcf..3fb9056da 100755 --- a/test/nvmf/target/host_management.sh +++ b/test/nvmf/target/host_management.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/target/identify_passthru.sh b/test/nvmf/target/identify_passthru.sh index 081c8c977..d1a9f4a95 100755 --- a/test/nvmf/target/identify_passthru.sh +++ b/test/nvmf/target/identify_passthru.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/target/initiator_timeout.sh b/test/nvmf/target/initiator_timeout.sh index 077081951..d03989dee 100755 --- a/test/nvmf/target/initiator_timeout.sh +++ b/test/nvmf/target/initiator_timeout.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/target/invalid.sh b/test/nvmf/target/invalid.sh index b6795ba44..a051b96b9 100755 --- a/test/nvmf/target/invalid.sh +++ b/test/nvmf/target/invalid.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../../..") source "$rootdir/test/common/autotest_common.sh" diff --git a/test/nvmf/target/multiconnection.sh b/test/nvmf/target/multiconnection.sh index cd257992b..7554ad8a9 100755 --- a/test/nvmf/target/multiconnection.sh +++ b/test/nvmf/target/multiconnection.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/target/multipath.sh b/test/nvmf/target/multipath.sh index c6ee9feab..8c46effbc 100755 --- a/test/nvmf/target/multipath.sh +++ b/test/nvmf/target/multipath.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/target/multitarget.sh b/test/nvmf/target/multitarget.sh index 4c3ece7c0..39e87477e 100755 --- a/test/nvmf/target/multitarget.sh +++ b/test/nvmf/target/multitarget.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/target/nmic.sh b/test/nvmf/target/nmic.sh index d7bd5b78b..a77b4157f 100755 --- a/test/nvmf/target/nmic.sh +++ b/test/nvmf/target/nmic.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/target/ns_hotplug_stress.sh b/test/nvmf/target/ns_hotplug_stress.sh index 607fe0e12..7adef2d43 100755 --- a/test/nvmf/target/ns_hotplug_stress.sh +++ b/test/nvmf/target/ns_hotplug_stress.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/target/nvme_cli.sh b/test/nvmf/target/nvme_cli.sh index 3f32268a4..7cf7a3721 100755 --- a/test/nvmf/target/nvme_cli.sh +++ b/test/nvmf/target/nvme_cli.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2016 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/target/nvmf_example.sh b/test/nvmf/target/nvmf_example.sh index d7ba77b7f..7492e3709 100755 --- a/test/nvmf/target/nvmf_example.sh +++ b/test/nvmf/target/nvmf_example.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/target/nvmf_lvol.sh b/test/nvmf/target/nvmf_lvol.sh index 935fdb2fd..691ce1d8f 100755 --- a/test/nvmf/target/nvmf_lvol.sh +++ b/test/nvmf/target/nvmf_lvol.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/target/nvmf_vfio_user.sh b/test/nvmf/target/nvmf_vfio_user.sh index 917174773..d14077bfe 100755 --- a/test/nvmf/target/nvmf_vfio_user.sh +++ b/test/nvmf/target/nvmf_vfio_user.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) nvmeappdir=$(readlink -f $rootdir/test/nvme) diff --git a/test/nvmf/target/nvmf_vhost.sh b/test/nvmf/target/nvmf_vhost.sh index 18275eab3..9c9dde35d 100755 --- a/test/nvmf/target/nvmf_vhost.sh +++ b/test/nvmf/target/nvmf_vhost.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$testdir/../../.. source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/target/perf_adq.sh b/test/nvmf/target/perf_adq.sh index 2e8285f95..2370836dd 100755 --- a/test/nvmf/target/perf_adq.sh +++ b/test/nvmf/target/perf_adq.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/target/queue_depth.sh b/test/nvmf/target/queue_depth.sh index 5f60f9be3..44f0858a1 100755 --- a/test/nvmf/target/queue_depth.sh +++ b/test/nvmf/target/queue_depth.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation +# All rights reserved. +# # Test for if we can allocate a request for the FABRICS_CONNECT when all requests objects are consumed by the queued I/O diff --git a/test/nvmf/target/rpc.sh b/test/nvmf/target/rpc.sh index 01dd5553a..07cc64c05 100755 --- a/test/nvmf/target/rpc.sh +++ b/test/nvmf/target/rpc.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/target/shutdown.sh b/test/nvmf/target/shutdown.sh index 9b52798bd..0dc839182 100755 --- a/test/nvmf/target/shutdown.sh +++ b/test/nvmf/target/shutdown.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/target/srq_overwhelm.sh b/test/nvmf/target/srq_overwhelm.sh index fc95df8b9..29d8bcd71 100755 --- a/test/nvmf/target/srq_overwhelm.sh +++ b/test/nvmf/target/srq_overwhelm.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/nvmf/target/tls.sh b/test/nvmf/target/tls.sh index 788c7d9d0..dfebf9581 100755 --- a/test/nvmf/target/tls.sh +++ b/test/nvmf/target/tls.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) diff --git a/test/nvmf/target/vfio_user_fuzz.sh b/test/nvmf/target/vfio_user_fuzz.sh index d536ece20..cd0cf8ab6 100755 --- a/test/nvmf/target/vfio_user_fuzz.sh +++ b/test/nvmf/target/vfio_user_fuzz.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) diff --git a/test/nvmf/target/zcopy.sh b/test/nvmf/target/zcopy.sh index 0661e52d6..cb1a28db1 100755 --- a/test/nvmf/target/zcopy.sh +++ b/test/nvmf/target/zcopy.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) diff --git a/test/ocf/common.sh b/test/ocf/common.sh index 1c81f74f6..44ffbf86a 100644 --- a/test/ocf/common.sh +++ b/test/ocf/common.sh @@ -1,3 +1,8 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# + source $rootdir/scripts/common.sh source $rootdir/test/common/autotest_common.sh diff --git a/test/ocf/integrity/bdevperf-iotypes.sh b/test/ocf/integrity/bdevperf-iotypes.sh index dd9fe4d9f..4d159c5c3 100755 --- a/test/ocf/integrity/bdevperf-iotypes.sh +++ b/test/ocf/integrity/bdevperf-iotypes.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# curdir=$(dirname $(readlink -f "${BASH_SOURCE[0]}")) rootdir=$(readlink -f $curdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/ocf/integrity/fio-modes.sh b/test/ocf/integrity/fio-modes.sh index b8a28501d..5f8d91d06 100755 --- a/test/ocf/integrity/fio-modes.sh +++ b/test/ocf/integrity/fio-modes.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# curdir=$(dirname $(readlink -f "${BASH_SOURCE[0]}")) rootdir=$(readlink -f $curdir/../../..) diff --git a/test/ocf/integrity/stats.sh b/test/ocf/integrity/stats.sh index 5b69a69af..85177dde5 100755 --- a/test/ocf/integrity/stats.sh +++ b/test/ocf/integrity/stats.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# curdir=$(dirname $(readlink -f "${BASH_SOURCE[0]}")) rootdir=$(readlink -f $curdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/ocf/management/configuration-change.sh b/test/ocf/management/configuration-change.sh index b8ac8b5bf..b9e517033 100755 --- a/test/ocf/management/configuration-change.sh +++ b/test/ocf/management/configuration-change.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# curdir=$(dirname $(readlink -f "${BASH_SOURCE[0]}")) rootdir=$(readlink -f $curdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/ocf/management/create-destruct.sh b/test/ocf/management/create-destruct.sh index 6d55eee5a..839b56945 100755 --- a/test/ocf/management/create-destruct.sh +++ b/test/ocf/management/create-destruct.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# curdir=$(dirname $(readlink -f "${BASH_SOURCE[0]}")) rootdir=$(readlink -f $curdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/ocf/management/multicore.sh b/test/ocf/management/multicore.sh index 8c4f89e1b..ce1ff5950 100755 --- a/test/ocf/management/multicore.sh +++ b/test/ocf/management/multicore.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# curdir=$(dirname $(readlink -f "${BASH_SOURCE[0]}")) rootdir=$(readlink -f $curdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/ocf/management/persistent-metadata.sh b/test/ocf/management/persistent-metadata.sh index 918e8e3bf..33b37151b 100755 --- a/test/ocf/management/persistent-metadata.sh +++ b/test/ocf/management/persistent-metadata.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# curdir=$(dirname $(readlink -f "${BASH_SOURCE[0]}")) rootdir=$(readlink -f $curdir/../../..) source $rootdir/test/ocf/common.sh diff --git a/test/ocf/management/remove.sh b/test/ocf/management/remove.sh index b07f1a0ab..929f33d04 100755 --- a/test/ocf/management/remove.sh +++ b/test/ocf/management/remove.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# curdir=$(dirname $(readlink -f "${BASH_SOURCE[0]}")) rootdir=$(readlink -f $curdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/ocf/ocf.sh b/test/ocf/ocf.sh index e04577778..ccd622dab 100755 --- a/test/ocf/ocf.sh +++ b/test/ocf/ocf.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) diff --git a/test/openstack/install_devstack.sh b/test/openstack/install_devstack.sh index c4c7b1cfc..161243ab1 100755 --- a/test/openstack/install_devstack.sh +++ b/test/openstack/install_devstack.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source "$rootdir/test/common/autotest_common.sh" diff --git a/test/openstack/run_openstack_tests.sh b/test/openstack/run_openstack_tests.sh index 8a34f267c..b92a860de 100755 --- a/test/openstack/run_openstack_tests.sh +++ b/test/openstack/run_openstack_tests.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) diff --git a/test/packaging/packaging.sh b/test/packaging/packaging.sh index edb66a3e1..97041b452 100755 --- a/test/packaging/packaging.sh +++ b/test/packaging/packaging.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../../") diff --git a/test/packaging/rpm/rpm.sh b/test/packaging/rpm/rpm.sh index 5fce1cd32..0f0d2492a 100755 --- a/test/packaging/rpm/rpm.sh +++ b/test/packaging/rpm/rpm.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../../../") diff --git a/test/pmem/common.sh b/test/pmem/common.sh index 844930df2..1a774bf2d 100644 --- a/test/pmem/common.sh +++ b/test/pmem/common.sh @@ -1,3 +1,8 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# + # Prints error message and return error code, closes vhost app and remove # pmem pool file # input: error message, error code diff --git a/test/pmem/pmem.sh b/test/pmem/pmem.sh index b5f748a57..06d57331a 100755 --- a/test/pmem/pmem.sh +++ b/test/pmem/pmem.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/rpc/rpc.sh b/test/rpc/rpc.sh index 9e56fa2c3..e514e1c86 100755 --- a/test/rpc/rpc.sh +++ b/test/rpc/rpc.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/rpc_client/rpc_client.sh b/test/rpc_client/rpc_client.sh index 2d20f5b7c..9252e21a9 100755 --- a/test/rpc_client/rpc_client.sh +++ b/test/rpc_client/rpc_client.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/scheduler/common.sh b/test/scheduler/common.sh index 160d28f31..d76223d0b 100644 --- a/test/scheduler/common.sh +++ b/test/scheduler/common.sh @@ -1,3 +1,8 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# + shopt -s nullglob extglob declare -r sysfs_system=/sys/devices/system diff --git a/test/scheduler/governor.sh b/test/scheduler/governor.sh index e2f34ee56..a5067bbde 100755 --- a/test/scheduler/governor.sh +++ b/test/scheduler/governor.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../../") diff --git a/test/scheduler/idle.sh b/test/scheduler/idle.sh index b4c4b4a9b..55c29f84f 100755 --- a/test/scheduler/idle.sh +++ b/test/scheduler/idle.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../../") diff --git a/test/scheduler/interrupt.sh b/test/scheduler/interrupt.sh index d981c0326..f54477f75 100755 --- a/test/scheduler/interrupt.sh +++ b/test/scheduler/interrupt.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../../") diff --git a/test/scheduler/load_balancing.sh b/test/scheduler/load_balancing.sh index de3466b5b..3a43638c2 100755 --- a/test/scheduler/load_balancing.sh +++ b/test/scheduler/load_balancing.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../../") diff --git a/test/scheduler/scheduler.sh b/test/scheduler/scheduler.sh index 0e3385b16..860853217 100755 --- a/test/scheduler/scheduler.sh +++ b/test/scheduler/scheduler.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../../") diff --git a/test/setup/acl.sh b/test/setup/acl.sh index 0a9549a05..258792316 100755 --- a/test/setup/acl.sh +++ b/test/setup/acl.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../../") source "$testdir/common.sh" diff --git a/test/setup/common.sh b/test/setup/common.sh index a8de433e8..043f37d73 100644 --- a/test/setup/common.sh +++ b/test/setup/common.sh @@ -1,3 +1,8 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# + source "$rootdir/test/common/autotest_common.sh" setup() { diff --git a/test/setup/devices.sh b/test/setup/devices.sh index 86fabf30b..f14b013ce 100755 --- a/test/setup/devices.sh +++ b/test/setup/devices.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../../") source "$testdir/common.sh" diff --git a/test/setup/driver.sh b/test/setup/driver.sh index 823d723de..88f574860 100755 --- a/test/setup/driver.sh +++ b/test/setup/driver.sh @@ -1,4 +1,9 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# + testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../../") source "$testdir/common.sh" diff --git a/test/setup/hugepages.sh b/test/setup/hugepages.sh index 0411c6bdb..00e4d3725 100755 --- a/test/setup/hugepages.sh +++ b/test/setup/hugepages.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../../") source "$testdir/common.sh" diff --git a/test/setup/test-setup.sh b/test/setup/test-setup.sh index 5a2461872..d63470fa8 100755 --- a/test/setup/test-setup.sh +++ b/test/setup/test-setup.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../../") source "$testdir/common.sh" diff --git a/test/sma/common.sh b/test/sma/common.sh index 5061f2cb6..c6d6e1b7c 100644 --- a/test/sma/common.sh +++ b/test/sma/common.sh @@ -1,3 +1,8 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation +# All rights reserved. +# + function sma_waitforlisten() { local sma_addr=${1:-127.0.0.1} local sma_port=${2:-8080} diff --git a/test/sma/crypto.sh b/test/sma/crypto.sh index 0ed9a7f14..99ba6b890 100755 --- a/test/sma/crypto.sh +++ b/test/sma/crypto.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../..") diff --git a/test/sma/discovery.sh b/test/sma/discovery.sh index 81e0d1b79..435440e2a 100755 --- a/test/sma/discovery.sh +++ b/test/sma/discovery.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../..") diff --git a/test/sma/nvmf_tcp.sh b/test/sma/nvmf_tcp.sh index f003f0277..40fa9dbe1 100755 --- a/test/sma/nvmf_tcp.sh +++ b/test/sma/nvmf_tcp.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../..") diff --git a/test/sma/plugins.sh b/test/sma/plugins.sh index 48e2dfee3..a0a4d1c33 100755 --- a/test/sma/plugins.sh +++ b/test/sma/plugins.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../..") diff --git a/test/sma/qos.sh b/test/sma/qos.sh index 60b117c7c..05bd457a6 100755 --- a/test/sma/qos.sh +++ b/test/sma/qos.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../..") diff --git a/test/sma/sma.sh b/test/sma/sma.sh index 7459a938d..5c91222fe 100755 --- a/test/sma/sma.sh +++ b/test/sma/sma.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../..") diff --git a/test/sma/vfiouser_qemu.sh b/test/sma/vfiouser_qemu.sh index 372352e8a..4cd2ac10a 100755 --- a/test/sma/vfiouser_qemu.sh +++ b/test/sma/vfiouser_qemu.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../..") diff --git a/test/sma/vhost_blk.sh b/test/sma/vhost_blk.sh index 550cf08f1..d2c67b19b 100755 --- a/test/sma/vhost_blk.sh +++ b/test/sma/vhost_blk.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f "$(dirname "$0")") rootdir=$(readlink -f "$testdir/../..") diff --git a/test/spdkcli/common.sh b/test/spdkcli/common.sh index a1b114858..2f135fb15 100644 --- a/test/spdkcli/common.sh +++ b/test/spdkcli/common.sh @@ -1,3 +1,8 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# + spdkcli_job="$rootdir/test/spdkcli/spdkcli_job.py" spdk_clear_config_py="$rootdir/test/json_config/clear_config.py" diff --git a/test/spdkcli/iscsi.sh b/test/spdkcli/iscsi.sh index 81b2dc950..335b5f429 100755 --- a/test/spdkcli/iscsi.sh +++ b/test/spdkcli/iscsi.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/spdkcli/nvmf.sh b/test/spdkcli/nvmf.sh index 9c8160891..7fb9d4c99 100755 --- a/test/spdkcli/nvmf.sh +++ b/test/spdkcli/nvmf.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/spdkcli/pmem.sh b/test/spdkcli/pmem.sh index abecd73ca..35ab19494 100755 --- a/test/spdkcli/pmem.sh +++ b/test/spdkcli/pmem.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/spdkcli/raid.sh b/test/spdkcli/raid.sh index 9bbde4719..cabb7e1fd 100755 --- a/test/spdkcli/raid.sh +++ b/test/spdkcli/raid.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/spdkcli/rbd.sh b/test/spdkcli/rbd.sh index bc6c798f6..a93dfd0bc 100755 --- a/test/spdkcli/rbd.sh +++ b/test/spdkcli/rbd.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/spdkcli/tcp.sh b/test/spdkcli/tcp.sh index 69c80642f..af28c6225 100755 --- a/test/spdkcli/tcp.sh +++ b/test/spdkcli/tcp.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/spdkcli/vhost.sh b/test/spdkcli/vhost.sh index 3032d8597..74601cb3b 100755 --- a/test/spdkcli/vhost.sh +++ b/test/spdkcli/vhost.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/spdkcli/virtio.sh b/test/spdkcli/virtio.sh index 862482445..19f15e389 100755 --- a/test/spdkcli/virtio.sh +++ b/test/spdkcli/virtio.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/thread/thread.sh b/test/thread/thread.sh index d65036246..eb33c3dcd 100755 --- a/test/thread/thread.sh +++ b/test/thread/thread.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) diff --git a/test/unit/unittest.sh b/test/unit/unittest.sh index 21a3f08f8..f1cbce102 100755 --- a/test/unit/unittest.sh +++ b/test/unit/unittest.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. # # Environment variables: # $valgrind Specify the valgrind command line, if not diff --git a/test/vfio_user/common.sh b/test/vfio_user/common.sh index 2b09aaabb..9bccc6c25 100644 --- a/test/vfio_user/common.sh +++ b/test/vfio_user/common.sh @@ -1,3 +1,8 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# + : ${MALLOC_BDEV_SIZE=256} : ${MALLOC_BLOCK_SIZE=512} diff --git a/test/vfio_user/nvme/vfio_user_fio.sh b/test/vfio_user/nvme/vfio_user_fio.sh index 958b30ae6..fdaae7023 100755 --- a/test/vfio_user/nvme/vfio_user_fio.sh +++ b/test/vfio_user/nvme/vfio_user_fio.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/vfio_user/nvme/vfio_user_restart_vm.sh b/test/vfio_user/nvme/vfio_user_restart_vm.sh index 376295659..b6d13ca44 100755 --- a/test/vfio_user/nvme/vfio_user_restart_vm.sh +++ b/test/vfio_user/nvme/vfio_user_restart_vm.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/vfio_user/vfio_user.sh b/test/vfio_user/vfio_user.sh index ec20d9595..cdadedc83 100755 --- a/test/vfio_user/vfio_user.sh +++ b/test/vfio_user/vfio_user.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/vfio_user/virtio/fio_restart_vm.sh b/test/vfio_user/virtio/fio_restart_vm.sh index f6e8e8db6..e972d774b 100755 --- a/test/vfio_user/virtio/fio_restart_vm.sh +++ b/test/vfio_user/virtio/fio_restart_vm.sh @@ -1,4 +1,9 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation +# All rights reserved. +# + testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/vhost/common.sh b/test/vhost/common.sh index 35cbb73ab..43ea64237 100644 --- a/test/vhost/common.sh +++ b/test/vhost/common.sh @@ -1,3 +1,8 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# + : ${SPDK_VHOST_VERBOSE=false} : ${VHOST_DIR="$HOME/vhost_test"} : ${QEMU_BIN:="qemu-system-x86_64"} diff --git a/test/vhost/fio/fio.sh b/test/vhost/fio/fio.sh index 6861e7a4b..386448d90 100755 --- a/test/vhost/fio/fio.sh +++ b/test/vhost/fio/fio.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# set -e testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) diff --git a/test/vhost/fiotest/fio.sh b/test/vhost/fiotest/fio.sh index 104f8f957..73459fac5 100755 --- a/test/vhost/fiotest/fio.sh +++ b/test/vhost/fiotest/fio.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/vhost/fuzz/fuzz.sh b/test/vhost/fuzz/fuzz.sh index 3145475b1..cb12b28df 100755 --- a/test/vhost/fuzz/fuzz.sh +++ b/test/vhost/fuzz/fuzz.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# set -e rootdir=$(readlink -f $(dirname $0))/../../.. diff --git a/test/vhost/hotplug/blk_hotremove.sh b/test/vhost/hotplug/blk_hotremove.sh index d0edab83a..f6d37b33f 100644 --- a/test/vhost/hotplug/blk_hotremove.sh +++ b/test/vhost/hotplug/blk_hotremove.sh @@ -1,3 +1,8 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# + # Vhost blk hot remove tests # # Objective diff --git a/test/vhost/hotplug/common.sh b/test/vhost/hotplug/common.sh index 7c7311540..32e6cd182 100644 --- a/test/vhost/hotplug/common.sh +++ b/test/vhost/hotplug/common.sh @@ -1,3 +1,8 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# + testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/vhost/hotplug/scsi_hotattach.sh b/test/vhost/hotplug/scsi_hotattach.sh index 4b9e26ab8..afee4799b 100755 --- a/test/vhost/hotplug/scsi_hotattach.sh +++ b/test/vhost/hotplug/scsi_hotattach.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/vhost/hotplug/scsi_hotdetach.sh b/test/vhost/hotplug/scsi_hotdetach.sh index 8a7cb264f..ac3827eff 100755 --- a/test/vhost/hotplug/scsi_hotdetach.sh +++ b/test/vhost/hotplug/scsi_hotdetach.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/vhost/hotplug/scsi_hotplug.sh b/test/vhost/hotplug/scsi_hotplug.sh index 173078fff..a74a19bb2 100755 --- a/test/vhost/hotplug/scsi_hotplug.sh +++ b/test/vhost/hotplug/scsi_hotplug.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/vhost/hotplug/scsi_hotremove.sh b/test/vhost/hotplug/scsi_hotremove.sh index 1dee4ac7f..672ea40b5 100644 --- a/test/vhost/hotplug/scsi_hotremove.sh +++ b/test/vhost/hotplug/scsi_hotremove.sh @@ -1,3 +1,8 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# + set -xe # Vhost SCSI hotremove tests diff --git a/test/vhost/initiator/blockdev.sh b/test/vhost/initiator/blockdev.sh index 082911841..17186dc5d 100755 --- a/test/vhost/initiator/blockdev.sh +++ b/test/vhost/initiator/blockdev.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/vhost/integrity/integrity_start.sh b/test/vhost/integrity/integrity_start.sh index c72404575..229a3c4aa 100755 --- a/test/vhost/integrity/integrity_start.sh +++ b/test/vhost/integrity/integrity_start.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2016 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/vhost/integrity/integrity_vm.sh b/test/vhost/integrity/integrity_vm.sh index 74a9c1581..03a6af338 100755 --- a/test/vhost/integrity/integrity_vm.sh +++ b/test/vhost/integrity/integrity_vm.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2016 Intel Corporation +# All rights reserved. +# set -xe err_wipe() { diff --git a/test/vhost/lvol/lvol_test.sh b/test/vhost/lvol/lvol_test.sh index fda77acc7..cb8299602 100755 --- a/test/vhost/lvol/lvol_test.sh +++ b/test/vhost/lvol/lvol_test.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/vhost/manual.sh b/test/vhost/manual.sh index 1d6da4732..0eba908af 100755 --- a/test/vhost/manual.sh +++ b/test/vhost/manual.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/vhost/migration/migration-tc1.sh b/test/vhost/migration/migration-tc1.sh index 3ad86bd5c..2d84c4df7 100644 --- a/test/vhost/migration/migration-tc1.sh +++ b/test/vhost/migration/migration-tc1.sh @@ -1,3 +1,8 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# + function migration_tc1_clean_vhost_config() { # Restore trap trap 'error_exit "${FUNCNAME}" "${LINENO}"' INT ERR EXIT diff --git a/test/vhost/migration/migration-tc2.sh b/test/vhost/migration/migration-tc2.sh index e848a4438..aae24946e 100644 --- a/test/vhost/migration/migration-tc2.sh +++ b/test/vhost/migration/migration-tc2.sh @@ -1,3 +1,8 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# + source $rootdir/test/nvmf/common.sh function migration_tc2_cleanup_nvmf_tgt() { diff --git a/test/vhost/migration/migration.sh b/test/vhost/migration/migration.sh index 8f461e6ca..0af631aab 100755 --- a/test/vhost/migration/migration.sh +++ b/test/vhost/migration/migration.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/vhost/other/negative.sh b/test/vhost/other/negative.sh index f7cc5b7b8..ced80fa36 100755 --- a/test/vhost/other/negative.sh +++ b/test/vhost/other/negative.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/vhost/perf_bench/vhost_perf.sh b/test/vhost/perf_bench/vhost_perf.sh index 02dd1adfe..a2305ac18 100755 --- a/test/vhost/perf_bench/vhost_perf.sh +++ b/test/vhost/perf_bench/vhost_perf.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/vhost/readonly/delete_partition_vm.sh b/test/vhost/readonly/delete_partition_vm.sh index e5f183fc1..032f9736a 100755 --- a/test/vhost/readonly/delete_partition_vm.sh +++ b/test/vhost/readonly/delete_partition_vm.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# set -xe testdir=$(readlink -f $(dirname $0)) diff --git a/test/vhost/readonly/disabled_readonly_vm.sh b/test/vhost/readonly/disabled_readonly_vm.sh index 92c2c1a39..f0809003b 100755 --- a/test/vhost/readonly/disabled_readonly_vm.sh +++ b/test/vhost/readonly/disabled_readonly_vm.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# set -xe testdir=$(readlink -f $(dirname $0)) diff --git a/test/vhost/readonly/enabled_readonly_vm.sh b/test/vhost/readonly/enabled_readonly_vm.sh index 939af6f08..487731b04 100755 --- a/test/vhost/readonly/enabled_readonly_vm.sh +++ b/test/vhost/readonly/enabled_readonly_vm.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# set -x testdir=$(readlink -f $(dirname $0)) diff --git a/test/vhost/readonly/readonly.sh b/test/vhost/readonly/readonly.sh index 9ae8132cd..e46f5cdde 100755 --- a/test/vhost/readonly/readonly.sh +++ b/test/vhost/readonly/readonly.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/vhost/shared/shared.sh b/test/vhost/shared/shared.sh index b868dfea0..442eff37f 100755 --- a/test/vhost/shared/shared.sh +++ b/test/vhost/shared/shared.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/vhost/vhost.sh b/test/vhost/vhost.sh index 4d6deabbc..bb3165b62 100755 --- a/test/vhost/vhost.sh +++ b/test/vhost/vhost.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/vhost/vhost_boot/vhost_boot.sh b/test/vhost/vhost_boot/vhost_boot.sh index d7a525ad3..20e58e8d8 100755 --- a/test/vhost/vhost_boot/vhost_boot.sh +++ b/test/vhost/vhost_boot/vhost_boot.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation +# All rights reserved. +# set -xe testdir=$(readlink -f $(dirname $0)) diff --git a/test/vhost/windows/windows_scsi_compliance.sh b/test/vhost/windows/windows_scsi_compliance.sh index a7933330f..8f17407fe 100755 --- a/test/vhost/windows/windows_scsi_compliance.sh +++ b/test/vhost/windows/windows_scsi_compliance.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/vmd/vmd.sh b/test/vmd/vmd.sh index 88f648b4a..c8a678021 100755 --- a/test/vmd/vmd.sh +++ b/test/vmd/vmd.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash - +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation +# All rights reserved. +# testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/scripts/common.sh