owo/scripts/test_debug.sh

21 lines
351 B
Bash
Raw Normal View History

2023-03-06 19:53:49 +01:00
#!/usr/bin/env bash
date="$(date +%Y-%j-%H-%M-%S)"
python_args="-d -v"
owo_args=""
_rst=$PWD
dir=".debug/runs/$date"
mkdir -p $dir
touch $dir/stdout.term
touch $dir/stderr.term
python3 $python_args owo/__main__.py $owo_args > $dir/stdout.term 2> $dir/stderr.term
7z a -m0=LZMA2 -mx9 -sdel -ssw -t7z -- $dir.7z $dir/*
rm -rfv $dir
printf "done"