File: testing

package info (click to toggle)
python-lamson 1.0pre11-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 3,508 kB
  • ctags: 1,036
  • sloc: python: 5,772; xml: 177; makefile: 19
file content (44 lines) | stat: -rw-r--r-- 717 bytes parent folder | download | duplicates (2)
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
# An deploy/env file contains the settings and special functions
# for that environment.  


LOG4SH_CONFIGURATION=deploy/log4sh.properties
SOURCE=$HOME/projects/lamson/examples/librelist
TARGET=$HOME/deploy/testing
BACKUP=$HOME/deploy/backup/testing
FAILS=$HOME/deploy/fails/testing


function stop {
    logger_info "Stopping testing deployment."
    pushd $1
    assert_in $1

    lamson stop -ALL run
    popd
}


function start {
    logger_info "Starting testing deployment."
    pushd $1
    assert_in $1

    lamson start
    popd
}


function setup {
    assert_in $SOURCE

    mkdir -p $SOURCE
    mkdir -p $TARGET
    mkdir -p $BACKUP
    mkdir -p $FAILS

    rm -rf run/*
    rm -rf app/data/archive/*
}