Skip to content

Commit

Permalink
Add different run scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
arapulido committed Feb 22, 2024
1 parent 9c48ffc commit c2a8781
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
4 changes: 4 additions & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tests: .buildpack-testrunner/bin/run .
tests-with-caching: .buildpack-testrunner/bin/run -c .
nightly: .buildpack-testrunner/bin/run -s run_nightly_test.sh .
five: .buildpack-testrunner/bin/run -s run_latest_five_test.sh .
21 changes: 2 additions & 19 deletions test/run_latest_five_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export DD_LOG_LEVEL="debug"
testReleased6Versions()
{
echo "deb [trusted=yes] https://apt.datadoghq.com/ stable 6" > "${BUILDPACK_HOME}/etc/datadog.list"
getAvailableVersions "datadog.list"
getAvailableVersions "datadog.list" 5
echo "deb [signed-by=SIGNED_BY_PLACEHOLDER] https://apt.datadoghq.com/ stable 6" > "${BUILDPACK_HOME}/etc/datadog.list"

for VERSION in ${AGENT_VERSIONS}; do
Expand All @@ -23,7 +23,7 @@ testReleased6Versions()
testReleased7Versions()
{
echo "deb [trusted=yes] https://apt.datadoghq.com/ stable 7" > "${BUILDPACK_HOME}/etc/datadog7.list"
getAvailableVersions "datadog7.list"
getAvailableVersions "datadog7.list" 5
echo "deb [signed-by=SIGNED_BY_PLACEHOLDER] https://apt.datadoghq.com/ stable 7" > "${BUILDPACK_HOME}/etc/datadog7.list"

for VERSION in ${AGENT_VERSIONS}; do
Expand All @@ -36,20 +36,3 @@ testReleased7Versions()
done
}

testLatest6NightlyVersion()
{
echo "deb [trusted=yes] http://apt.datad0g.com/ nightly 6" > "${BUILDPACK_HOME}/etc/datadog.list"
getAvailableVersions "datadog.list"
VERSION="$(echo ${AGENT_VERSIONS} | head -n1 | awk '{print $1;}')"

compileAndRunVersion $VERSION
}

testLatest7NightlyVersion()
{
echo "deb [trusted=yes] http://apt.datad0g.com/ nightly 7" > "${BUILDPACK_HOME}/etc/datadog7.list"
getAvailableVersions "datadog7.list"
VERSION="$(echo ${AGENT_VERSIONS} | head -n1 | awk '{print $1;}')"

compileAndRunVersion $VERSION
}

0 comments on commit c2a8781

Please sign in to comment.