File: build

package info (click to toggle)
libcsfml 2.5-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,672 kB
  • sloc: cpp: 5,591; ansic: 2,193; sh: 16; makefile: 8
file content (26 lines) | stat: -rw-r--r-- 594 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
25
26
#!/bin/sh
# autopkgtest check: Build and run a simple program against CSFML

set -e

# Require $ADTTMP for temporary build files
if [ -z "$ADTTMP" ]
then
	echo "Required envvar \"$ADTTMP\"is not set" >&2
	exit 1
fi

cp debian/tests/csfml_test.c "$ADTTMP"
cd "$ADTTMP"

# Build programs
gcc -Wall -Werror -o csfml_test1 csfml_test.c -lcsfml-graphics -lcsfml-window -lcsfml-audio -lcsfml-network -lcsfml-system
echo "build1: OK"
gcc -Wall -Werror -o csfml_test2 csfml_test.c -lcsfml-network -lcsfml-system
echo "build2: OK"

# Run them
./csfml_test1
echo "run1: OK"
./csfml_test2
echo "run2: OK"