File: load-system

package info (click to toggle)
buildapp 1.5.6-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 184 kB
  • sloc: lisp: 802; makefile: 23; sh: 8
file content (16 lines) | stat: -rwxr-xr-x 408 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
# Test a minimal program that depends on an ASDF system (for detecting
# regressions such as #900099).

set -e

cd ${AUTOPKGTEST_TMP}

HOME=${AUTOPKGTEST_TMP} buildapp --load-system alexandria \
         --eval '(defun main (argv) (princ (alexandria:factorial (parse-integer (second argv)))) (terpri))' \
         --entry main \
         --output factorial

f5=$(./factorial 5)

(( $f5 == 120 ))