File: help

package info (click to toggle)
todotxt-cli 2.11.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 1,312 kB
  • sloc: sh: 5,393; makefile: 67
file content (22 lines) | stat: -rwxr-xr-x 401 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
#-----------------------
# Testing utilities help
#-----------------------
set -e

cd "$AUTOPKGTEST_TMP"

HOME="$AUTOPKGTEST_TMP"

mkdir -p $HOME/.todo-txt
CMDS=( 'todo-txt' )
for cmd in "${CMDS[@]}"; do
    if ! $cmd -h 2>&1 >$AUTOPKGTEST_TMP/out ; then
        echo "ERROR, ${cmd}:"
        cat "$AUTOPKGTEST_TMP/out"
        exit 1
    else
        echo "OK: ${cmd}"
    fi
done
exit 0