File: basic

package info (click to toggle)
binutils-or1k-elf 1.0.13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 68 kB
  • sloc: makefile: 31; sh: 29
file content (25 lines) | stat: -rw-r--r-- 528 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
set -C -e -f -u

gnu_type=$(sed '/^gnu_type *= */ !d; s///; q' debian/rules)
echo "Target GNU type: $gnu_type"

cd "$AUTOPKGTEST_TMP"

echo 'Running as'
$gnu_type-as /dev/null

echo 'Checking that file says "ELF" and "not stripped"'
expr match "$(file -b a.out)" 'ELF .*, not stripped'

echo 'Running nm'
$gnu_type-nm a.out

echo 'Running strings'
$gnu_type-strings a.out

echo 'Running strip'
$gnu_type-strip a.out

echo 'Checking that file says "ELF" and "stripped"'
expr match "$(file -b a.out)" 'ELF .*, stripped'