File: test_installed.sh

package info (click to toggle)
libaunit 1.03-7
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 364 kB
  • sloc: ada: 1,552; makefile: 61; sh: 6
file content (22 lines) | stat: -rwxr-xr-x 578 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
#!/bin/bash
#
# install libaunit package (normally in the chroot that just built it),
# and run test using it.

# usage
# cd libaunit-<version>/debian
# soversion=*; aliversion=*; debversion=*; sudo schroot ./test_installed.sh

# This re-installs the latest version.
sudo dpkg --install ../../libaunit${soversion}_1.03-${debversion}_i386.deb
sudo dpkg --install ../../libaunit${aliversion}-dev_1.03-${debversion}_i386.deb

# tmp is owned by root; we need write permission
sudo chmod o+w tmp

rm -rf tmp/aunit_test

gnatmake -p -Paunit_test
tmp/aunit_test/harness

# end of file