
* endif * just fix every profile * WHY YOU DONT JUST USE THE SAME NAME FOR DIR * fix * Some fuzzer want release * WHY I ALWAYS FORGET COMMA * NO MORE SPACE * rename * stb doesn't like debug build * just use release * another just use release
60 lines
1.3 KiB
TOML
60 lines
1.3 KiB
TOML
[env]
|
|
PROFILE = { value = "release", condition = {env_not_set = ["PROFILE"]} }
|
|
PROFILE_DIR = {value = "release", condition = {env_not_set = ["PROFILE_DIR"] }}
|
|
|
|
[tasks.unsupported]
|
|
script_runner="@shell"
|
|
script='''
|
|
echo "Cargo-make not integrated yet on this"
|
|
'''
|
|
|
|
# Harness
|
|
[tasks.harness]
|
|
linux_alias = "unsupported"
|
|
mac_alias = "unsupported"
|
|
windows_alias = "harness_windows"
|
|
|
|
[tasks.harness_windows]
|
|
script='''
|
|
cl test\test.cpp -o test.exe
|
|
'''
|
|
|
|
# Fuzzer
|
|
[tasks.fuzzer]
|
|
linux_alias = "unsupported"
|
|
mac_alias = "unsupported"
|
|
windows_alias = "fuzzer_windows"
|
|
|
|
[tasks.fuzzer_windows]
|
|
dependencies = ["harness"]
|
|
command = "cargo"
|
|
args = ["build", "--profile", "${PROFILE}"]
|
|
|
|
# Run the fuzzer
|
|
[tasks.run]
|
|
linux_alias = "unsupported"
|
|
mac_alias = "unsupported"
|
|
windows_alias = "run_windows"
|
|
|
|
[tasks.run_windows]
|
|
dependencies = ["harness", "fuzzer"]
|
|
command = "cargo"
|
|
args = ["run", "--profile", "${PROFILE}"]
|
|
|
|
|
|
# Run the fuzzer
|
|
[tasks.test]
|
|
linux_alias = "unsupported"
|
|
mac_alias = "unsupported"
|
|
windows_alias = "test_windows"
|
|
|
|
[tasks.test_windows]
|
|
script_runner = "@shell"
|
|
script='''
|
|
copy .\target\${PROFILE_DIR}\tinyinst_simple.exe .
|
|
start "" "tinyinst_simple.exe"
|
|
#ping is for timeout
|
|
ping -n 10 127.0.0.1>NUL && taskkill /im tinyinst_simple.exe /F
|
|
>nul 2>nul dir /a-d "corpus_discovered\*" && (echo Files exist) || (exit /b 1337)
|
|
'''
|
|
dependencies = [ "harness", "fuzzer" ] |