Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
philroche authored Nov 29, 2024
2 parents 969dd94 + 38c55df commit 10390ef
Show file tree
Hide file tree
Showing 144 changed files with 1,030 additions and 1,821 deletions.
4 changes: 2 additions & 2 deletions aws-c-common.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package:
name: aws-c-common
version: 0.10.3
version: 0.10.4
epoch: 0
description: Core c99 package for AWS SDK for C including cross-platform primitives, configuration, data structures, and error handling
copyright:
Expand All @@ -20,7 +20,7 @@ environment:
pipeline:
- uses: git-checkout
with:
expected-commit: 63187b976a482309e23296c5f967fc19c4131746
expected-commit: be8ed873a5baf0239bf4941df75904c3053cd509
repository: https://github.com/awslabs/aws-c-common
tag: v${{package.version}}

Expand Down
4 changes: 2 additions & 2 deletions aws-eks-pod-identity-agent.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#nolint:git-checkout-must-use-github-updates,valid-pipeline-git-checkout-tag
package:
name: aws-eks-pod-identity-agent
version: 0_git20241126
version: 0_git20241128
epoch: 0
description: EKS Pod Identity is a feature of Amazon EKS that simplifies the process for cluster administrators to configure Kubernetes applications with AWS IAM permissions
copyright:
Expand All @@ -10,7 +10,7 @@ package:
pipeline:
- uses: git-checkout
with:
expected-commit: 9e7ec777d96d27c627fd1b15effaf10e2cf4699e
expected-commit: 15b7d58b3975d03f7ab6f17b09ec955fb7d66028
repository: https://github.com/aws/eks-pod-identity-agent
branch: main

Expand Down
113 changes: 106 additions & 7 deletions bats.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
package:
name: bats
version: 1.11.0
epoch: 1
epoch: 2
description: Bash Automated Testing System
copyright:
- license: MIT
dependencies:
runtime:
- bash
- coreutils
- busybox
- ncurses
- parallel

environment:
contents:
packages:
- bash
- build-base
- busybox
- ca-certificates-bundle
- wget

pipeline:
- uses: git-checkout
Expand All @@ -28,9 +26,29 @@ pipeline:
expected-commit: 5da66876b8b619235aee1eb3e54954eaca88059b

- runs: |
./install.sh "${{targets.contextdir}}/usr"
./install.sh "${{targets.contextdir}}/usr"
mkdir -p "${{targets.contextdir}}/tmp/"
cp -r ./docker "${{targets.contextdir}}/tmp/docker"
"${{targets.contextdir}}/tmp/docker/install_libs.sh" support 0.3.0
"${{targets.contextdir}}/tmp/docker/install_libs.sh" file 0.4.0
"${{targets.contextdir}}/tmp/docker/install_libs.sh" assert 2.1.0
"${{targets.contextdir}}/tmp/docker/install_libs.sh" detik 1.3.1
find "${{targets.contextdir}}" -type f -perm /2000 -exec chmod g-s {} \;
rm -rf "${{targets.contextdir}}/tmp/"
subpackages:
- name: bats-compat
pipeline:
- runs: |
mkdir -p "${{targets.contextdir}}/opt/bats/"
find . -maxdepth 1 \
-not -name '.*' \
-not -name 'melange-out' \
-exec mv {} "${{targets.contextdir}}/opt/bats/" \;
mkdir -p "${{targets.contextdir}}/usr/local/bin"
ln -s /opt/bats/bin/bats "${{targets.contextdir}}/usr/local/bin/bats"
description: bats compatibility package

- name: bats-doc
pipeline:
- uses: split/manpages
Expand All @@ -44,6 +62,87 @@ update:

test:
pipeline:
# AUTOGENERATED
- runs: |
bats --version
# Create the example.sh script using heredocs
cat << 'EOF' > /tmp/example.sh
add_numbers() {
echo $(( $1 + $2 ))
}
file_exists() {
if [[ -f "$1" ]]; then
echo "true"
else
echo "false"
fi
}
string_contains() {
if [[ "$1" == *"$2"* ]]; then
echo "true"
else
echo "false"
fi
}
EOF
# Create the inline_test.bats script using heredocs
cat << 'EOF' > /tmp/inline_test.bats
#!/usr/bin/env bats
load_file() {
source "/tmp/example.sh"
}
setup() {
load_file
}
teardown() {
rm -f testfile.txt
}
@test "add_numbers should correctly add two numbers" {
run add_numbers 3 5
[ "$status" -eq 0 ]
[ "$output" -eq 8 ]
}
@test "file_exists should return true for existing file" {
touch testfile.txt
run file_exists testfile.txt
[ "$status" -eq 0 ]
[ "$output" = "true" ]
}
@test "file_exists should return false for non-existing file" {
run file_exists non_existing_file.txt
[ "$status" -eq 0 ]
[ "$output" = "false" ]
}
@test "string_contains should return true if substring is found" {
run string_contains "hello world" "hello"
[ "$status" -eq 0 ]
[ "$output" = "true" ]
}
@test "string_contains should return false if substring is not found" {
run string_contains "hello world" "bye"
[ "$status" -eq 0 ]
[ "$output" = "false" ]
}
EOF
# Make the scripts executable
chmod +x /tmp/example.sh
chmod +x /tmp/inline_test.bats
# Run the bats tests
bats /tmp/inline_test.bats
# Clean up
rm -f /tmp/example.sh
rm -f /tmp/inline_test.bats
6 changes: 3 additions & 3 deletions benchmark.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: benchmark
version: 1.9.0
epoch: 1
version: 1.9.1
epoch: 0
description: "microbenchmark support library"
copyright:
- license: Apache-2.0
Expand All @@ -21,7 +21,7 @@ environment:
pipeline:
- uses: git-checkout
with:
expected-commit: 12235e24652fc7f809373e7c11a5f73c5763fc4c
expected-commit: c58e6d0710581e3a08d65c349664128a8d9a2461
repository: https://github.com/google/benchmark
tag: v${{package.version}}

Expand Down
6 changes: 3 additions & 3 deletions bmake.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: bmake
version: "20240921"
epoch: 1
version: "20241124"
epoch: 0
description: Portable version of the NetBSD make build tool
copyright:
- license: BSD-2-Clause
Expand All @@ -18,7 +18,7 @@ environment:
pipeline:
- uses: fetch
with:
expected-sha256: b346579e82d296d1a4da29dea8594e3ee596130b20786dec0f3899a3e11275c2
expected-sha256: 4f66406091c2f85ea964b238d69eb8f71ab4baac9dca4687a71883ba6de4ddb2
uri: https://www.crufty.net/ftp/pub/sjg/bmake-${{package.version}}.tar.gz
strip-components: 0

Expand Down
6 changes: 3 additions & 3 deletions cargo-c.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: cargo-c
version: 0.10.5
epoch: 1
version: 0.10.6
epoch: 0
description: build and install C-compatible libraries
copyright:
- license: MIT
Expand All @@ -22,7 +22,7 @@ pipeline:
with:
repository: https://github.com/lu-zero/cargo-c
tag: v${{package.version}}
expected-commit: b6081a47813aab0175645e332b14282c651c893d
expected-commit: c027fcf597e10154a8bc55c46182a4c2480d8d25

- runs: |
cargo auditable build --release
Expand Down
Loading

0 comments on commit 10390ef

Please sign in to comment.