Skip to content

Commit

Permalink
Test case
Browse files Browse the repository at this point in the history
  • Loading branch information
sourishkrout committed Feb 14, 2025
1 parent 6e849c0 commit 97606c4
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions testdata/script/daggershell.txtar
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
exec runme ls
cmp stdout golden-list.txt
! stderr .

exec runme ls --json
cmp stdout golden-list-json.txt
! stderr .

env SHELL=/bin/bash
exec runme run simple_dagger
stdout 'digest\: sha256'
stdout 'name\: README\.md'
stdout 'size\: '

-- shell.dag --
---
shell: dagger shell
---

```sh {"name":"simple_dagger","terminalRows":"18"}
### Exported in runme.dev as simple_dagger
git github.com/stateful/runme |
head |
tree |
file examples/README.md
```

-- golden-list.txt --
NAME FILE FIRST COMMAND DESCRIPTION NAMED
simple_dagger* shell.dag git github.com/stateful/runme | Yes
-- golden-list-allow-unnamed.txt --
NAME FILE FIRST COMMAND DESCRIPTION NAMED
-- golden-list-json.txt --
[
{
"name": "simple_dagger",
"file": "shell.dag",
"first_command": "git github.com/stateful/runme |",
"description": "",
"named": true,
"run_all": true
}
]

0 comments on commit 97606c4

Please sign in to comment.