File: run-fork

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 (11 lines) | stat: -rwxr-xr-x 335 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/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"/fork debian/tests/fork.c
cd "$AUTOPKGTEST_TMP"
output=$(sh-elf-run ./fork)
if [ "$output" != "aaaaaaaaaaaaaaaa" ]
then
	echo Expected "aaaaaaaaaaaaaaaa", got "$output" >&2
	exit 1
fi