make t1123 the example standard

This commit is contained in:
Brian Beyer
2018-04-25 11:05:34 -06:00
parent 55d9b37b22
commit 81d84a4e26
3 changed files with 27 additions and 8 deletions
+13 -6
View File
@@ -6,19 +6,26 @@ atomic_tests:
- name: SourceRecorder via cmd.exe
description: |
Create a file called test.wma, with the duration of 30 seconds
supported_platforms:
- windows
executor: command_prompt
args:
- output_file: test.wma
- duration_hms: 0000:00:30
command: cmd.exe /c "SoundRecorder /FILE #{output_file} /DURATION #{duration_hms}"
output_file:
default: test.wma
duration_hms:
default: 0000:00:30
executors:
- name: command_prompt
command: SoundRecorder /FILE #{output_file} /DURATION #{duration_hms}
- name: PowerShell Cmdlet
description: |
[AudioDeviceCmdlets](https://github.com/cdhunt/WindowsAudioDevice-Powershell-Cmdlet)
supported_platforms:
- windows
executor: powershell
args:
command: powershell.exe xxxxx
executors:
- name: command_prompt
command: powershell.exe -Command WindowsAudioDevice-Powershell-Cmdlet
+6 -2
View File
@@ -10,8 +10,12 @@ atomic_tests:
- linux
executor: sh
args:
- key_filename: rootCA.key
- cert_filename: rootCA.crt
key_filename:
type: filename
default: rootCA.key
cert_filename:
type: filename
default: rootCA.crt
command: |
openssl genrsa -out #{key_filename} 4096
openssl req -x509 -new -nodes -key #{key_filename} -sha256 -days 365 -out #{cert_filename}
+8
View File
@@ -0,0 +1,8 @@
#!/usr/bin/env ruby
require 'ostruct'
require 'yaml'
Dir["#{File.dirname __FILE__}/../atomics/**/t*.yaml"].each do |technique_file|
technique = OpenStruct.new YAML.load(File.read(technique_file))
p technique.display_name
end