-
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.
* adding ben tests * adding ben package and tests * fixing ben test * remove commented line Signed-off-by: vsoch <vsoch@users.noreply.github.com> Co-authored-by: vsoch <vsoch@users.noreply.github.com>
- Loading branch information
Showing
9 changed files
with
151 additions
and
17 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
results | ||
.env | ||
__pycache__ |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package: | ||
name: ben | ||
versions: | ||
- 1.0.0 | ||
- 2.0.0 | ||
headers: | ||
- include | ||
libs: | ||
- lib/librttiexcep.so | ||
- lib/libunderlink.so | ||
bins: | ||
- bin/underlinktest |
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,23 @@ | ||
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other | ||
# Spack Project Developers. See the top-level COPYRIGHT file for details. | ||
# | ||
# SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
|
||
from spack import * | ||
|
||
|
||
class Ben(MakefilePackage): | ||
homepage = "https://github.com/buildsi/build-abi-test-ben" | ||
url = "https://github.com/buildsi/build-abi-test-ben/archive/refs/tags/2.0.0.tar.gz" | ||
git = "https://github.com/buildsi/build-abi-test-ben.git" | ||
|
||
version('main', branch='main') | ||
version('1.0.0', sha256='28d85b076c7127934b1127c1695bbdc16e59ec5a42def68478c938835fbe114f') | ||
version('2.0.0', sha256='d913cf8de6ed92c836388bc7a492e0f975e589bab7616d99607180559d487d72') | ||
|
||
def install(self, spec, prefix): | ||
mkdir(prefix.bin) | ||
mkdir(prefix.lib) | ||
install('underlinktest', prefix.bin) | ||
install('librttiexcep.so', prefix.lib) | ||
install('libunderlink.so', prefix.lib) |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM gcc as base | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
WORKDIR /code | ||
|
||
RUN apt-get update && apt-get install -y git curl python3-botocore python3-boto3 | ||
RUN git clone --depth 1 https://github.com/spack/spack /opt/spack | ||
ENV PATH=/opt/spack/bin:$PATH | ||
RUN echo "packages:" > packages.yaml &&\ | ||
echo " all:" >> packages.yaml &&\ | ||
echo " target: [x86_64]" >> packages.yaml | ||
|
||
COPY spack/ /test-packages | ||
RUN spack repo add /test-packages && \ | ||
spack config add -f "packages.yaml" && \ | ||
{% for package in packages %}{% for version in package.versions %}spack install --no-checksum --source {% if cache_only %}--cache-only{% endif %} --deprecated {{ package.name }}@{{ version }} && \{% endfor %}{% endfor %} | ||
printf "Finished installation attempts\n" | ||
|
||
FROM ghcr.io/buildsi/{{ tester.name }}:{{ tester.version }} | ||
COPY --from=base /opt/spack /opt/spack | ||
|
||
WORKDIR /build-si/ | ||
ENV PATH=/opt/spack/bin:$PATH | ||
COPY {{ test.config_basename }} /build-si/tests.yaml | ||
COPY {{ tester.runscript }} /build-si/{{ tester.runscript }} | ||
{% for bin in bins %}COPY {{ bin }} /usr/local/bin/{{ bin }} | ||
{% endfor %} | ||
RUN apt-get install -y time && \ | ||
mkdir -p /results && chmod +x /build-si/{{ tester.runscript }} {% if bins %}{% for bin in bins %} && chmod +x /usr/local/bin/{{ bin }}{% endfor %}{% endif %} | ||
ENTRYPOINT ["{{ tester.entrypoint }}", {% for arg in tester.args %}"{{ arg }}", {% endfor %}"/build-si/{{ tester.runscript }}"] |
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,12 @@ | ||
packages: | ||
# no versions specified implies all | ||
- name: ben | ||
|
||
tester: | ||
name: libabigail | ||
|
||
test: | ||
dockerfile: templates/ben/Dockerfile | ||
|
||
experiment: | ||
name: single-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,13 @@ | ||
packages: | ||
# no versions specified implies all | ||
- name: ben | ||
|
||
tester: | ||
name: smeagle | ||
|
||
test: | ||
dockerfile: templates/ben/Dockerfile | ||
|
||
experiment: | ||
name: single-test | ||
|