Skip to content

Commit 5726b33

Browse files
committed
Add test that runs supremm-admin command
1 parent 4a5f630 commit 5726b33

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.circleci/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ jobs:
121121
- run:
122122
name: Run Regression Tests
123123
command: ./tests/regression/runtests.sh --junit-output-dir ~/phpunit
124+
- run:
125+
name: Run Destructive Tests
126+
command: ./tests/integration/final_tests.sh
124127
- run:
125128
name: Ensure that no PHP command-line errors were generated
126129
command: >

tests/integration/final_tests.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
# These tests will change the data in the database and should only be run after
4+
# the integration and regression tests have executed
5+
6+
set -e
7+
8+
/usr/lib64/xdmod/xdmod-supremm-admin --action=reset --resource=robertson --force 2>&1 | tee /tmp/supremm-admin-output.txt
9+
10+
if ! grep -q "Job summary documents status reset for 1 jobs" /tmp/supremm-admin-output.txt;
11+
then
12+
echo "Error missing expected output from xdmod-supremm-admin"
13+
fi

0 commit comments

Comments
 (0)