File: upstream-tests

package info (click to toggle)
libcyaml 1.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 980 kB
  • sloc: ansic: 20,884; makefile: 166; sh: 13
file content (18 lines) | stat: -rwxr-xr-x 349 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -efu

if [ -z "$AUTOPKGTEST_TMP" ]; then
    AUTOPKGTEST_TMP=tmp
    mkdir -p ${AUTOPKGTEST_TMP}
fi

SRCDIR=$(pwd)

cp -rv ${SRCDIR}/examples ${AUTOPKGTEST_TMP}
cd ${AUTOPKGTEST_TMP}/examples/numerical
cc main.c -lcyaml
./a.out ./fibonacci.yaml
cd ${AUTOPKGTEST_TMP}/examples/planner
cc main.c -lcyaml
./a.out ./project.yaml tempfile