blob: b9d418d72bac022f5d7e985f369e8168731cd0df (
plain) (
blame)
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
|
#!/bin/sh
# $OpenBSD: runparse.sh,v 1.1 2018/07/09 09:03:29 mpi Exp $
run() {
for i in $* ; do
./parsetest $(echo "ibase=16; $i" | bc)
if [ $? -ne 0 ]
then
printf "\nFailed on 0x%s\n" "$i"
return 1
fi
printf " $i"
done
printf "\n"
return 0
}
case $1 in
hex)
printf "Unable to handle %%x format names - DISABLED\n"
# run $2
exit 0 ;;
dec)
printf "Testing %%d & %%u format names"
run $2
exit $? ;;
static)
printf "Testing staticly named usage names"
run $2
exit $? ;;
esac
|