repo.or.cz
/
lightlibc++.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* Makefile: variable for the tools from the host environment
[lightlibc++.git]
/
testcase.sh
blob
b4eb65eb5f49ce4a3f7de4b86ecbadcd22493f51
1
#! /bin/bash
2
# $1 executable path
3
4
if
[
-x
$@.sh
]
5
then
6
.
/
$1
.sh
>
$1
.out
2
>&
1
7
else
8
.
/
$1
>
$1
.out
2
>&
1
9
fi
10
11
if
[
$?
==
0
]
12
then
13
echo -e
"
\033
[01;32mpassed
\033
[m:
$1
"
14
else
15
echo -e
"
\033
[01;31mfailed
\033
[m:
$1
"
16
rm
-f
$1
17
fi
18
19
exit
0