File: run-echo

package info (click to toggle)
gcc-sh-elf 8.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 140 kB
  • sloc: ansic: 237; makefile: 93; sh: 54
file content (12 lines) | stat: -rwxr-xr-x 347 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh -e
# SPDX-FileCopyrightText: 2021 John Scott <jscott@posteo.net>
# SPDX-License-Identifier: GPL-3.0-or-later
sh-elf-gcc -o "$AUTOPKGTEST_TMP"/echo debian/tests/echo.c
cd "$AUTOPKGTEST_TMP"
string='Hello, world'
output=$(sh-elf-run ./echo $string)
if [ "$output" != "$string" ]
then
	echo Expected "$string", got "$output" >&2
	exit 1
fi