]> sbz's 6dev Repos - elfdbg/.git/blob - tests/test_helper.sh
Report missing binary if test suite is run w/o prior install
[elfdbg/.git] / tests / test_helper.sh
1 generate_bin_nodbg()
2 {
3         cat > bin.c <<EOF
4 int
5 main(void) {
6     return (0);
7 }
8 EOF
9         /usr/bin/cc -o bin bin.c
10         /usr/bin/strip bin
11 }
12
13 generate_bin_dbg()
14 {
15         cat > bin.c <<EOF
16 int
17 main(void) {
18     return (0);
19 }
20 EOF
21         /usr/bin/cc -g -o bin bin.c
22 }
23