├── .github └── workflows │ └── ci.yml ├── .gitignore ├── CHANGELOG.md ├── LICENSE ├── Makefile ├── README.md ├── pyproject.toml ├── test ├── basic │ ├── args.out │ ├── args.t │ ├── bad.err │ ├── bad.t │ ├── cmd.out │ ├── cmd.t │ ├── hello.out │ ├── hello.t │ ├── multi-output.out │ ├── multi-output.t │ ├── multi-output.txt │ ├── todo.out │ ├── todo.t │ └── turnt.toml ├── binary │ ├── bin.out │ ├── bin.t │ └── turnt.toml ├── dirtest │ ├── bar.t │ │ ├── opts.txt │ │ ├── out.out │ │ └── test.in │ ├── foo.t │ │ ├── out.out │ │ └── test.in │ └── turnt.toml ├── errors │ ├── bad.out │ ├── bad.t │ └── turnt.toml ├── multi-output │ ├── bad.err │ ├── bad.t │ ├── multi-output.out │ ├── multi-output.t │ ├── multi-output.txt │ ├── other_file.txt │ └── turnt.toml ├── multienv │ ├── something.out │ ├── something.out3 │ ├── something.t │ └── turnt.toml ├── out-dir │ ├── expected │ │ └── something.out │ ├── something.t │ └── turnt.toml ├── subdir │ ├── example.out │ └── example.t └── turnt.toml └── turnt.py /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cucapra/turnt/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | dist/ 2 | test/basic/other_file.txt 3 | __pycache__ 4 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cucapra/turnt/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cucapra/turnt/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cucapra/turnt/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cucapra/turnt/HEAD/README.md -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cucapra/turnt/HEAD/pyproject.toml -------------------------------------------------------------------------------- /test/basic/args.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cucapra/turnt/HEAD/test/basic/args.out -------------------------------------------------------------------------------- /test/basic/args.t: -------------------------------------------------------------------------------- 1 | // ARGS: extra arguments 2 | more text 3 | -------------------------------------------------------------------------------- /test/basic/bad.err: -------------------------------------------------------------------------------- 1 | exiting 2 | -------------------------------------------------------------------------------- /test/basic/bad.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cucapra/turnt/HEAD/test/basic/bad.t -------------------------------------------------------------------------------- /test/basic/cmd.out: -------------------------------------------------------------------------------- 1 | different command 2 | -------------------------------------------------------------------------------- /test/basic/cmd.t: -------------------------------------------------------------------------------- 1 | // CMD: echo different command 2 | this should be ignored 3 | -------------------------------------------------------------------------------- /test/basic/hello.out: -------------------------------------------------------------------------------- 1 | hello 2 | hi 3 | -------------------------------------------------------------------------------- /test/basic/hello.t: -------------------------------------------------------------------------------- 1 | hi 2 | -------------------------------------------------------------------------------- /test/basic/multi-output.out: -------------------------------------------------------------------------------- 1 | foo 2 | -------------------------------------------------------------------------------- /test/basic/multi-output.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cucapra/turnt/HEAD/test/basic/multi-output.t -------------------------------------------------------------------------------- /test/basic/multi-output.txt: -------------------------------------------------------------------------------- 1 | bar 2 | -------------------------------------------------------------------------------- /test/basic/todo.out: -------------------------------------------------------------------------------- 1 | the wrong output! 2 | -------------------------------------------------------------------------------- /test/basic/todo.t: -------------------------------------------------------------------------------- 1 | // TODO: true 2 | something 3 | -------------------------------------------------------------------------------- /test/basic/turnt.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cucapra/turnt/HEAD/test/basic/turnt.toml -------------------------------------------------------------------------------- /test/binary/bin.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cucapra/turnt/HEAD/test/binary/bin.out -------------------------------------------------------------------------------- /test/binary/bin.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cucapra/turnt/HEAD/test/binary/bin.t -------------------------------------------------------------------------------- /test/binary/turnt.toml: -------------------------------------------------------------------------------- 1 | command = "cat {filename}" 2 | binary = true 3 | -------------------------------------------------------------------------------- /test/dirtest/bar.t/opts.txt: -------------------------------------------------------------------------------- 1 | ARGS: some arguments 2 | -------------------------------------------------------------------------------- /test/dirtest/bar.t/out.out: -------------------------------------------------------------------------------- 1 | bar some arguments 2 | goodbye, world! 3 | -------------------------------------------------------------------------------- /test/dirtest/bar.t/test.in: -------------------------------------------------------------------------------- 1 | goodbye, world! 2 | -------------------------------------------------------------------------------- /test/dirtest/foo.t/out.out: -------------------------------------------------------------------------------- 1 | foo 2 | hello, world! 3 | -------------------------------------------------------------------------------- /test/dirtest/foo.t/test.in: -------------------------------------------------------------------------------- 1 | hello, world! 2 | -------------------------------------------------------------------------------- /test/dirtest/turnt.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cucapra/turnt/HEAD/test/dirtest/turnt.toml -------------------------------------------------------------------------------- /test/errors/bad.out: -------------------------------------------------------------------------------- 1 | exiting 2 | -------------------------------------------------------------------------------- /test/errors/bad.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cucapra/turnt/HEAD/test/errors/bad.t -------------------------------------------------------------------------------- /test/errors/turnt.toml: -------------------------------------------------------------------------------- 1 | output.out = "2" 2 | return_code = 42 3 | -------------------------------------------------------------------------------- /test/multi-output/bad.err: -------------------------------------------------------------------------------- 1 | exiting 2 | -------------------------------------------------------------------------------- /test/multi-output/bad.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cucapra/turnt/HEAD/test/multi-output/bad.t -------------------------------------------------------------------------------- /test/multi-output/multi-output.out: -------------------------------------------------------------------------------- 1 | foo 2 | -------------------------------------------------------------------------------- /test/multi-output/multi-output.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cucapra/turnt/HEAD/test/multi-output/multi-output.t -------------------------------------------------------------------------------- /test/multi-output/multi-output.txt: -------------------------------------------------------------------------------- 1 | bar 2 | -------------------------------------------------------------------------------- /test/multi-output/other_file.txt: -------------------------------------------------------------------------------- 1 | bar 2 | -------------------------------------------------------------------------------- /test/multi-output/turnt.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cucapra/turnt/HEAD/test/multi-output/turnt.toml -------------------------------------------------------------------------------- /test/multienv/something.out: -------------------------------------------------------------------------------- 1 | hi 2 | greetings, earth! 3 | -------------------------------------------------------------------------------- /test/multienv/something.out3: -------------------------------------------------------------------------------- 1 | bye 2 | greetings, earth! 3 | -------------------------------------------------------------------------------- /test/multienv/something.t: -------------------------------------------------------------------------------- 1 | greetings, earth! 2 | -------------------------------------------------------------------------------- /test/multienv/turnt.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cucapra/turnt/HEAD/test/multienv/turnt.toml -------------------------------------------------------------------------------- /test/out-dir/expected/something.out: -------------------------------------------------------------------------------- 1 | something 2 | hello, world! 3 | -------------------------------------------------------------------------------- /test/out-dir/something.t: -------------------------------------------------------------------------------- 1 | hello, world! 2 | -------------------------------------------------------------------------------- /test/out-dir/turnt.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cucapra/turnt/HEAD/test/out-dir/turnt.toml -------------------------------------------------------------------------------- /test/subdir/example.out: -------------------------------------------------------------------------------- 1 | base config 2 | test 3 | hello, world! 4 | -------------------------------------------------------------------------------- /test/subdir/example.t: -------------------------------------------------------------------------------- 1 | hello, world! 2 | -------------------------------------------------------------------------------- /test/turnt.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cucapra/turnt/HEAD/test/turnt.toml -------------------------------------------------------------------------------- /turnt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cucapra/turnt/HEAD/turnt.py --------------------------------------------------------------------------------