File: metatest

package info (click to toggle)
pike8.0 8.0.702-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 79,608 kB
  • sloc: ansic: 266,508; xml: 186,324; makefile: 3,537; sh: 1,731; cpp: 1,328; lisp: 655; awk: 441; asm: 242; objc: 240; pascal: 157; perl: 34; sed: 34
file content (45 lines) | stat: -rwxr-xr-x 651 bytes parent folder | download | duplicates (21)
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
#!/bin/sh

SRCPATH=`dirname $0`
SRCPATH=`dirname $SRCPATH`

case $SRCPATH in
  /*) ;;
  *) SRCPATH=`pwd`/$SRCPATH ;;
esac

set -e
set -x

docompile5() {
  mkdir test1
  cd test1
  $SRCPATH/src/configure --cache-file ../testcache

  # Modify makefile to simplify debugging...
  mv Makefile Makefile.orig
  sed <Makefile.orig >Makefile "s/^DEBUGDEF=.*$/DEBUGDEF=$1/g"

  make
  make verify 
  make verify PIKEOPTS=-d2
#  make verify PIKEOPTS=-d99
  cd ..
  rm -rf test1
}


docompile2() {
  docompile5 "$1 -DDEBUG"
  docompile5 "$1"
}

docompile1() {
  docompile2 "$1 -DALWAYS_GC"
  docompile2 "$1 -DNO_GC"
  docompile2 "$1"
}


docompile1
rm testcache