1#!/bin/bash 2 3# output version 4bash printinfo.sh 5 6bash build.sh " $1" "$2 -O2" "$3 IGNORE_SPEED=1" "$4" "$5" 7if [ -a testok.txt ] && [ -f testok.txt ]; then 8 echo 9else 10 echo 11 echo "Test failed" 12 exit 1 13fi 14 15rm -f testok.txt 16bash build.sh " $1" "$2 -Os" "$3 IGNORE_SPEED=1 LTC_SMALL=1" "$4" "$5" 17if [ -a testok.txt ] && [ -f testok.txt ]; then 18 echo 19else 20 echo 21 echo "Test failed" 22 exit 1 23fi 24 25rm -f testok.txt 26bash build.sh " $1" "$2" "$3 LTC_DEBUG=1" "$4" "$5" 27if [ -a testok.txt ] && [ -f testok.txt ]; then 28 echo 29else 30 echo 31 echo "Test failed" 32 exit 1 33fi 34 35rm -f testok.txt 36bash build.sh " $1" "$2" "$3" "$4" "$5" 37if [ -a testok.txt ] && [ -f testok.txt ]; then 38 echo 39else 40 echo 41 echo "Test failed" 42 exit 1 43fi 44 45exit 0 46 47# ref: HEAD -> master, tag: v1.18.2 48# git commit: 7e7eb695d581782f04b24dc444cbfde86af59853 49# commit time: 2018-07-01 22:49:01 +0200 50