1
0
Fork 0
mirror of https://github.com/imjasonh/testscript-rs synced 2026-07-08 17:16:38 +00:00

Initial assessment: symlink command already implemented, needs tests and documentation

Co-authored-by: imjasonh <210737+imjasonh@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-09-27 02:43:08 +00:00
parent 569c4307de
commit e356ddf789
2 changed files with 17 additions and 0 deletions

9
test_symlink.rs Normal file
View file

@ -0,0 +1,9 @@
use testscript_rs::testscript;
#[test]
fn test_symlink() {
testscript::run("/tmp")
.filter_file("test_symlink.txtar")
.execute()
.unwrap();
}

8
testdata/test_symlink.txt vendored Normal file
View file

@ -0,0 +1,8 @@
# Test symlink functionality
symlink original.txt link.txt
exists link.txt
exec cat link.txt
stdout "original content"
-- original.txt --
original content