Skip to content

Commit

Permalink
Merge pull request #418 from JrGoodle/more-test-cleanup
Browse files Browse the repository at this point in the history
More test cleanup
  • Loading branch information
JrGoodle committed Apr 18, 2020
2 parents 6b93269 + 058430c commit 314145d
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 292 deletions.
24 changes: 0 additions & 24 deletions clowder_test/clowder_test/cli/llvm_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,6 @@ def all(self):

self._execute_command('./test_example_llvm.sh', os.path.join(ROOT_DIR, 'test', 'scripts'))

@expose(
help='Run llvm branch tests'
)
def branch(self):
"""clowder llvm branch tests"""

self._execute_command('./branch.sh', self.path)

@expose(
help='Run llvm forks tests'
)
Expand All @@ -51,22 +43,6 @@ def forks(self):

self._execute_command('./forks.sh', self.path)

@expose(
help='Run llvm herd tests'
)
def herd(self):
"""clowder llvm herd tests"""

self._execute_command('./herd.sh', self.path)

@expose(
help='Run llvm reset tests'
)
def reset(self):
"""clowder llvm reset tests"""

self._execute_command('./reset.sh', self.path)

@expose(
help='Run llvm sync tests'
)
Expand Down
43 changes: 39 additions & 4 deletions test/scripts/cats/help.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,54 @@ print_double_separator
cd "$CATS_EXAMPLE_DIR" || exit 1
./init.sh

export commands=( 'branch' \
'clean' \
'diff' \
'forall' \
'herd' \
'init' \
'link' \
'prune' \
'repo' \
'repo add' \
# 'repo checkout' \
# 'repo clean' \
'repo commit' \
'repo pull' \
'repo push' \
'repo run' \
# 'repo status' \
'save' \
'start' \
'stash' \
'status' \
'sync' \
'yaml' )

_test_help() {
print_single_separator
echo "TEST: clowder -h"
$COMMAND -h || exit 1

for cmd in "${commands[@]}"; do
print_single_separator
echo "TEST: clowder $cmd -h"
$COMMAND $cmd -h || exit 1
done
}

test_help() {
print_double_separator
./clean.sh
./init.sh || exit 1

echo "TEST: Print help with invalid clowder.yaml"
$COMMAND link -v 'test-missing-default-ref' || exit 1
"$TEST_SCRIPT_DIR/test_help.sh" "$CATS_EXAMPLE_DIR" || exit 1
_test_help

print_double_separator
echo "TEST: Print help with valid clowder.yaml"
$COMMAND link || exit 1
$COMMAND herd $PARALLEL || exit 1
$COMMAND status || exit 1
"$TEST_SCRIPT_DIR/test_help.sh" "$CATS_EXAMPLE_DIR" || exit 1
_test_help
}
test_help
28 changes: 0 additions & 28 deletions test/scripts/llvm/branch.sh

This file was deleted.

57 changes: 0 additions & 57 deletions test/scripts/llvm/herd.sh

This file was deleted.

113 changes: 0 additions & 113 deletions test/scripts/llvm/reset.sh

This file was deleted.

18 changes: 0 additions & 18 deletions test/scripts/swift/help.sh

This file was deleted.

3 changes: 0 additions & 3 deletions test/scripts/test_example_llvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,5 @@ print_double_separator
echo 'TEST: llvm projects example test script'
print_double_separator

"$TEST_SCRIPT_DIR/llvm/herd.sh" || exit 1
"$TEST_SCRIPT_DIR/llvm/forks.sh" || exit 1
"$TEST_SCRIPT_DIR/llvm/sync.sh" || exit 1
"$TEST_SCRIPT_DIR/llvm/branch.sh" || exit 1
"$TEST_SCRIPT_DIR/llvm/reset.sh" || exit 1
1 change: 0 additions & 1 deletion test/scripts/test_example_swift.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ print_double_separator
"$TEST_SCRIPT_DIR/swift/configure_remotes.sh" || exit 1
"$TEST_SCRIPT_DIR/swift/config_versions.sh" || exit 1
"$TEST_SCRIPT_DIR/swift/reset.sh" || exit 1
"$TEST_SCRIPT_DIR/swift/help.sh" || exit 1
44 changes: 0 additions & 44 deletions test/scripts/test_help.sh

This file was deleted.

0 comments on commit 314145d

Please sign in to comment.