Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
128 changes: 128 additions & 0 deletions .azuredevops/pipelines/DirectXTK-OneFuzz-Audio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
# https://go.microsoft.com/fwlink/?LinkId=248929

# Builds the library using CMake and submit for file fuzzing for audio formats

schedules:
- cron: "0 11 10 * *"
displayName: 'Submit for File Fuzzing (Monthly)'
branches:
include:
- main
always: true

trigger: none
pr: none

resources:
repositories:
- repository: self
type: git
ref: refs/heads/main
- repository: testRepo
name: walbourn/directxtktest
type: github
endpoint: microsoft
ref: refs/heads/main

name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)

variables:
Codeql.Enabled: false
VS_GENERATOR: 'Visual Studio 17 2022'
WIN11_SDK: '10.0.22000.0'

pool:
vmImage: windows-2022

jobs:
- job: FUZZ_BUILD
displayName: 'Build for file fuzzing (WAV, XWB)'
steps:
- checkout: self
clean: true
fetchTags: false
fetchDepth: 1
path: 's'
- checkout: testRepo
displayName: Fetch Tests
clean: true
fetchTags: false
fetchDepth: 1
path: 's/Tests'
- task: CMake@1
displayName: 'CMake (MSVC): Config with ASan'
inputs:
cwd: $(Build.SourcesDirectory)
cmakeArgs: >
-G "$(VS_GENERATOR)" -A x64 -B out
-DCMAKE_SYSTEM_VERSION=$(WIN11_SDK)
-DBUILD_TOOLS=OFF -DBUILD_XAUDIO_WIN10=ON -DBUILD_FUZZING=ON -DBUILD_TESTING=OFF
-DBUILD_AUDIO_FUZZING=ON
- task: CMake@1
displayName: 'CMake (MSVC): Build with ASan'
inputs:
cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out -v --config RelWithDebInfo
- task: CopyFiles@2
displayName: Copy fuzzer
inputs:
Contents: |
build\OneFuzzConfig.json
out\bin\RelWithDebInfo\fuzzloaders.exe
TargetFolder: .drop
OverWrite: true
flattenFolders: true
- task: CopyFiles@2
displayName: Copy symbols
inputs:
Contents: |
out\bin\RelWithDebInfo\fuzzloaders.pdb
TargetFolder: .drop\symbols
OverWrite: true
flattenFolders: true
- task: CopyFiles@2
displayName: Copy seed files
inputs:
Contents: |
Tests\BasicAudioTest\Alarm01.wav
Tests\BasicAudioTest\Alarm01_adpcm.wav
Tests\BasicAudioTest\Alarm01_float.wav
Tests\BasicAudioTest\Alarm01_xwma.wav
Tests\BasicAudioTest\ADPCMdroid.xwb
Tests\BasicAudioTest\wavebank.xwb
Tests\BasicAudioTest\xwmadroid.xwb
TargetFolder: .drop\seeds
OverWrite: true
flattenFolders: true

- task: PowerShell@2
displayName: Copy OneFuzz setup script
inputs:
targetType: 'inline'
script: |
Copy-Item -Path .\build\onefuzz-setup.ps1 -Destination .drop/setup.ps1

- task: MSBuild@1
displayName: 'Copy ASan binaries'
inputs:
solution: build/CopyASAN.targets
msbuildArguments: /p:TargetFolder=$(Build.SourcesDirectory)\.drop
msbuildVersion: 17.0
msbuildArchitecture: x64
- task: PowerShell@2
displayName: List drop files
inputs:
targetType: inline
script: |
Get-ChildItem ".drop" -Recurse | select FullName

- task: onefuzz-task@0
displayName: 'Submit to OneFuzz'
inputs:
onefuzzOSes: 'Windows'
env:
onefuzzDropDirectory: $(Build.SourcesDirectory)\.drop
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
128 changes: 128 additions & 0 deletions .azuredevops/pipelines/DirectXTK-OneFuzz-Meshes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
# https://go.microsoft.com/fwlink/?LinkId=248929

# Builds the library using CMake and submit for file fuzzing for meshes

schedules:
- cron: "0 11 20 * *"
displayName: 'Submit for File Fuzzing (Monthly)'
branches:
include:
- main
always: true

trigger: none
pr: none

resources:
repositories:
- repository: self
type: git
ref: refs/heads/main
- repository: testRepo
name: walbourn/directxtktest
type: github
endpoint: microsoft
ref: refs/heads/main

name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)

variables:
Codeql.Enabled: false
VS_GENERATOR: 'Visual Studio 17 2022'
WIN11_SDK: '10.0.22000.0'

pool:
vmImage: windows-2022

jobs:
- job: FUZZ_BUILD
displayName: 'Build for file fuzzing (CMO, SDKMESH, VBO)'
steps:
- checkout: self
clean: true
fetchTags: false
fetchDepth: 1
path: 's'
- checkout: testRepo
displayName: Fetch Tests
clean: true
fetchTags: false
fetchDepth: 1
path: 's/Tests'
- task: CMake@1
displayName: 'CMake (MSVC): Config with ASan'
inputs:
cwd: $(Build.SourcesDirectory)
cmakeArgs: >
-G "$(VS_GENERATOR)" -A x64 -B out
-DCMAKE_SYSTEM_VERSION=$(WIN11_SDK)
-DBUILD_TOOLS=OFF -DBUILD_XAUDIO_WIN10=ON -DBUILD_FUZZING=ON -DBUILD_TESTING=OFF
-DBUILD_MESH_FUZZING=ON
- task: CMake@1
displayName: 'CMake (MSVC): Build with ASan'
inputs:
cwd: $(Build.SourcesDirectory)
cmakeArgs: --build out -v --config RelWithDebInfo
- task: CopyFiles@2
displayName: Copy fuzzer
inputs:
Contents: |
build\OneFuzzConfig.json
out\bin\RelWithDebInfo\fuzzloaders.exe
TargetFolder: .drop
OverWrite: true
flattenFolders: true
- task: CopyFiles@2
displayName: Copy symbols
inputs:
Contents: |
out\bin\RelWithDebInfo\fuzzloaders.pdb
TargetFolder: .drop\symbols
OverWrite: true
flattenFolders: true
- task: CopyFiles@2
displayName: Copy seed files
inputs:
Contents: |
Tests\AnimTest\teapot.cmo
Tests\DGSLTest\teapot_unlit.cmo
Tests\ModelTest\cup.sdkmesh
Tests\AnimTest\soldier.sdkmesh
Tests\PBRModelTest\BrokenCube.sdkmesh
Tests\ModelTest\player_ship_a.vbo
Tests\PBRTest\BrokenCube.vbo
TargetFolder: .drop\seeds
OverWrite: true
flattenFolders: true

- task: PowerShell@2
displayName: Copy OneFuzz setup script
inputs:
targetType: 'inline'
script: |
Copy-Item -Path .\build\onefuzz-setup.ps1 -Destination .drop/setup.ps1

- task: MSBuild@1
displayName: 'Copy ASan binaries'
inputs:
solution: build/CopyASAN.targets
msbuildArguments: /p:TargetFolder=$(Build.SourcesDirectory)\.drop
msbuildVersion: 17.0
msbuildArchitecture: x64
- task: PowerShell@2
displayName: List drop files
inputs:
targetType: inline
script: |
Get-ChildItem ".drop" -Recurse | select FullName

- task: onefuzz-task@0
displayName: 'Submit to OneFuzz'
inputs:
onefuzzOSes: 'Windows'
env:
onefuzzDropDirectory: $(Build.SourcesDirectory)\.drop
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
24 changes: 6 additions & 18 deletions .azuredevops/pipelines/DirectXTK-OneFuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# https://go.microsoft.com/fwlink/?LinkId=248929

# Builds the library using CMake and submit for file fuzzing
# Builds the library using CMake and submit for file fuzzing for texture loading

schedules:
- cron: "0 11 1 * *"
Expand Down Expand Up @@ -39,7 +39,7 @@ pool:

jobs:
- job: FUZZ_BUILD
displayName: 'Build for file fuzzing'
displayName: 'Build for file fuzzing (DDS)'
steps:
- checkout: self
clean: true
Expand All @@ -56,7 +56,10 @@ jobs:
displayName: 'CMake (MSVC): Config with ASan'
inputs:
cwd: $(Build.SourcesDirectory)
cmakeArgs: '-G "$(VS_GENERATOR)" -A x64 -B out -DCMAKE_SYSTEM_VERSION=$(WIN11_SDK) -DBUILD_TOOLS=OFF -DBUILD_XAUDIO_WIN10=ON -DBUILD_FUZZING=ON -DBUILD_TESTING=OFF'
cmakeArgs: >
-G "$(VS_GENERATOR)" -A x64 -B out
-DCMAKE_SYSTEM_VERSION=$(WIN11_SDK)
-DBUILD_TOOLS=OFF -DBUILD_XAUDIO_WIN10=ON -DBUILD_FUZZING=ON -DBUILD_TESTING=OFF
- task: CMake@1
displayName: 'CMake (MSVC): Build with ASan'
inputs:
Expand Down Expand Up @@ -101,21 +104,6 @@ jobs:
Invoke-WebRequest -Uri $url -OutFile $target
}

- task: CopyFiles@2
displayName: Copy audio seed files
inputs:
Contents: |
Tests\BasicAudioTest\Alarm01.wav
Tests\BasicAudioTest\Alarm01_adpcm.wav
Tests\BasicAudioTest\Alarm01_float.wav
Tests\BasicAudioTest\Alarm01_xwma.wav
Tests\BasicAudioTest\ADPCMdroid.xwb
Tests\BasicAudioTest\wavebank.xwb
Tests\BasicAudioTest\xwmadroid.xwb
TargetFolder: .drop\seeds
OverWrite: true
flattenFolders: true

- task: PowerShell@2
displayName: Copy OneFuzz setup script
inputs:
Expand Down
Loading