File: install

package info (click to toggle)
clojure-cli 1.12.0.1488-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 360 kB
  • sloc: sh: 659; ruby: 40; makefile: 18
file content (26 lines) | stat: -rw-r--r-- 480 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
#!/bin/bash

set -xeuo pipefail

tmp="$AUTOPKGTEST_TMP"
ver="$(dpkg-parsechangelog -S version)"
upstream="${ver%%-*}"

rc=0
clojure -e '(System/exit 42)' || rc=$?
test "$rc" -eq 42

cp -a debian/tests/test-app "$tmp"
cd "$tmp/test-app"

out="$(clojure -X test-app/run)"
test "$out" = yep

out="$(clj -X test-app/run)"
test "$out" = yep

out="$(clojure --version)"
test "$out" = "Clojure CLI version $upstream"

out="$(clj --version)"
test "$out" = "Clojure CLI version $upstream"