scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

 1#!/bin/sh
 2
 3file=${1?' empty input file'}
 4trap 'rm -f a.out; exit' EXIT HUP INT TERM
 5ulimit -c 0
 6rm -f test.log
 7
 8SYS=`uname | tr A-Z a-z`
 9FORMAT=elf
10ABI=sysv
11ARCH=amd64
12
13export SYS FORMAT ABI ARCH
14
15while read i state
16do
17	echo $i >>test.log
18	state=${state:-""}
19	rm -f a.out
20
21	((${MAKE-make} -s $i && ./$i) >>test.log 2>&1 &&
22		printf '[PASS]' || printf '[FAIL]'
23	printf '\t%s\t%s\n' $i $state) | tee -a test.log
24done < $file