File: git-test.sh

package info (click to toggle)
graudit 4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,256 kB
  • sloc: sh: 1,134; makefile: 82; php: 62; jsp: 24
file content (11 lines) | stat: -rwxr-xr-x 320 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# Testing git integrity?

# Declare description and number of checks
test_description='graudit repo tests'
. ./test-lib.sh

# TESTS
test_expect_success 'No outstanding commits' 'git status|grep "working tree clean"'
test_expect_code 1 'No outstanding push/pulls' 'git status|grep "# Your branch is"'
test_done