A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Test for mremap function and store result in internal_config.h.
[simgrid.git]
/
tools
/
tesh
/
generate_tesh
1
#!/bin/sh
2
# Generate a tesh file from a given command (simple case).
3
4
command="$1"
5
output=$(sh -c "$command" 2>&1)
6
return=$?
7
8
tesh="#! ./tesh
9
10
! expect return $return
11
$ $command
12
$(echo "$output" | sed 's/^/> /' )
13
"
14
15
echo "$tesh"
16
echo "$tesh" | tesh 1>&2