Skip to content

Commit

Permalink
automatic commit at releng box
Browse files Browse the repository at this point in the history
  • Loading branch information
mc36 committed Jan 4, 2025
1 parent 794fc73 commit c48bba8
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 20 deletions.
34 changes: 18 additions & 16 deletions misc/native/c.sh
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
#!/bin/sh
TR=../../binTmp
UM=`uname -m`

if which clang > /dev/null ; then
CC="clang"
BC="clang -target bpf"
BS="llvm-strip"
else
CC="gcc"
BC="bpf-gcc"
BS="bpf-strip"
fi
mkdir -p $TR

MD="-O0 -g" #devel
MD="-O3 -g" #debug
MD="-O3" #release
#gdb xxx.bin core
#bt full
#p *((struct <type> *)(<addr>))
mkdir -p $TR

UM=`uname -m`
MF=""
if [ "$UM" = "x86_64" ]; then
MF="-march=corei7"
fi

echo arch=$UM, cc=$CC, bc=$BC, bs=$BS, mode=$MD, flag=$MF, out=$TR
if which clang > /dev/null ; then
CC="clang"
CS="llvm-strip"
BC="clang -target bpf"
BS="llvm-strip"
else
CC="gcc"
CS="strip"
BC="bpf-gcc"
BS="bpf-strip"
fi

echo arch=$UM, cc=$CC, cs=$CS, bc=$BC, bs=$BS, mode=$MD, flag=$MF, out=$TR

compileBpf()
{
Expand All @@ -40,23 +42,23 @@ compileLib()
echo compiling $1.
$CC -fpic -shared -Wall -Wl,--build-id=none $MD $3 -o$TR/lib$1.so $2 $1.c
chmod -x $TR/lib$1.so || true
strip $TR/lib$1.so || true
$CS $TR/lib$1.so || true
touch -c -d "2010-01-01 00:00:00" $TR/lib$1.so || true
}

linkTwoLibs()
{
echo linking $1.
$CC -Wall -Wl,-rpath='$ORIGIN/' -Wl,--build-id=none $MD -o$TR/$1.bin -L$TR -l$2 -l$3 $4
strip $TR/$1.bin || true
$CS $TR/$1.bin || true
touch -c -d "2010-01-01 00:00:00" $TR/$1.bin || true
}

compileFile()
{
echo compiling $1.
$CC -Wall -Wl,--build-id=none $MD $4 -o$TR/$1.bin $2 $1.c $3
strip $TR/$1.bin || true
$CS $TR/$1.bin || true
touch -c -d "2010-01-01 00:00:00" $TR/$1.bin || true
}

Expand Down
2 changes: 1 addition & 1 deletion src/rtr.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
url;file;result;test
-;-;-;freeRouter v25.1.4-cur, done by sprscc13@mrn0b0dy.
-;-;-;2025-01-04 10:48:53, took 00:14:47, with 50 workers, on 3604 cases, 0 failed, 0 traces, 4 retries
-;-;-;2025-01-04 11:20:35, took 00:15:02, with 50 workers, on 3604 cases, 0 failed, 0 traces, 2 retries
-;-;-;./rtr.bin
http://sources.freertr.org/cfg/basic01.tst;basic01.tst;success;dummy test
http://sources.freertr.org/cfg/basic02.tst;basic02.tst;success;interface with slot
Expand Down
2 changes: 1 addition & 1 deletion src/rtr.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</style>
<title>tester</title></head><body>
release: freeRouter v25.1.4-cur, done by sprscc13@mrn0b0dy.<br/>
tested: 2025-01-04 10:48:53, took 00:14:47, with 50 workers, on 3604 cases, 0 failed, 0 traces, 4 retries<br/>
tested: 2025-01-04 11:20:35, took 00:15:02, with 50 workers, on 3604 cases, 0 failed, 0 traces, 2 retries<br/>
jvm: ./rtr.bin<br/>
<br/>
<table><thead><tr><td><b>file</b></td><td><b>result</b></td><td><b>test</b></td></tr></thead><tbody>
Expand Down
2 changes: 1 addition & 1 deletion src/rtr8.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
url;file;result;test
-;-;-;freeRouter v25.1.4-cur, done by sprscc13@mrn0b0dy.
-;-;-;2025-01-04 10:58:58, took 00:09:43, with 50 workers, on 674 cases, 0 failed, 0 traces, 0 retries
-;-;-;2025-01-04 11:33:57, took 00:12:59, with 50 workers, on 674 cases, 0 failed, 0 traces, 0 retries
-;-;-;./rtr.bin
http://sources.freertr.org/cfg/p4lang-acl001.tst;p4lang-acl001.tst;success;p4lang: copp
http://sources.freertr.org/cfg/p4lang-acl002.tst;p4lang-acl002.tst;success;p4lang: ingress access list
Expand Down
2 changes: 1 addition & 1 deletion src/rtr8.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</style>
<title>tester</title></head><body>
release: freeRouter v25.1.4-cur, done by sprscc13@mrn0b0dy.<br/>
tested: 2025-01-04 10:58:58, took 00:09:43, with 50 workers, on 674 cases, 0 failed, 0 traces, 0 retries<br/>
tested: 2025-01-04 11:33:57, took 00:12:59, with 50 workers, on 674 cases, 0 failed, 0 traces, 0 retries<br/>
jvm: ./rtr.bin<br/>
<br/>
<table><thead><tr><td><b>file</b></td><td><b>result</b></td><td><b>test</b></td></tr></thead><tbody>
Expand Down

0 comments on commit c48bba8

Please sign in to comment.