-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testsuite: add unit test for module overriding
This test is like the "replace" test, but it uses depmods's built-in priority logic by copying the replacement modules into the "updates" subdirectory. "depmod -I -a" is expected to detect this change. Signed-off-by: Martin Wilck <[email protected]>
- Loading branch information
Showing
17 changed files
with
126 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
testsuite/rootfs-pristine/test-depmod/big-01-override/lib/modules/5.3.18/correct-modules.dep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
kernel/drivers/md/dm-multipath.ko: kernel/drivers/md/dm-mod.ko kernel/drivers/scsi/scsi_mod.ko | ||
updates/qla2xxx.ko: kernel/drivers/nvme/host/nvme-fc.ko kernel/drivers/scsi/scsi_transport_fc.ko kernel/drivers/nvme/host/nvme-fabrics.ko kernel/drivers/scsi/scsi_mod.ko kernel/drivers/nvme/host/nvme-core.ko kernel/block/t10-pi.ko | ||
kernel/drivers/nvme/host/nvme-fc.ko: kernel/drivers/nvme/host/nvme-fabrics.ko kernel/drivers/nvme/host/nvme-core.ko kernel/block/t10-pi.ko | ||
kernel/drivers/nvme/host/nvme-fabrics.ko: kernel/drivers/nvme/host/nvme-core.ko kernel/block/t10-pi.ko | ||
kernel/drivers/scsi/scsi_mod.ko: | ||
kernel/drivers/scsi/ses.ko: kernel/drivers/misc/enclosure.ko kernel/drivers/scsi/scsi_transport_sas.ko kernel/drivers/scsi/scsi_mod.ko | ||
kernel/drivers/scsi/scsi_transport_sas.ko: kernel/drivers/scsi/scsi_mod.ko | ||
kernel/drivers/scsi/mpt3sas.ko: kernel/drivers/scsi/raid_class.ko kernel/drivers/scsi/scsi_transport_sas.ko kernel/drivers/scsi/scsi_mod.ko | ||
kernel/drivers/md/dm-mod.ko: | ||
kernel/drivers/nvme/host/nvme-core.ko: kernel/block/t10-pi.ko | ||
updates/tcm_qla2xxx.ko: updates/qla2xxx.ko kernel/drivers/target/target_core_mod.ko kernel/fs/configfs/configfs.ko kernel/drivers/nvme/host/nvme-fc.ko kernel/drivers/scsi/scsi_transport_fc.ko kernel/drivers/nvme/host/nvme-fabrics.ko kernel/drivers/scsi/scsi_mod.ko kernel/drivers/nvme/host/nvme-core.ko kernel/block/t10-pi.ko | ||
kernel/drivers/misc/enclosure.ko: | ||
kernel/drivers/scsi/raid_class.ko: kernel/drivers/scsi/scsi_mod.ko | ||
kernel/drivers/md/dm-service-time.ko: kernel/drivers/md/dm-mod.ko kernel/drivers/scsi/scsi_mod.ko | ||
kernel/drivers/target/target_core_mod.ko: kernel/fs/configfs/configfs.ko | ||
kernel/drivers/scsi/sr_mod.ko: kernel/drivers/cdrom/cdrom.ko kernel/drivers/scsi/scsi_mod.ko | ||
kernel/drivers/scsi/sd_mod.ko: kernel/drivers/scsi/scsi_mod.ko kernel/block/t10-pi.ko | ||
kernel/drivers/scsi/device_handler/scsi_dh_alua.ko: kernel/drivers/scsi/scsi_mod.ko | ||
kernel/drivers/cdrom/cdrom.ko: | ||
kernel/block/t10-pi.ko: | ||
kernel/drivers/scsi/scsi_transport_fc.ko: kernel/drivers/scsi/scsi_mod.ko | ||
kernel/fs/configfs/configfs.ko: |
Binary file added
BIN
+2.95 KB
...te/rootfs-pristine/test-depmod/big-01-override/lib/modules/5.3.18/correct-modules.dep.bin
Binary file not shown.
28 changes: 28 additions & 0 deletions
28
...te/rootfs-pristine/test-depmod/big-01-override/lib/modules/5.3.18/correct-modules.symbols
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Aliases for symbols, used by symbol_request(). | ||
alias symbol:scsi_target_block_mangled scsi_mod | ||
alias symbol:scsi_remove_host_mangled scsi_mod | ||
alias symbol:t10_pi_type1_crc_mangled t10_pi | ||
alias symbol:scsi_is_sas_rphy_mangled scsi_transport_sas | ||
alias symbol:scsi_dh_attach_mangled scsi_mod | ||
alias symbol:nvme_fc_set_remoteport_devloss_mangled nvme_fc | ||
alias symbol:target_backend_unregister_mangled target_core_mod | ||
alias symbol:scsi_host_get_mangled scsi_mod | ||
alias symbol:__scsi_iterate_devices_mangled scsi_mod | ||
alias symbol:target_execute_cmd_mangled target_core_mod | ||
alias symbol:sas_enable_tlr_mangled scsi_transport_sas | ||
alias symbol:fc_attach_transport_mangled scsi_transport_fc | ||
alias symbol:register_cdrom_mangled cdrom | ||
alias symbol:fc_vport_create_mangled scsi_transport_fc | ||
alias symbol:scsi_print_sense_hdr_mangled scsi_mod | ||
alias symbol:scsi_dma_map_mangled scsi_mod | ||
alias symbol:scsi_is_sdev_device_mangled scsi_mod | ||
alias symbol:nvme_complete_rq_mangled nvme_core | ||
alias symbol:dm_unregister_path_selector_mangled dm_service_time | ||
alias symbol:raid_class_attach_mangled raid_class | ||
alias symbol:enclosure_remove_device_mangled enclosure | ||
alias symbol:scsi_mode_sense_mangled scsi_mod | ||
alias symbol:qlt_stop_phase2_mangled qla2xxx | ||
alias symbol:dm_table_run_md_queue_async_mangled dm_mod | ||
alias symbol:nvmf_fail_nonready_command_mangled nvme_fabrics | ||
alias symbol:nvme_uninit_ctrl_mangled nvme_core | ||
alias symbol:config_group_init_mangled configfs |
Binary file added
BIN
+2.12 KB
...ootfs-pristine/test-depmod/big-01-override/lib/modules/5.3.18/correct-modules.symbols.bin
Binary file not shown.
1 change: 1 addition & 0 deletions
1
testsuite/rootfs-pristine/test-depmod/big-01-override/lib/modules/5.3.18/modules.alias
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Aliases extracted from modules themselves. |
Binary file added
BIN
+12 Bytes
testsuite/rootfs-pristine/test-depmod/big-01-override/lib/modules/5.3.18/modules.alias.bin
Binary file not shown.
1 change: 1 addition & 0 deletions
1
testsuite/rootfs-pristine/test-depmod/big-01-override/lib/modules/5.3.18/modules.dep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../big-01/lib/modules/5.3.18/correct-modules.dep |
1 change: 1 addition & 0 deletions
1
testsuite/rootfs-pristine/test-depmod/big-01-override/lib/modules/5.3.18/modules.dep.bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../big-01/lib/modules/5.3.18/correct-modules.dep.bin |
Empty file.
1 change: 1 addition & 0 deletions
1
testsuite/rootfs-pristine/test-depmod/big-01-override/lib/modules/5.3.18/modules.softdep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Soft dependencies extracted from modules themselves. |
1 change: 1 addition & 0 deletions
1
testsuite/rootfs-pristine/test-depmod/big-01-override/lib/modules/5.3.18/modules.symbols
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../big-01/lib/modules/5.3.18/correct-modules.symbols |
1 change: 1 addition & 0 deletions
1
testsuite/rootfs-pristine/test-depmod/big-01-override/lib/modules/5.3.18/modules.symbols.bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../big-01/lib/modules/5.3.18/correct-modules.symbols.bin |
1 change: 1 addition & 0 deletions
1
testsuite/rootfs-pristine/test-depmod/big-01-override/lib/modules/5.3.18/modules.weakdep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Weak dependencies extracted from modules themselves. |
Binary file added
BIN
+2.12 KB
...ristine/test-depmod/big-01-override/lib/modules/5.3.18/novers-correct-modules.symbols.bin
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...rootfs-pristine/test-depmod/big-01-override/lib/modules/5.3.18/novers-modules.symbols.bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../big-01/lib/modules/5.3.18/novers-correct-modules.symbols.bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters