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:
parent
569c4307de
commit
e356ddf789
2 changed files with 17 additions and 0 deletions
9
test_symlink.rs
Normal file
9
test_symlink.rs
Normal 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
8
testdata/test_symlink.txt
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue