File: axiom-test.sh

package info (click to toggle)
axiom 20170501-4
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,048,504 kB
  • sloc: lisp: 3,600; makefile: 505; cpp: 223; ansic: 138; sh: 96
file content (26 lines) | stat: -rw-r--r-- 458 bytes parent folder | download | duplicates (3)
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

PD=@PD@
export AXIOM=/usr/lib/$PD;export PATH=$AXIOM/bin:$PATH

if [ $# -gt 0 ] ; then
	j=$@
else
	j=""
	for i in /usr/lib/$PD/input/*.input; do j="$j $(basename $i | sed 's,\.input$,,1')"; done
fi

k=$(tempfile --suffix=.input)
trap "rm -f $k" exit

for i in $j ; do 
	cat >$k <<EOF
)set message test on
)set message auto off
)read /usr/lib/$PD/input/$i.input
)lisp (by)
EOF

	echo "systemCommand \"read $k\"" | /usr/lib/$PD/bin/AXIOMsys

done