1
0
Fork 0
mirror of https://github.com/imjasonh/testscript-rs synced 2026-07-11 10:29:28 +00:00

Implement network and advanced condition support

Co-authored-by: imjasonh <210737+imjasonh@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-09-27 01:56:58 +00:00
parent 8f82c9c11b
commit 26a39e2384
8 changed files with 335 additions and 3 deletions

16
testdata/program_conditions.txt vendored Normal file
View file

@ -0,0 +1,16 @@
# Test program detection conditions
# Test that echo is available (should work on all platforms)
[exec:echo] exec echo "echo command is available"
[exec:echo] stdout "echo command is available"
# Test negation for a program that shouldn't exist
[!exec:nonexistent_program_xyz123] exec echo "nonexistent program not found"
[!exec:nonexistent_program_xyz123] stdout "nonexistent program not found"
# Test built-in program detections that are set by default
[exec:ls] exec echo "ls command detected"
[exec:mkdir] exec echo "mkdir command detected"
# At least mkdir should work since it's tested
[exec:mkdir] stdout "mkdir command detected"