File: build-quick.sh

package info (click to toggle)
pcp 7.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 253,896 kB
  • sloc: ansic: 1,488,097; sh: 185,322; xml: 160,462; cpp: 83,813; python: 25,576; perl: 18,365; yacc: 6,877; lex: 2,864; makefile: 2,759; exp: 250; awk: 165; fortran: 60; java: 22
file content (67 lines) | stat: -rwxr-xr-x 1,689 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
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
63
64
65
66
67
#!/bin/bash
#
# Quick build script for Darwin PMDA development
# Builds just the Darwin PMDA without full PCP build
#
# REQUIREMENT: PCP must be configured first (one-time setup)
#

set -e

SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$SCRIPT_DIR"

echo "========================================"
echo "Quick Darwin PMDA Build"
echo "========================================"
echo

# Check if PCP has been fully built
echo "Checking if PCP is fully built..."
if ! make check-configured > /dev/null 2>&1; then
    echo
    echo "ERROR: PCP must be fully built and installed first"
    echo
    echo "Run this command from the repo root:"
    echo "  ./Makepkgs --verbose"
    echo
    echo "This takes ~5-30 minutes but only needs to be done once."
    echo
    exit 1
fi
echo "✓ PCP is built and installed"
echo

# Check dependencies
echo "Checking build dependencies..."
make check-deps
echo

# Clean previous build
echo "Cleaning previous build..."
make clean
echo

# Build
echo "Building Darwin PMDA..."
time make all
echo

# Run smoke test
echo "Running smoke test..."
make test
echo

echo "========================================"
echo "Build complete!"
echo "========================================"
echo "Binary: $(pwd)/pmdadarwin"
echo "DSO:    $(pwd)/pmda_darwin.dylib"
echo
echo "Next steps:"
echo "  1. Run darwin tests:     cd ../../../src/pmdas/darwin/test && ./run-unit-tests.sh"
echo "  2. Run darwin_proc tests: cd ../../../src/pmdas/darwin_proc/test && ./run-unit-tests.sh"
echo "  3. Run all tests:        cd ../../../build/mac/test && ./run-all-tests.sh"
echo "  4. Install to system:    make install"
echo "  3. Test with pminfo:     pminfo -f mem.physmem"
echo