~dricottone/my-utils

ref: 6f0bf4a305d99569b0c27242bf6a5469d5ab5b43 my-utils/emulation/test_qemu-test.sh -rwxr-xr-x 277 bytes
6f0bf4a3Dominic Ricottone whichcat now respects the quiet option 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# tests qemu-test

test_exit_code() {
  $1 >/dev/null 2>&1
  if [ $? -ne $2 ]; then
    printf "Failure in qemu-test tests: wrong exit code ('$1' returned '$?', should be '$2')\n"
    exit 1
  fi
}
test_exit_code "qemu-test -v" "0"
test_exit_code "qemu-test -h" "0"