Skip to content
Snippets Groups Projects
Commit 44f15ca7 authored by Simon McVittie's avatar Simon McVittie
Browse files

d/tests/build: Avoid relying on AUTOPKGTEST_TMP


This just makes it easier to document how to run this manually.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 81acecb2
No related branches found
No related tags found
1 merge request!1WIP: Initial code-drop for review
#!/bin/sh #!/bin/sh
set -e set -e
set -u
set -x set -x
cd "$AUTOPKGTEST_TMP" tempdir="$(mktemp -d)"
cd "$tempdir"
cat > trivial.c <<'EOF' cat > trivial.c <<'EOF'
#include <steam-runtime-tools/steam-runtime-tools.h> #include <steam-runtime-tools/steam-runtime-tools.h>
...@@ -19,3 +21,5 @@ EOF ...@@ -19,3 +21,5 @@ EOF
gcc -o trivial trivial.c $(pkg-config --cflags --libs steam-runtime-tools-0) gcc -o trivial trivial.c $(pkg-config --cflags --libs steam-runtime-tools-0)
test -x trivial test -x trivial
./trivial ./trivial
rm -fr "$tempdir"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment