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
+ 21.6 Strings library, Null-terminated sequence utilities: <cctype>, <cwctype>,...
[lightlibc++.git]
/
testcase.sh
blob
3b22f446357e07151896a9757e797fea5dadba4a
1
#! /bin/bash
2
# $1 executable path
3
# $2 user visible name
4
5
if
[
-x
$2
.sh
]
6
then
7
.
/
$2
.sh
$1 $2
>
$1
.out
2
>&
1
8
else
9
.
/
$1
>
$1
.out
2
>&
1
10
fi
11
12
if
[
$?
==
0
]
13
then
14
echo -e
"
\033
[01;32mpassed
\033
[m:
$2
"
15
else
16
echo -e
"
\033
[01;31mfailed
\033
[m:
$2
"
17
rm
-f
$1
18
fi
19
20
exit
0