From e356ddf789275d007ceb4859060811fb5e5ad551 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 27 Sep 2025 02:43:08 +0000 Subject: [PATCH] Initial assessment: symlink command already implemented, needs tests and documentation Co-authored-by: imjasonh <210737+imjasonh@users.noreply.github.com> --- test_symlink.rs | 9 +++++++++ testdata/test_symlink.txt | 8 ++++++++ 2 files changed, 17 insertions(+) create mode 100644 test_symlink.rs create mode 100644 testdata/test_symlink.txt diff --git a/test_symlink.rs b/test_symlink.rs new file mode 100644 index 0000000..c828ff7 --- /dev/null +++ b/test_symlink.rs @@ -0,0 +1,9 @@ +use testscript_rs::testscript; + +#[test] +fn test_symlink() { + testscript::run("/tmp") + .filter_file("test_symlink.txtar") + .execute() + .unwrap(); +} diff --git a/testdata/test_symlink.txt b/testdata/test_symlink.txt new file mode 100644 index 0000000..cc8a412 --- /dev/null +++ b/testdata/test_symlink.txt @@ -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 \ No newline at end of file