File: test-picolibc

package info (click to toggle)
picolibc 1.8.11-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 50,064 kB
  • sloc: ansic: 404,031; asm: 24,984; sh: 2,585; python: 2,289; perl: 680; pascal: 329; exp: 287; makefile: 222; cpp: 71; xml: 40
file content (57 lines) | stat: -rwxr-xr-x 1,246 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
#!/bin/sh

PICOLIBC_DIR=/build/picolibc
GLIBC_DIR=/build/glibc

set -e

#test=echo

options="-Dwant-math-errno=true -Dio-long-double=true -Dwerror=true -Dmb-capable=true -Dmb-extended-charsets=true -Dsanitize=undefined"
stdoptions="$options --buildtype=release -Ddebug=true"

for arch in aarch64 arm riscv; do

    DIR=$PICOLIBC_DIR/builds/build-$arch

    $test rm -rf $DIR
    $test mkdir -p $DIR
    $test cd $DIR

    if [ $arch = aarch64 ]; then
	conf=$arch-none-elf
    else
	conf=$arch
    fi

    echo '###################################'
    echo '####' ../../scripts/do-$conf-configure $stdoptions
    echo '###################################'

    $test ../../scripts/do-$conf-configure $stdoptions

    $test ninja
    $test meson test -t 10
    $test ninja install

done

options="-Dwerror=true"
stdoptions="$options --buildtype=release -Ddebug=true"

for arch in aarch64 arm riscv; do

    DIR=$GLIBC_DIR/builds/build-$arch

    $test rm -rf $DIR
    $test mkdir -p $DIR
    $test cd $DIR

    echo '###################################'
    echo '####' ../../picolibc/do-$arch-configure $stdoptions
    echo '###################################'

    $test ../../picolibc/do-$arch-configure $stdoptions
    $test ninja test

done