1
0
mirror of https://github.com/jordansissel/fpm synced 2025-08-30 04:10:42 +02:00
fpm/test/dir-deb.test
2011-10-11 19:41:51 +00:00

24 lines
486 B
Bash

#!/bin/bash
run() {
mkdir -p $tmpdir/{a,b,c}/{d,e,f}
touch $tmpdir/a/hello
touch $tmpdir/a/d/hello
touch $tmpdir/c/d/hello
prefix=/opt/foo/bar
fpm -s dir -t deb -n testing -a all $tmpdir
file=testing_1.0_all.deb
dpkg -c $file | awk '{$1=$2=$3=$4=$5="";print}' | sed -e 's/^ *//' | sort > $output
#ar p $file data.tar.gz | tar -ztf - | sort > $output
sed -e "s,TMPDIR,$(basename $tmpdir)," $expected.template > $expected
rm $file
}
clean() {
rm $expected
}