mirror of
https://github.com/uffejakobsen/acme.git
synced 2024-12-01 01:51:43 +00:00
58b04ba77c
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@342 4df02467-bbd4-4a76-a152-e7ce94205b78
28 lines
832 B
Bash
Executable File
28 lines
832 B
Bash
Executable File
#!/bin/bash
|
|
|
|
check() {
|
|
#echo "$@"
|
|
FILE="$1"
|
|
shift
|
|
acme "$@" outformats.a || exit 1
|
|
cmp test.o "$FILE" || exit 1
|
|
rm test.o
|
|
}
|
|
|
|
# if neither -o nor -f are given, use format from "!to", which defaults to cbm:
|
|
check outformat-cbm.exp -DFORMAT=0
|
|
check outformat-plain.exp -DFORMAT=1
|
|
check outformat-cbm.exp -DFORMAT=2
|
|
check outformat-apple.exp -DFORMAT=3
|
|
|
|
# if -o or -f are given, format from "!to" should be ignored:
|
|
for f in 0 1 2 3 ; do
|
|
check outformat-plain.exp -DFORMAT=$f -f plain
|
|
check outformat-cbm.exp -DFORMAT=$f -f cbm
|
|
check outformat-apple.exp -DFORMAT=$f -f apple
|
|
check outformat-plain.exp -DFORMAT=$f -o test.o # defaults to plain
|
|
check outformat-plain.exp -DFORMAT=$f -o test.o -f plain
|
|
check outformat-cbm.exp -DFORMAT=$f -o test.o -f cbm
|
|
check outformat-apple.exp -DFORMAT=$f -o test.o -f apple
|
|
done
|