forked from rui314/chibicc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add scripts to test third-party apps
- Loading branch information
Showing
6 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
**/*.s | ||
**/a.out | ||
/tmp* | ||
/thirdparty | ||
/chibicc | ||
/test/*.exe | ||
/stage2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
make="make -j$(nproc)" | ||
chibicc=`pwd`/chibicc | ||
|
||
dir=$(basename -s .git $repo) | ||
|
||
set -e -x | ||
|
||
mkdir -p thirdparty | ||
cd thirdparty | ||
[ -d $dir ] || git clone $repo | ||
cd $dir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
repo='git@github.com:git/git.git' | ||
. test/thirdparty/common | ||
git reset --hard 54e85e7af1ac9e9a92888060d6811ae767fea1bc | ||
|
||
$make clean | ||
$make V=1 CC=$chibicc test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
repo='git@github.com:rui314/libpng.git' | ||
. test/thirdparty/common | ||
git reset --hard dbe3e0c43e549a1602286144d94b0666549b18e6 | ||
|
||
CC=$chibicc ./configure | ||
sed -i 's/^wl=.*/wl=-Wl,/; s/^pic_flag=.*/pic_flag=-fPIC/' libtool | ||
$make clean | ||
$make | ||
$make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
repo='git@github.com:sqlite/sqlite.git' | ||
. test/thirdparty/common | ||
git reset --hard 86f477edaa17767b39c7bae5b67cac8580f7a8c1 | ||
|
||
CC=$chibicc CFLAGS=-D_GNU_SOURCE ./configure | ||
sed -i 's/^wl=.*/wl=-Wl,/; s/^pic_flag=.*/pic_flag=-fPIC/' libtool | ||
$make clean | ||
$make | ||
$make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
repo='git@github.com:TinyCC/tinycc.git' | ||
. test/thirdparty/common | ||
git reset --hard df67d8617b7d1d03a480a28f9f901848ffbfb7ec | ||
|
||
./configure --cc=$chibicc | ||
$make clean | ||
$make | ||
$make CC=cc test |