Cross package maker. DEB/RPM generation or conversion. Derived from jordansissel/fpm.

⌈⌋ branch:  cross package maker


Check-in [b39613b0c9]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
SHA1:b39613b0c9500559387eca20bdaecde47142d138
Date: 2012-02-24 07:51:37
User: jls
Comment:- ignore more stuff - purge old test script
Tags And Properties
  • sym-trunk inherited from [2b439be7d6]
Context
2012-02-24
07:51
[c49874e097] - (user: jls, tags: trunk)
07:51
[b39613b0c9] - ignore more stuff - purge old test script (user: jls, tags: trunk)
07:43
[40571c6988] - move older minitest tests away until they can be refactored to the new api (user: jls, tags: trunk)
Changes

Changes to .gitignore.

7
8
9
10
11
12
13



*.gem

# python
*.pyc

# RVM
.rvmrc










>
>
>
7
8
9
10
11
12
13
14
15
16
*.gem

# python
*.pyc

# RVM
.rvmrc

.yardoc
coverage

Deleted test/test.sh.

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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash

fpm() {
  ../bin/fpm "$@" > $debugout 2> $debugerr
  status=$?

  if [ "$status" -ne 0 ] ; then
    fail
  fi
  return $status
}

cleanup() {
  rm -f $tmpout $debugout $debugerr
  [ ! -z "$tmpdir" ] && rm -r $tmpdir

  # Run clean if defined.
  if type clean 2> /dev/null | grep -q "function" ; then
    clean
  fi
}

main() {
  test="$1"
  tmpdir=$(mktemp -d tmp/fpm.XXXXXXXXXX)
  debugout=$(mktemp tmp/fpm.XXXXXXXXXX)
  debugerr=$(mktemp tmp/fpm.XXXXXXXXXX)
  output=$(mktemp tmp/fpm.XXXXXXXXXX)
  expected=${1%.test}.out

  echo "Loading $test"
  . "./$test"

  # Run the test.
  run

  # Compare output
  diff -u $output $expected
  diffstatus=$?

  if [ $diffstatus -ne 0 ] ; then
    fail
  else
    ok
  fi
}

fail() { 
  echo "Fail: $test"
  sed -e 's/^/stdout: /' $debugout
  sed -e 's/^/stderr: /' $debugerr
  cleanup
  exit 1
}

ok() {
  echo "OK: $test"
  cleanup
  exit 0
}

main "$@"
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<