Debian Codegraph @

debian/tests/run-echo

raw
1 #!/bin/sh -e
2 # SPDX-FileCopyrightText: 2021 John Scott <[email protected]>
3 # SPDX-License-Identifier: GPL-3.0-or-later
4 sh-elf-gcc -o "$AUTOPKGTEST_TMP"/echo debian/tests/echo.c
5 cd "$AUTOPKGTEST_TMP"
6 string='Hello, world'
7 output=$(sh-elf-run ./echo $string)
8 if [ "$output" != "$string" ]
9 then
10 echo Expected "$string", got "$output" >&2
11 exit 1
12 fi