File: test-command-line

package info (click to toggle)
gnupod-tools 0.99.8-6
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 300 kB
  • sloc: makefile: 57; sh: 53
file content (24 lines) | stat: -rw-r--r-- 326 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

errno=0

set -e

at_exit() {
    echo "info: test exiting"
}
trap at_exit INT TERM EXIT

cd "$ADTTMP"
set -x

mkdir -p "$ADTTMP/ipod"

if echo | gnupod_INIT -m "$ADTTMP/ipod"; then
    echo "success: gnupod_INIT ran without errors"
else
    echo "failure: gnupod_INIT reported an error"
    errno=1
fi

exit $errno