Skip to content

Commit

Permalink
include: move test suite specific files to programs dir
Browse files Browse the repository at this point in the history
Signed-off-by: Philip Li <[email protected]>
  • Loading branch information
rli9 committed Nov 28, 2024
1 parent 49c30a6 commit e0077dd
Show file tree
Hide file tree
Showing 51 changed files with 20 additions and 8 deletions.
1 change: 0 additions & 1 deletion include/perf-stat

This file was deleted.

14 changes: 11 additions & 3 deletions lib/job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -269,13 +269,21 @@ def include_files
Dir["#{lkp_src}/include/*"].map do |d|
key = File.basename d
@include_files[key] = {}

Dir["#{lkp_src}/include/#{key}",
"#{lkp_src}/include/#{key}/*"].each do |f|
next if File.directory? f
next if File.directory? f

@include_files[key][File.basename(f)] = f
end
@include_files[key][File.basename(f)] = f
end
end

Dir["#{lkp_src}/programs/*/include"].map do |f|
key = File.basename(File.dirname(f))
@include_files[key] = {}
@include_files[key][key] = f
end

@include_files
end

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion programs/kernel-selftests-bpf

This file was deleted.

File renamed without changes.
1 change: 1 addition & 0 deletions programs/kernel-selftests-bpf/parse
1 change: 1 addition & 0 deletions programs/kernel-selftests-bpf/pkg
1 change: 1 addition & 0 deletions programs/kernel-selftests-bpf/run
1 change: 0 additions & 1 deletion programs/kernel-selftests-rust

This file was deleted.

File renamed without changes.
1 change: 1 addition & 0 deletions programs/kernel-selftests-rust/parse
1 change: 1 addition & 0 deletions programs/kernel-selftests-rust/pkg
1 change: 1 addition & 0 deletions programs/kernel-selftests-rust/run
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions programs/perf-stat/include
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions spec/need_kconfig_format_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def is_erb_file(file_path)

describe 'Check need_kconfig from' do
# Check the config format in include/ dir
files = Dir.glob("#{LKP_SRC}/include/**/*").select { |file| File.file?(file) }
files.each do |file|
Dir["#{LKP_SRC}/include/**/*", "#{LKP_SRC}/programs/*/include"].select { |file| File.file?(file) }
.each do |file|
begin
yaml_data = load_yaml_with_conditionals(file)
# next if yaml_data.nil? || !yaml_data.is_a?(Hash) || is_erb_file(file)
Expand Down

0 comments on commit e0077dd

Please sign in to comment.