File: ccram

package info (click to toggle)
libcork 0.15.0%2Bds-16
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,140 kB
  • sloc: ansic: 12,216; python: 206; sh: 126; makefile: 16
file content (31 lines) | stat: -rwxr-xr-x 400 bytes parent folder | download | duplicates (8)
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
27
28
29
30
31
#!/bin/sh

if [ "$1" = "--python" ]; then
    shift
    PYTHON="$1"
    shift
else
    PYTHON=python
fi

if [ "$1" = "--root" ]; then
    shift
    ROOT="$1"
    shift
else
    ROOT=$(dirname $PWD)
fi

if [ "$1" = "--tests" ]; then
    shift
    TESTS="$1"
    shift
else
    TESTS=../tests
fi

export ROOT

LD_LIBRARY_PATH="$PWD/src:$LD_LIBRARY_PATH" \
PATH="$PWD/src:$PATH" \
  cram3 "$@" "$TESTS"