forked from snabbco/snabb
-
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.
Merge pull request snabbco#444 from Igalia/move-soaktest-to-folder
Move soaktest to own folder
- Loading branch information
Showing
8 changed files
with
87 additions
and
96 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,5 +2,3 @@ | |
cd "`dirname \"$0\"`" | ||
./end-to-end.sh | ||
./end-to-end-vlan.sh | ||
./soaktest.sh | ||
./soaktest-vlan.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
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 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [[ $EUID -ne 0 ]]; then | ||
echo "This script must be run as root" 1>&2 | ||
exit 1 | ||
fi | ||
|
||
function quit_with_msg { | ||
errno=$1; msg="$2" | ||
echo "Test failed: $msg" | ||
exit $errno | ||
} | ||
|
||
function soaktest { | ||
conf="$1"; in_v4="$2"; in_v6="$3" | ||
$SNABB_LWAFTR soaktest "$conf" "$in_v4" "$in_v6" || | ||
quit_with_msg $? "Test failed: $SNABB_LWAFTR soaktest $@" | ||
$SNABB_LWAFTR soaktest --on-a-stick "$conf" "$in_v4" "$in_v6" || | ||
quit_with_msg $? "Test failed: $SNABB_LWAFTR soaktest --on-a-stick $@" | ||
} | ||
|
||
source "../end-to-end/test_env.sh" | ||
|
||
TEST_OUT="/tmp" | ||
SNABB_LWAFTR="../../../../snabb lwaftr" | ||
|
||
while true; do | ||
print_test_name | ||
soaktest $(read_test_data) | ||
next_test || break | ||
done | ||
echo "All lwAFTR soak tests passed." |
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,4 @@ | ||
#!/bin/sh | ||
cd "`dirname \"$0\"`" | ||
./soaktest.sh | ||
./soaktest-vlan.sh |
File renamed without changes.
File renamed without changes.