-
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 support for keygen to write to string (#4)
* add support for keygen to write to string and basic tests!
- Loading branch information
Showing
8 changed files
with
109 additions
and
8 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Test Flux Go | ||
|
||
on: | ||
|
||
# Test Nightly | ||
schedule: | ||
- cron: 0 0 * * 0 | ||
|
||
# Test on pull request | ||
pull_request: [] | ||
|
||
jobs: | ||
build: | ||
permissions: | ||
packages: write | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/converged-computing/flux-go | ||
options: --user root | ||
name: Build | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Bats | ||
run: apt-get update && apt-get install -y bats | ||
|
||
- name: Test Build | ||
run: make | ||
|
||
- name: Run Tests | ||
run: 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
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,21 @@ | ||
#!/usr/bin/env bats | ||
|
||
# This is run relative to the root | ||
# We also assume the binaries are built | ||
BIN_DIR=./bin | ||
TEST_DIR=./test/bats | ||
SLEEP_TIME=10 | ||
|
||
@test "keygen test" { | ||
|
||
${BIN_DIR}/fluxgo-keygen | grep public-key | ||
cat ./curve.cert | grep ZeroMQ | ||
cat ./curve.cert | grep curve-cert | ||
cat ./curve.cert | grep keygen.hostname | ||
cat ./curve.cert | grep public-key | ||
cat ./curve.cert | grep secret-key | ||
} | ||
|
||
@test "submit test" { | ||
flux start ${TEST_DIR}/test_submit.sh | ||
} |
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 | ||
|
||
HERE=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
cd $HERE | ||
../../bin/fluxgo-submit | ||
flux jobs -a | grep sleep | ||
|
||
# Give time to finish | ||
sleep 10 |