forked from madler/zlib
-
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 tooling/pkgcheck.sh, make cmake install identical to Make install.
Also add tooling/test-cmake.sh and tooling/test-make.sh, use at least the former in .cirrus-ci.yml.
- Loading branch information
Showing
9 changed files
with
103 additions
and
27 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
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
FROM ubuntu:18.04 | ||
|
||
RUN apt-get update && \ | ||
apt-get install --no-install-recommends -y cmake gcc libc6-dev ninja-build && \ | ||
apt-get install --no-install-recommends -y cmake gcc libc6-dev ninja-build make && \ | ||
apt-get clean |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
FROM ubuntu:20.04 | ||
|
||
RUN apt-get update && \ | ||
apt-get install --no-install-recommends -y cmake gcc libc6-dev ninja-build && \ | ||
apt-get install --no-install-recommends -y cmake gcc libc6-dev ninja-build make && \ | ||
apt-get clean |
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,31 @@ | ||
#!/bin/sh | ||
# Verify that the various build systems produce identical results | ||
set -ex | ||
|
||
# Original build system | ||
rm -rf btmp1 pkgtmp1 | ||
mkdir btmp1 pkgtmp1 | ||
export DESTDIR=$(pwd)/pkgtmp1 | ||
cd btmp1 | ||
../configure | ||
make | ||
make install | ||
cd .. | ||
|
||
# New build system | ||
rm -rf btmp2 pkgtmp2 | ||
mkdir btmp2 pkgtmp2 | ||
export DESTDIR=$(pwd)/pkgtmp2 | ||
cd btmp2 | ||
cmake -G Ninja .. | ||
ninja | ||
ninja install | ||
cd .. | ||
|
||
if diff -Nur pkgtmp1 pkgtmp2 | ||
then | ||
echo pkgcheck-cmake-bits-identical PASS | ||
else | ||
echo pkgcheck-cmake-bits-identical FAIL | ||
exit 1 | ||
fi |
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 @@ | ||
#!/bin/sh | ||
# Build and test with CMake | ||
set -ex | ||
|
||
rm -rf btmp | ||
mkdir btmp | ||
cd btmp | ||
cmake -G Ninja .. | ||
ninja | ||
ctest -V | ||
cd .. |
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 @@ | ||
#!/bin/sh | ||
# Build and test with Make | ||
set -ex | ||
|
||
rm -rf btmp | ||
mkdir btmp | ||
cd btmp1 | ||
../configure | ||
make | ||
make test | ||
cd .. |
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
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