File: expect

package info (click to toggle)
libnginx-mod-js 0.7.9-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,180 kB
  • sloc: ansic: 91,416; javascript: 4,038; exp: 427; sh: 309; python: 181; perl: 126; makefile: 18
file content (37 lines) | stat: -rw-r--r-- 671 bytes parent folder | download
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
32
33
34
35
36
37

# Copyright (C) Dmitry Volyntsev
# Copyright (C) NGINX, Inc.

njs_found=no
printf "checking for expect ..."

if /bin/sh -c "(expect -v)" >> $NJS_AUTOCONF_ERR 2>&1; then
    njs_found=yes
fi

if [ $njs_found = yes ]; then
    echo " found"
    echo " + Expect version: `expect -v`"

else
    echo " not found"
fi

if [ $njs_found = yes -a $NJS_HAVE_READLINE = YES ]; then
    cat << END >> $NJS_MAKEFILE

shell_test:	njs test/shell_test.exp
	INPUTRC=test/inputrc PATH=$NJS_BUILD_DIR:\$(PATH) \
            expect -f test/shell_test.exp
END

else
    echo " - expect tests are disabled"

    cat << END >> $NJS_MAKEFILE

shell_test:
	@echo "Skipping expect tests"
END

fi